gpu: windows on the card sized for 16 and 24 GB cards #621
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!621
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-621"
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?
@KhryptorGraphics on GitHub · 2026-11-28 01:55 UTC · original
KhryptorGraphics:port/vram-tiers→main· +99 −7 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCWhat
Sizes the windows on the card for 16 GB and 24 GB cards, using the tier values of crossducking/RAZDA4A-XEN (GPL-3.0, commit 76b5813).
VICTORY_CARD_WINDOWS_PERCENT(50 to 97) sets the share.VICTORY_CARD_WINDOWS_MB=1024 VICTORY_CARD_WINDOWS_PERCENT=80restores the old behaviour.This changes default behaviour on cards with more than 12 GB. Only
crates/victory-gpu/src/shadow.rsis touched.Verification
cargo check -p victory-gpu --target x86_64-pc-windows-msvc --testspasses with no new warnings.Windows outside buffers had card room of 9% of the budget, at most 1024 MiB, from 8 GiB budgets on, measured on a 12 GB card: a 16 GB or a 24 GB card got the same 1024 MiB. The windows came to 3,552 MB in run 104, and the pages of title memory by address count under the same number (by_address adds to WINDOW_CARD_BYTES), so most windows of a 16 GB card stayed in the PC's memory and were read over the bus. Above 12 GiB, in the bands the card copies of title buffers already use (default_card_limits_mb), windows now get 2560 MiB, and from 20 GiB 5120 MiB. They go to the card up to 89 % of the budget above 12 GiB and 91 % from 20 GiB, less what the texture queue keeps free for card copies of title buffers and for render targets not made yet, not over the texture queue's own line (resource::room_line: play's 86 and 80 for frame generation stay free of windows), and never under the four fifths they had: while the world's targets are still to come (3,072 MiB kept) the line stays where it was, and once they are made windows have the rest. Budgets of 12 GiB and less keep 80 % and the 9% cap. VICTORY_CARD_WINDOWS_PERCENT (50 to 97) sets the share instead; VICTORY_CARD_WINDOWS_MB=1024 VICTORY_CARD_WINDOWS_PERCENT=80 is the behaviour before. The numbers are the 16 and 24 GB tiers of crossducking/RAZDA4A-XEN (GPL-3.0), commit 76b5813 ("auto-vram: dynamic DXGI VRAM scaling"): card_windows_mb 2560 / 5120 and card_windows_percent 89 / 91 of its VramPolicy (the 16 GB values of hosts it does not count as short of memory: more than 20 GiB of RAM and a shared budget over 8.5 GiB; the 24 GB values do not depend on it). The bands are this fork's (over 12 GiB, from 20 GiB), not that fork's 12,800 and 18,432 MB: a 20 GB card (a budget of about 19 GiB) gets the 16 GB values here. The rest of that policy was not taken: this fork already sizes the texture queue's line (resource::line_for), the texture keep (host::vram_keep_below), the card copies of title buffers (default_card_limits_mb) and the per-frame texture staging (draw::staging_budget_per_frame) from the budget, and VICTORY_VRAM_BUDGET_MB moves all of them as VICTORY_VRAM_MODE does there. Its command-list pool changes (659d074, 4e6f7ed) were read and not taken: the churn they remove came from that fork's once-a-second trim of idle lists and backs under a pressure latch, which this fork does not have. Co-Authored-By: Claude Opus 5.5 <[email protected]>