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

Fixed #461: Best effort to match target framerate #474

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

davesmith00000
Copy link
Member

So after all the back and forth, I seem to have a solution.

It isn't a perfect solution, but it appears to allow Indigo to more closely meet the desired framerate.

The advice to try not to rely on this remains. However rather than (on this machine) a frame rate of 144fps being asked to constrain to 60fps and actually being 48fps, it is now 64fps which is much more acceptable.

Essentially I'm tracking the mean frame delta and using that to guess if we're likely to overshoot on the next update, and taking corrective action.

Will it work nicely across all platforms? Time will tell.

@davesmith00000 davesmith00000 force-pushed the issue/461/smoother-framerate-limiter branch from 2d8cc64 to 1ccd7dd Compare February 18, 2023 21:36
@davesmith00000 davesmith00000 merged commit da85b07 into main Feb 18, 2023
@davesmith00000 davesmith00000 deleted the issue/461/smoother-framerate-limiter branch February 18, 2023 21:53
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

Successfully merging this pull request may close these issues.

1 participant