F3: a second panel, translucent bars over the picture #4542
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!4542
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@M4gnif1cus on GitHub · 2026-11-30 22:07 UTC · original
M4gnif1cus:panel-f3-v2→main· +4215 −16 · 11 files · 2 commits · closed without mergingRelated: #3982, #4540
What it changes
F3 now cycles to the existing panel (the slim one from #4635), 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 #4377). 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 #4540). 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 #4635 (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
smoothness:line,VICTORY_FLICKER_DETECT=1, and both in bench.ps1's summary #4377smoothness:line,VICTORY_FLICKER_DETECT=1, and both in bench.ps1's summary #4377@M4gnif1cus on GitHub · 2026-11-30 23:18 UTC · original · edited 2026-12-01 00:13 UTC
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).9860fa1fb8to89c22bd190smoothness:line,VICTORY_FLICKER_DETECT=1, and both in bench.ps1's summary #4377smoothness:line,VICTORY_FLICKER_DETECT=1, and both in bench.ps1's summary #437789c22bd190to9cce293350@M4gnif1cus on GitHub · 2026-12-01 01:58 UTC · original
Rebased onto
f5c3d243after #4635: F3 now cycles #4635'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 #4635 (font.rs,menu.rs,panel.rs's notice and advisor), none in this pull request's changes.9cce293350toebbf02695c@trustno1-coder on GitHub · 2026-12-01 18:38 UTC · original
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