Skip to content

GPU: pace opening movie presents that skip a flip wait - #2028

Closed
Chezzuss wants to merge 1 commit into
Marvisak:mainfrom
Chezzuss:codex/pace-opening-present
Closed

Chezzuss wants to merge 1 commit into
Marvisak:mainfrom
Chezzuss:codex/pace-opening-present

Conversation

@Chezzuss

Copy link
Copy Markdown

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.

Port fxceless PR #457 by GamingRipperDoc to upstream tick reservation. Start implicit pacing only after an explicit flip wait and reserve presentation ticks under the frame clock lock.
@jeremygold02

Copy link
Copy Markdown
Contributor

Triage verdict — Draft pacing change; cover an interval change during a wait (e957cca)

Evidence

Checks and limits

  • This is a source-level interleaving. The reported tests cover timeout and successive presents on one interval. They do not exercise replacement of the clock while a flip wait sleeps. I did not rerun the tests or the movie capture.

Next step

  • Define whether an old wait may credit a new interval and add a controlled test for that sequence. If interval changes should reset pacing, tie the credit to the clock generation that reserved the tick. Keep the standalone pacing capture as a separate readiness check.

This verification was AI-assisted.

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Chezzuss Chezzuss closed this Nov 25, 2026
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.

3 participants