Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time interval between every two frames #87

Open
chky1997 opened this issue Jan 7, 2025 · 3 comments
Open

time interval between every two frames #87

chky1997 opened this issue Jan 7, 2025 · 3 comments

Comments

@chky1997
Copy link

chky1997 commented Jan 7, 2025

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 chky1997 changed the title Actual frame rate time interval between every two frames Jan 7, 2025
@robmikh
Copy link
Owner

robmikh commented Jan 7, 2025

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?

@chky1997
Copy link
Author

chky1997 commented Jan 8, 2025

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?

@robmikh
Copy link
Owner

robmikh commented Jan 9, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants