Skip superseded generated frames when the pacer wakes late #145

Manually merged
github merged 2 commits from github-bot/gh-145 into main 2026-12-05 20:45:50 +00:00 AGit
Owner

@⁠yyc160 on GitHub · 2026-12-05 19:43 UTC · original
yyc160:fix/skip-expired-generated-frames → main · +36 −1 · 1 files · 2 commits · merged 2026-12-05 20:42 UTC

If the frame pacer wakes after several deadlines, popping one picture per loop sends already superseded intermediate pictures back-to-back. Their Present calls still count, but they cannot occupy separate display intervals in the past.

Pick the newest due picture, preserving the title's own picture and leaving future pictures queued. Charge skipped generated pictures to the existing drop counter. On-time pacing, generation multipliers, NGX/FSR calls, resize handling and the title thread are untouched. This narrow change does not include experimental timing heuristics.

Checks: cargo test --release --locked -p larp-gpu --lib and cargo check --release --locked -p larp --features diagnostics. A deterministic clock replay checks early, on-time, one-slot-late and fully expired batches. No assumption that a returned Present is a physical scanout; no claim to fix upstream native-frame stalls.

AI-assisted by GPT-6.2 Astra.

**@⁠yyc160** on GitHub · 2026-12-05 19:43 UTC · [original](https://github.com/gamingwithhomie/larp/pull/145) `yyc160:fix/skip-expired-generated-frames` → `main` · +36 −1 · 1 files · 2 commits · merged 2026-12-05 20:42 UTC If the frame pacer wakes after several deadlines, popping one picture per loop sends already superseded intermediate pictures back-to-back. Their Present calls still count, but they cannot occupy separate display intervals in the past. Pick the newest due picture, preserving the title's own picture and leaving future pictures queued. Charge skipped generated pictures to the existing drop counter. On-time pacing, generation multipliers, NGX/FSR calls, resize handling and the title thread are untouched. This narrow change does not include experimental timing heuristics. Checks: `cargo test --release --locked -p larp-gpu --lib` and `cargo check --release --locked -p larp --features diagnostics`. A deterministic clock replay checks early, on-time, one-slot-late and fully expired batches. No assumption that a returned Present is a physical scanout; no claim to fix upstream native-frame stalls. AI-assisted by GPT-6.2 Astra.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 19:49:15 +00:00
github-bot referenced this pull request from a commit 2026-12-05 20:45:12 +00:00
github manually merged commit 5f885c7cdf into main 2026-12-05 20:45:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.