Frame-times line: frames over 16.7, 20 and 25 ms, and pairs of frames in a row over 33.4 ms #3999
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3999"
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 kMagic142 on 2026-11-30T14:07:24Z.
What it changes
frame_times_line(targetvictory_gpu::frame_times, once a second) logs the median, p95, p99 and longest time between presents, and how many frames took over 50 ms and over 100 ms. Near 60 fps those last two counts stay at 0, and the percentiles cover only one second's ~60 frames. So the line does not say how often a 60-a-second pace was missed.It now also counts the following, from the same intervals and before they are sorted (
dips):The new counts go at the end of the line. Here is one second of a run near 60 fps, in this PR's wording:
scripts/play-rig.ps1andscripts/watch-rig.ps1read only the start of this line (frame times: N frames, median X ms).scripts/bench.ps1reads the diagnosticsframelogline, not this one. None of them change. Only the log line changes; nothing on screen does.How it was tested
N over 100 ms. In the steady cutscene near 60 fps, both the over-50 and the over-100 counts are 0 in most seconds.v2026.11.28.03with other changes of ours, and the wording differs slightly from this PR's. The example above is one second of the opening's cutscenes there.dips_testscovers an even pace, two swinging paces, a long frame between short ones, a lone frame and an empty second.cargo testpassed for the crates it touches: Yes.cargo xwin check -p victory --target x86_64-pc-windows-msvcpasses on main (41adb551) with this branch applied, anddips_tests::the_misses_of_a_60_a_second_pace_are_countedpasses (1 passed, 0 failed).Checked for overlap
frame_times_lineas it is. This PR only adds counts to the end of the log line. The two change nearby lines ofhost.rsbut each applies to main on top of the other without conflict (checked withgit apply).VICTORY_FRAME_PACE, which evens out long/short frame pairs) and #2201 (VICTORY_PACE) change the pace itself. #3851 moves the call toframe_times_lineto another thread, with the same signature. Both apply on top of this branch. The pair count is one way to see what they do near 60 fps.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-30T14:53:43Z.
Merged for testing into our integration branch dyshay/VIctory-NVIDIA
janus-prs. Builds and the targeted CPU tests pass; a run on an RTX 4090 (Series S, hardware RT) is queued and I'll post the result here.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.