Click here to Skip to main content
14,695,272 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Dear all,

I wrote code to capture screen (1024 * 786 resolution) using both GDI and DirectX, but I am doing a performance test, both GetDIBits (GDI) and GetFrontBufferdata(DirectX) taking more time ~600ms and also CPU utilization is around 17%. I am doubt about whether APIs are too slow or it's wrong in my code. Please suggest me if APIs are slow, how to improve performance of screen capture screen with.

Also is it possible to capture screen data using DirectX directly in YUV format.

Awaiting your reply.....Thanks in advance...

[edit]Code block tail removed, "Ignore HTML..." option disabled - OriginalGriff[/edit]
Posted
Updated 24-Jun-11 5:20am
v2
Comments
OriginalGriff 24-Jun-11 10:19am
   
How do you expect us to comment on code performance, without seeing the relevant code fragments?

Use the "Improve question" widget to edit your question and provide relevant fragments.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900