GPU: pace opening movie presents that skip a flip wait #2026
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2028"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by Chezzuss on 2026-11-25T03:30:56Z.
Summary
The title's opening movie occasionally catches up by presenting a frame without first making its normal flip wait. In that case the host can present twice in one interval, giving adjacent movie frames uneven display times.
Once the title has completed a flip wait, each completed wait covers one present. A catch-up present reserves the next flip tick using the same clock lock as an explicit wait. The sleep happens after releasing the lock. Titles that have yet to complete an explicit flip wait retain their existing presentation behavior.
This ports GamingRipperDoc's fxceless #457 to the current upstream clock and its tick reservation from #174. #319 covers a different case where an explicit wait starts late.
Verification
The diagnostics executable builds on Windows. Both frame tests pass. Coverage includes a timed-out flip poll, a present after a completed wait, and two consecutive presents sharing one explicit wait.
The related integrated fxceless stack delivered a 33.35 ms median present interval in the sampled opening movie on RTX 3090. The standalone upstream port still needs its own in-title capture, so this PR is a draft.
AI-assisted.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T03:33:16Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Opening-movie presents that skip a flip wait get paced — frame-pacing fix for the intro video path.
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T03:32:19Z.
Triage verdict — Draft pacing change; cover an interval change during a wait (
e957cca)Evidence
set_intervalreplaces the clock and resets its flip state toUnused. If a flip wait reserved its tick before the interval change and wakes afterward, it sets whichever clock is current toReady. The replacement clock can therefore inherit a present credit from a wait reserved on the old interval.Checks and limits
Next step
This verification was AI-assisted.
Pull request closed