Skip missing DXGI present counts in frame generation timing #14
No reviewers
Labels
No labels
accessibility
bench-bm-v1
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/PastiiJay--klbf-lab!14
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-14"
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?
@HandshakeHackin on GitHub · 2026-11-25 16:21 UTC · original
HandshakeHackin:fix/missing-present-count→beta· +38 −12 · 1 files · 2 commits · openGetLastPresentCount().ok()can yieldNone. Converting that to zero makeswrapping_subtreat a failed query as a real counter wrap. The next successful query can then produce another inflated sample. Keep the previous valid baseline through missing queries. The real frame ID still advances on every present.In an isolated harness compiled from the original and patched Rust function, cumulative readings
[100, None, 104]spaced ~1.05 s apart produced ~4.09 billion and 99.0 presented FPS before the patch. Afterward they produced one 1.9 FPS sample over the two valid readings. Also checked an initially missing reading, a genuine u32 wrap, and valid zero counts.Windows target compile check passed:
cargo check --locked -p victory-gpu --tests --target x86_64-pc-windows-msvc --features blake3/pure. No hardware run.The GPU crate now includes a fixed-clock regression at
d184745. It covers an initially missing query, a sub-second reading, a second missing query, a genuine wrap to zero and consecutive valid zeros. All three frame-generation module tests passed on native Windows. Restoring the old missing-as-zero behavior made the regression report 4,294,967,292 presented FPS on the first interval. Windows test and negative control.@PastiiJay on GitHub · 2026-11-25 17:02 UTC · original
Thanks a lot @HandshakeHackin! Noted. I'll test it on the RX 9070 XT in the next test build and report back here.
@PastiiJay on GitHub · 2026-11-26 11:49 UTC · original
Thanks for adding the deterministic clock, that makes the missing-count case testable without real frames. We will merge it with the next beta batch; a short line in the description on what the test covers would be handy.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.