Frame meter: log the frame times' spread (median, p95, p99, longest, frames over 50/100 ms) #341
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/341"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by bentsignal on 2026-11-27T21:13:03Z.
What this adds
The frame-rate line is an average, and it hides stutter. "30 fps" can be even 33 ms frames, or a mix of 20 and 80 ms ones. This adds one line, made each time the frame meter makes its line:
The values are the intervals between presents since the last line: the median, p95, p99, the longest, and how many were over 50 and 100 ms.
Instant::now()and a push a present, and one sort of ~30 floats a second.victory_gpu::frame_times.VICTORY_LOG='warn,victory_gpu::frame_times=info'keeps only it, so a stutter can be checked without the other lines.Why
On an RTX 5070 Ti the frame-rate line said a steady ~31 fps in the prologue's cell. This line showed about 0.7 frames a second over 50 ms (worst ~100 ms), every 1.5 s. A timeline then put those frames on the sweep behind flights (separate PR, "Sweeps behind flights every 15 s while memory is not pressed").
Tests
cargo clippy -p victory-gpu --all-targets: no new warnings.This change and its testing were done with an AI assistant (Claude Code), and the results were checked on my machine.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T02:49:39Z.
Merged into main (
8fc2254) and shipped in v2026.11.27.10. The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!Pull request closed