Big cards: windows in card memory the CPU maps up to a quarter of the budget (VICTORY_VRAM_WINDOWS_BAR=1) #4894
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!4894
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4893"
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?
@NICKNAMErutschovkonikovan on GitHub · 2026-12-01 13:07 UTC · original
NICKNAMErutschovkonikovan:pr/vram-windows-bar→main· +68 −6 · 2 files · 2 commits · openWhat it changes
Adds an opt-in switch,
VICTORY_VRAM_WINDOWS_BAR=1. On a card with a budget of 20 GiB or more whose memory the CPU can map (GPU_UPLOAD, resizable BAR), it raises the default cap for windows outside buffers in card memory the CPU maps. The default is normally the 4096 MiB thatwindow_mapped_defaultgives a card of 14 GiB or more. With the switch it becomes a quarter of the card's budget, for example 7854 MiB on an RTX 5090 with a 31,419 MB budget. All of the title's windows can then sit in card memory: they have no CPU side in shared memory and nothing to send.VICTORY_WINDOWS_BAR_MB, 0 included, still wins.big_card_windows_mb_ofreturns 0).Default: off (
asked_for!). The measurements below compared the switch with no windows in mapped card memory at all. They were taken beforemaingave 14 GiB+ cards 4096 MiB by itself (ae8fa941). Nobody has measured what raising the cap from 4096 MiB to a quarter of the budget gains on its own, so the switch stays opt-in until someone does.How it was tested
6c7d884b(onmain5fabb46e).cargo test -p victory-gpu --lib --locked: 1096 passed, 0 failed, 66 ignored. This includes the newshadow::window_tests::windows_go_to_mapped_card_memory_on_big_cards_only, which needs no GPU or game data.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: fails only on lints that already fail onmainin files this branch doesn't touch:host/font.rs:213and:260:too_many_argumentshost/menu.rs:667:manual_is_multiple_ofhost/panel.rs:602and:668:collapsible_ifmain's 4096 MiB default for 14 GiB+ cards.cargo testpassed for the crates it touches: yes (victory-gpu --lib)Checked for overlap
🤖 Generated with Claude Code
@cloph-dsp on GitHub · 2026-12-01 13:42 UTC · original
Verification (independent, AI-assisted: Hy4 flash). Windows, Rust 1.100.0 (Scoop rust-msvc), MSVC, commit-scoped shallow worktree.
Base
5fabb46eaf6ed8771321787f8871051abde69b9b, head6c7d884b1275b27ad00a6c051bdb5fc111c5a3d4.git diff --numstat→ README.md 1/0, crates/victory-gpu/src/shadow.rs 61/5.As with the neighbouring PRs tonight,
window_line_keeps_the_room_held_for_targetsalready exists on the base (git grep -F on5fabb46ematches shadow.rs), so this is an extension of an existing test, not a new one; the new part covers the mapped-window budget line.git diff --check "5fabb46e..6c7d884b"→ no output, exit 0.Result:
running 1 test,test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1161 filtered out.Budget arithmetic only, no device opened; GPU/driver N/A. No game data.
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 14:24 UTC · original
On
6c7d884b,window_mapped_mostcallsbig_card_windows_mb()before applying the explicitVICTORY_WINDOWS_BAR_MBoverride. On a qualifying host with bothVICTORY_VRAM_WINDOWS_BAR=1andVICTORY_WINDOWS_BAR_MB=0, startup can log a positivewindows_bar_mbeven though the effective cap is zero. Could the explicit override be resolved before computing and logging the automatic cap? This is from static review.AI-assisted with OpenAI Codex.
@NICKNAMErutschovkonikovan on GitHub · 2026-12-01 14:45 UTC · original
Thanks for the check and the review. Fixed in the latest commit on this branch: an explicit
VICTORY_WINDOWS_BAR_MB(0 included) is read first, and the big card's cap is only computed and logged without it.cargo test -p victory-gpu --lib -- shadow::window: 22 passed.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.