Repository navigation
Window: frames on the monitor's refreshes, no frames queued ahead - #142
Merged
Merged
Conversation
A game paced at 60 on its own clock, presented with vsync on a 60 Hz monitor: the two clocks drift, and every so often a picture stayed two refreshes and the next was never shown. 60 frames a second that did not feel smooth (TTA's players). The driver also queued up to three frames ahead of the display, each a refresh of input delay. On vsync at the game's rate (no frames between, not lockstep, a shown window) the window now waits each present out (glFinish after the swap) and counts it; once their period is steady and within 1 % of the cap's, FramePacer ends each frame on the display's next refresh instead of its own clock (bounded to 0.9..2 periods). Fast forward, a hidden window or an unsteady display keep the clock. PS2X_NO_VSYNC_PACE=1 and PS2X_NO_SWAP_FINISH=1 for the old ways; the window's stats line shows the locked period. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A game paced at 60 on its own clock and presented with vsync on a 60 Hz monitor: the two clocks drift, so every so often a picture stayed two refreshes and the next was never shown. The counter said 60, but play did not feel smooth (TTA's players). With vsync the driver also queued up to three frames ahead of the display, each a refresh of input delay.
Checked: TTA's window build, played on a 60 Hz monitor: the player found it smoother. Scripted, hidden and lockstep runs take the old path (no change to captures). Applies to every port's window by default.
🤖 Generated with Claude Code