gpu: exclude VIctory debug menu and overlays from frame generation #4900
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!4900
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4899"
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?
@topangag on GitHub · 2026-12-01 13:14 UTC · original
topangag:pr/exclude-debug-menu-from-framegen→main· +167 −26 · 5 files · 1 commits · closed without mergingWhat it changes
Prevents VIctory's own debug menu (F1) and diagnostic overlays (F3 stats panel, notices, advisor) from being warped or blurred by frame generation when rotating the camera:
Host::present_placed()after DLSS Super Resolution, so DLSS SR never blurs them.Present(), Streamline DLSS-G and AMD FSR 3 Frame Generation treated those static overlay pixels as moving world geometry — smearing/blurring the F1 menu whenever the camera moved.crates/victory-gpu/src/streamline.rs,crates/victory-gpu/src/streamline/fsr.rs):Menu::draw,Panel::draw,Notice::draw, andAdvisor::drawnow returnboolindicating whether VIctory stamped pixels onto that frame.pause_framegen_for_ui(overlay_drawn): pauses DLSS-G (keepingDLSSG_RETAIN_RESOURCES_WHEN_OFFso resume is instant without teardown) and FSR 3 FG (without callingretire()) whileSETTINGS_MENU_OPENis true.VICTORY_FRAMEGEN_IN_MENU=1; opt-in to also pause FG while any diagnostic overlay (F3/F2/notice) is visible viaVICTORY_OVERLAY_NO_FRAMEGEN=1.crates/victory-gpu/src/host.rs,crates/victory-gpu/src/streamline.rs,crates/victory-gpu/src/streamline/fsr.rs):overlay.is_some()), lazily allocates a 2-slotCOPY_DESTui_overlayring onPresenter, copies the title's UI plane into it, stamps VIctory's overlays onto that UI plane (all rendered overlay pixels havealpha = 1.0), and tags it asBUFFER_UI_COLOR_AND_ALPHAso DLSS-G separates UI from motion-interpolated world pixels.hudless.is_none()and a VIctory overlay was drawn onto the back buffer, falls back to taggingplanes.baseasBUFFER_HUDLESS_COLOR(and passesplanes.baseashudlessto FSR 3 FG).How it was tested
15,544.2 MiBusable)595.97.0, Streamline2.14.16, Hardware GPU Scheduling)10.0.26200)1080to1440, DLSS Quality, DLSS Frame Generation 2x (--framegen 2), Ray Tracing Off (VICTORY_HW_RT=0), 30 FPS cap, DualSense input profile, fixed input replaypad_xsx.txt3ae31073combined with5fabb46e):DLSS Frame Generation switched frame=1367 on=true times=2 code=0 result="ok"→ steady15–17 presents with it on, 0 off, 15–17 frames shown by it (status 0x0).VICTORY_MENU_OPEN=1, gameplay): steady0 presents with it on, 14–17 off, 0 frames shown by it (status 0x0),0.08 ms before present,0.00 mslock wait, zero Streamline errors or resource teardown.BUFFER_UI_COLOR_AND_ALPHApath were verified by code inspection, Clippy, and unit tests; live gameplay run tested Series X DLSS-G 2x on RTX 5070 Ti.cargo testpassed for the crates it touches: yes3ae31073:cargo test --locked -p victory-gpu --lib -- streamline::→ 55 passed, 0 failed (including new unit testdebug_menu_pauses_framegen_by_default_without_blocking_hud_overlays).--all-features) on3ae31073: 0 warnings/errors in the 5 touched files.check= Clippy, Clippy--all-features, full workspacecargo test) verified green (6m28s) in fork PR topangag/VIctory-NVIDIA#3 on top of upstream CI baseline fixes (#4708 Clippy fixes + #4143victory-hlealias validation fix).Checked for overlap
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 13:38 UTC · original · edited 2026-12-01 14:21 UTC
On
3ae31073, the Streamline swap chain stays proxied after you turn DLSS Frame Generation off in F1. With a visible overlay in two-plane mode, that still triggers a full-size UI texture copy and another round of overlay draws every present. The movie path has the same extra work while DLSS Frame Generation is held off.da7b5d02 gates the combined UI plane on the live DLSS-G request and submission readiness, and skips it on movie presents. The regular back-buffer overlays still draw. The diagnostic cycle can still prepare a UI plane on a present where it switches generation back on.
cargo check --locked -p victory-gpupassed on Windows with the patch. The staged asset policy passed for both files. The remaining check is two-plane presentation on a DLSS-G card, with a visible overlay while switching generation off and back on.81d9ff31 is a follow-up on the same branch series for two-plane presentation. It uses the typed view already accepted by the compositor, so a compatible typeless or sRGB display plane can be copied into the UI texture. The DLSS and FSR paths use the overlay actually drawn by the compositor. The copy still requires a matching size, one mip, and the same sample description. D3D12 CopyResource format rules
cargo check --locked -p victory-gpupassed on Windows with both commits. The staged asset policy passed on the additional file change.Please keep the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change in.AI-assisted with OpenAI Codex.
@trustno1-coder on GitHub · 2026-12-01 18:28 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