gpu: the rolling 1% low in the panel and the FPS line, and two repairs this tag needs to build its tests #3920
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3920"
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 Razen114514 on 2026-11-30T11:37:36Z.
What this is
Three small diagnostics changes and two repairs, rebased onto
v2026.11.30.01(
c71899d9). Run on an RTX 5060 8 GB / i5-13490F / 32 GB, Series S, 960x540scene with DLSS performance and DLSS frame generation at 2x.
1. Show rolling 1% low FPS in the stats panel and optional FPS line(479337bb)The panel has always had the average, the frame time and the longest frame, and
the frame rate line at the top of the picture only the average. The number this
build needs is the one the NVIDIA overlay calls the 1% low: the frame time that
99 of the last hundred presents came in at or under, shown as the frame rate it
implies. A hundred present intervals are kept in a
VecDeque(about 7.7 s at13 fps) and the second-slowest is published once a second beside the existing
frame timesline.FPS 17.7 1%L 9.4 FRAME 56 MAX 671% LOW WITH THE FPS: the same figure in the line at the top of thepicture, off by default:
FPS: 17.3 1%L 8.5 FG: 34.6. It is aliveitem(an
AtomicBoolread at each use), unlike thetoggled!switches, which arecached in a
OnceLockand cannot change mid-run.a_short_window_has_no_p99,one_slow_frame_is_not_the_one_percent,two_slow_frames_reach_it,the_order_of_arrival_does_not_matter,the_low_is_a_rate_or_a_dash,the_frame_line_fits.2. Keep the stats panel line inside its forty columns(904f880b)frame_lineformatted every figure the same way, so four digits of frames asecond pushed the line one column past
COLUMNS.litclips silently there:the line would not wrap short,
MAXwould lose its last digit.fpskeeps itsdecimal below a hundred and none above it,
rate/millisbound each field tothe four columns it has (past ten seconds a frame time prints
10S+), and thetest now walks the readings one frame can produce (
fpsandmsas inverses,worstup to ten frames) as well as widths that cannot happen together.3. The frame times line carries the rolling 1% low(cf52b9a8)The line's own 99th percentile is its window's maximum at these frame rates: a
second at 13 frames a second is thirteen frames, so
p99andlongestprint thesame number and the log says nothing about a stutter lasting seconds. The
hundred-frame value is appended, keeping the prefix unchanged for the scripts
that read it:
4. The two card_pass call sites take the capture argument(71006dcc)Not part of the feature:
cargo test -p victory-gpudoes not compile atv2026.11.30.01, becausecard_passgrew a sixth parameter (capture: [u32; 3])and the two call sites in this module's tests still pass five arguments
(
error[E0061]athost.rs:20302and:20328). The release build is notaffected, since tests are a separate build. Every production call site passes
[0; 3]when there is no capture, and so do these now.5. Drop the four switches the translator no longer reads(3c06304b)every_switch_of_the_translator_is_in_the_keyfails on the tag's own tree: thefuzzer's
VICTORY_ORACLE_RUNS,_SEED,_AVOIDand_OUTare listed underNOT_TRANSLATIONand appear nowhere else any more.What is not fixed here
Two failures remain on this tag and neither is touched by this branch:
list::thin::tests::bindings_record_no_work:a call is in no list,left: 47, right: 49-- two call opcodes belowCOPY_TEXTUREare classifiedas neither binding nor waiting.
watch::tests::a_late_fault_leaves_the_guard_taken_sincefails when the suiteruns in parallel and passes on its own.
Measurements
Only lines actually read off the panel, the caption and the log on the card
above (RTX 5060 8 GB, i5-13490F, 32 GB, Series S, 960x540 scene, DLSS
performance, frame generation 2x):
The log excerpt is the reason for a hundred-frame window at all: in that same
line
p99andlongestare the same number, because at 13-18 frames a secondthe one-second window holds thirteen to eighteen frames and their 99th
percentile is their maximum. The hundred-frame figure keeps reading after the
stutter has left the second.
The panel line is 39-40 columns with these figures against
COLUMNS = 40; at1,000 fps without the decimal it is 39 where it used to be 41.
AI-assisted
Two models, with different jobs:
measurements on the machine named above, and read every log back before quoting
a number from it.
independent reviewer. It is the reason, among others, that
1%LandMAXgothrough
rate/millis(it pointed out those two figures could still push theline past
COLUMNS), that thep99_of_recentcomment now says a single worstframe does not move the value, and that the preload stamp no longer treats a
skipped or failed preload as done.
Nothing from either side was taken on trust: each review finding was checked
against the source or a log before it changed anything, and the ones that did not
hold were dropped.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aniseto on 2026-11-30T15:49:40Z.
Ran the lib suite and the seven feature tests at
3c06304bon an NVIDIA Blackwell desktop part with 16 GB of VRAM; this is a second host for these synthetic tests.System
rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5VICTORY_D3D12_ADAPTER=NVIDIAResults
cargo test -p victory-gpu --lib(default threads): exit 101, 1120 passed, 2 failed, 66 ignored, 0 measured, 0 filtered, 24.01 s. Failures:host::packed_present_tests::packed_float_single_planes_are_presentedandlist::thin::tests::bindings_record_no_work.-- --test-threads=1(exit 0, 1 passed, 0 failed, 0 ignored, 1187 filtered out):a_short_window_has_no_p99,one_slow_frame_is_not_the_one_percent,two_slow_frames_reach_it,the_order_of_arrival_does_not_matter,the_low_is_a_rate_or_a_dash,the_frame_line_fits,every_switch_of_the_translator_is_in_the_key.a_late_fault_leaves_the_guard_taken_sincealone, one thread, twice: 1 passed each run (exit 0). It also passed in the full-suite run above.Measured failure details
packed_float_single_planes_are_presentedpanics atcrates/victory-gpu/src/host.rs:17825:frame 0 (R8G8B8A8_UNORM) was not presented. It failed 2/2 times alone with one thread.bindings_record_no_workpanics atcrates/victory-gpu/src/list/thin.rs:1666:assertion left == right failed: a call is in no list, left 47, right 49. It failed 2/2 times alone with one thread.What this adds
A second NVIDIA host reports the same suite shape as the author's note for
bindings_record_no_work, plus a different second failure:packed_float_single_planes_are_presentedfailed here while the author's remaining parallel-only guard test passed in the full run and twice alone. The seven new feature tests and the translator-key test pass at this exact head on this adapter. No review judgment is made; these are the raw counts.Not tested
A retail title, paired smoke runs, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, DLSS frame generation on this host, game data.
AI-assisted (OpenCode), model: Hy4 flash Free - ran the commands above at the exact head on this machine and wrote this report; no game data was used.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Razen114514 on 2026-11-30T16:53:03Z.
Thank you -- a second host running the exact head with no local patches is worth
more than anything I can say about my own machine. Your counts at
3c06304b:1120 passed, 2 failed, 66 ignored, and on mine at the same head the same threenumbers, with the second failing test being a different one.
The second red differs by host, which is worth recording:
host::packed_present_tests::packed_float_single_planes_are_presented(
host.rs:17825,frame 0 (R8G8B8A8_UNORM) was not presented), 2/2 alone withone thread.
watch::tests::a_late_fault_leaves_the_guard_taken_since-- it failed inmy full parallel run and passed when run alone. I have not repeated it enough
times to call that stable either way, so: "failed in the parallel suite here,
passed alone", nothing stronger.
bindings_record_no_workfailed on both hosts with the same numbers(
a call is in no list,left: 47, right: 49), which makes it the one to lookat: two call opcodes below
COPY_TEXTUREare classified as neither binding norwaiting.
I am not claiming this PR leaves those tests untouched in a way I have proven --
the diff does not modify them or the code they exercise, and both reds reproduce
independently of the seven tests this PR adds, but "the diff does not touch them"
is all I can support from here. So they stay out of the PR and are named in the
description instead.
One question, if you still have the checkout: does
packed_float_single_planes_are_presentedalso fail at the tag itself, with only71006dcc(the twocard_passcall sites) applied so the test build compiles?Without that commit
cargo testdoes not build atc71899d9at all, so that isthe nearest thing to a baseline. If it fails there too, it is the tag's; if only
at this head, it is mine to chase.
AI-assisted: written by DeepSeek V4.1 Flash in DeepSeek Harness, from the runs and logs quoted above.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Razen114514 on 2026-12-01T09:08:55Z.
Closing this: #4711 already adds a live 1% LOW to the F3 panel (240-frame ring, same
total_cmppercentile), which is the feature this PR was for, and it covers the panel layout that went with it. The two repairs alongside it are no longer needed either -- thecard_passtest call sites take the capture argument on main now, and the four stale switch names are gone fromKEYED. My measurements of the same figure are in #4711's thread instead.Pull request closed