GPU: pace opening movie presents that skip a flip wait #2028
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2028
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2028/head"
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?
@Chezzuss on GitHub · 2026-11-25 03:30 UTC · original
Chezzuss:codex/pace-opening-present→main· +68 −1 · 2 files · 1 commits · closed without mergingSummary
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.
@jeremygold02 on GitHub · 2026-11-25 03:32 UTC · original
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