F3: a second panel, translucent bars over the picture #4541
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4541"
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 M4gnif1cus on 2026-11-30T22:07:18Z.
Related: #3982, #4539
What it changes
F3 now cycles to the existing panel (the slim one from #4634), then to a second, more detailed one, then off. The existing panel looks and measures as before; rebased onto
f5c3d243.The panel on a black background (a temporary change for this capture only), 1:35 into a session with the settings below.
victory_gpu::in_play()exposes that state (Some(true)in play,Some(false)paused or in a menu,Nonewhen the flags cannot be read), so other measurements can count the same frames (see #4376). The flags are now also read with the native mouse hook off, through their own base, so the mouse code behaves as before.A bug in the existing panel (not changed here)
While comparing the two I found that the existing panel shows the frame rate too high, about 7 % at 30 fps (see #4539). This panel does not have that error, so the two disagree until it is fixed.
Panel::frameincrates/victory-gpu/src/host/panel.rs.frames == 0, which is also true right after every report. Each window then begins at its first frame and counts it: N frames over N - 1 intervals.FRAME ... MSand the per-frame counters are divided by the same N, so they read low.How it was tested
e1251c31with this panel code (before the pause detection, which only affects paused frames), same scene, controls locked, each run started with the card at 35 °C or below.6 minutes in one session, the two panels swapped every 20 s (the sample at each swap left out; median of 26 and 27 samples):
Card over the whole session: 70 °C, 108 W, 2,512 MHz (median).
1 minute from the start, one run each:
No difference beyond the variation between runs (about ±1 fps here).
What this panel itself costs: on the frame thread, 12–14 µs per frame on average, 0.3–0.84 ms at most (its own counter, over about 300 frames in each run). In the capture above it reads the card 90 % busy at 102 W, CPU 29.4 ms and GPU 29.3 ms a frame, limited by the GPU.
f5c3d243, swapping every 20 s: each draws, F3 order unchanged, no errors.cargo testpassed for the crates it touches:cargo test -p victory-gpu -p victory-hle(rustc 1.99.1, WARP) onf5c3d243: victory-gpu 1110 passed; victory-hle 468 passed, 1 failed (modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it), which fails the same way on main without this change when the whole suite runs and passes on its own (timing). Clippy (-D warnings): the only warnings are the five main has since #4634 (font.rs213 and 260,menu.rs.is_multiple_of(), two collapsibleifs inpanel.rs's notice and advisor), none in the files this adds or in its changes.Why it is cheap
Checked for overlap
panel.rs), #3982 (proposal for a new look of the overlays); replaces my closed #3229.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by M4gnif1cus on 2026-11-30T23:18:11Z.
Update: after rebasing onto
7d93ee07, which fixes those three warnings on main,CI / checkpasses on this pull request.About the failing
CI / check: it stops at the first Clippy step, on three warnings in files this pull request does not touch, which main has as well:crates/victory-gpu/src/host.rs:5092: manual implementation of.is_multiple_of()crates/victory-gpu/src/shadow.rs:7197: methodrangedis never usedcrates/victory-shader/src/emit/lower.rs:114: fieldloop_capsis never readI ran the same command locally (
cargo clippy --workspace --all-targets --locked -- -D warnings) on main (e1251c31) and on this branch: both give exactly these three and nothing else, so the files this adds or changes (hud.rs,overlay.rs,panel.rs,menu.rs,streamline.rs,lifecycle.rs) pass. Other recent pull requests fail at the same step. My toolchain here is 1.99.1 (with-A deprecatedfor thefetch_updaterenames that 1.99 flags and the pinned 1.98.1 does not).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by M4gnif1cus on 2026-12-01T01:58:43Z.
Rebased onto
f5c3d243after #4634: F3 now cycles #4634's slim panel, then this one, then off; both checked in game. IfCI / checkfails again it is at Clippy, on the five warnings main has had since #4634 (font.rs,menu.rs,panel.rs's notice and advisor), none in this pull request's changes.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:38:05Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed