Frame meter: log the frame times' spread (median, p95, p99, longest, frames over 50/100 ms) #341
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!341
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@bentsignal on GitHub · 2026-11-27 21:13 UTC · original
bentsignal:frame-times-line→main· +35 −0 · 1 files · 1 commits · closed without mergingWhat 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
@trustno1-coder on GitHub · 2026-11-28 02:49 UTC · original
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