Win32CaptureSample icon indicating copy to clipboard operation
Win32CaptureSample copied to clipboard

time interval between every two frames

Open chky1997 opened this issue 11 months ago • 3 comments

Hi, I found that the time interval between every two frames is unstable during real-time screen capture and display. For example, when fps is 60, 60 valid frames can be captured within one second, but the time interval between every two frames can be 8-9ms or 18-19ms. Is there any method to precisely control the time interval? Thank you!

chky1997 avatar Jan 07 '25 02:01 chky1997

There's no mechanism to control the precise update interval, as that's controlled by the system compositor's scheduler. You can set the MinUpdateInterval property, but that will only set a minimum. We may issue updates at larger intervals if nothing changes for that window/screen.

With that said, there is some cleanup I need to do around time stamps. What build of Windows are you seeing this on?

robmikh avatar Jan 07 '25 23:01 robmikh

Thank you for your reply. I found the problem on Windows 10 22H2. Do you mean the screen capture and display process can achieve over 60fps when the fresh rate is 60HZ by setting the MinUpdateInterval property?

chky1997 avatar Jan 08 '25 07:01 chky1997

The MinUpdateInterval property is a throttling mechanism. Again, it is a minimum, not a maximum.

robmikh avatar Jan 09 '25 11:01 robmikh

No MinUpdateInterval, capture display and open one Window APP. Can I say the minimum interval is follow display refresh rate?

74wtqh7wqk-cyber avatar Oct 13 '25 05:10 74wtqh7wqk-cyber