Skip superseded generated frames when the pacer wakes late #145
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!145
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-145"
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?
@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 UTCIf 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 --libandcargo 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.
f209756' into fix/skip-expired-generated-frames 4694908820