Frame meter: per-frame times every 5 s (median, p95, p99, longest, frames over 50/100 ms) #272
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!272
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-272"
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?
@a-to-z on GitHub · 2026-11-26 13:58 UTC · original
a-to-z:diag/frame-time-percentiles→main· +42 −0 · 1 files · 1 commits · openWhy
The frame-rate line gives an average per second, which hides hitches: a second with one 900 ms frame and 29 fast ones reads as "18 fps". The README already quotes p95 frame times, but nothing in the log reported them, so steadiness could not be read from a normal run.
What
Diagnostics builds only (
#[cfg(feature = "diagnostics")]); release builds are unchanged.Meterkeeps the time between presents for each frame.meter_lines, not the presenting thread), one more line:The cost on the presenting thread is one
Instant::now()and aVecpush a frame; the sort of ~150 values runs on the meter thread every 5 s.What it showed (RX 9070 XT, 32 GB,
-Safe, renderer patches 1, 2, 5, 6, 7)Correlated with a per-second sample of Windows'
\Memory\Pages Input/sec, over a 240 s window in the world: the 5 s blocks with heavy paging (over 2,000 pages a second read from disk) held 72 of the 101 frames over 100 ms, at a median frame of 61.6 ms against 49.5 ms in the others. On a 32 GB PC, the hitches are mostly paging; averages did not show it.Testing
cargo build --locked --profile diag -p victory --features diagnostics,cargo build --locked --release -p victorycargo test -p victory-gpu --lib(381 passed)cargo clippy -p victory-gpu --features diagnostics: no new warnings (the one inwatch.rsis onmain)🤖 Generated with Claude Code
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.