Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
steamcompmgr: Fix calculated refresh cycle for present timing
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.
- Loading branch information