Frame meter: per-frame times every 5 s (median, p95, p99, longest, frames over 50/100 ms) #272
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by a-to-z on 2026-11-26T13:58:40Z.
Why
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.