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

steamcompmgr: Fix calculated refresh cycle for present timing #1061

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

ishitatsuyuki
Copy link

The "target FPS" feature divides vblank to achieve a target refresh rate. Previously, the target frame time was divided by the divisor again, making it way too small and nonsensical. Correctly calculate this by multiplying instead of dividing.

Since the real refresh rate may be odd, apply the multiplier after dividing to avoid rounding error.

The "target FPS" feature divides vblank to achieve a target refresh
rate. Previously, the target frame time was divided by the divisor
again, making it way too small and nonsensical. Correctly calculate
this by multiplying instead of dividing.

Since the real refresh rate may be odd, apply the multiplier after
dividing to avoid rounding error.
@misyltoad misyltoad merged commit 9888a50 into ValveSoftware:master Dec 18, 2023
1 check passed
@ishitatsuyuki ishitatsuyuki deleted the target-refresh branch December 28, 2023 05:19
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.

2 participants