gpu: windows on the card sized for 16 and 24 GB cards #621

Manually merged
github merged 1 commit from github-bot/gh-621 into main 2026-11-29 08:22:22 +00:00 AGit
Owner

@⁠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 UTC

What

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).

  • Before, budgets over 12 GiB got the 12 GB card's cap of 1024 MiB.
  • Now windows get 2560 MiB above 12 GiB and 5120 MiB from 20 GiB, up to 89 % and 91 % of the budget.
  • Budgets of 12 GiB and less are unchanged.
  • VICTORY_CARD_WINDOWS_PERCENT (50 to 97) sets the share. VICTORY_CARD_WINDOWS_MB=1024 VICTORY_CARD_WINDOWS_PERCENT=80 restores the old behaviour.

This changes default behaviour on cards with more than 12 GB. Only crates/victory-gpu/src/shadow.rs is touched.

Verification

  • Cross-checked for Windows on a Linux machine: cargo check -p victory-gpu --target x86_64-pc-windows-msvc --tests passes with no new warnings.
  • Not run in the game. No frame-rate or stability measurement was taken on this fork; figures quoted are the source fork's own.
  • Clippy and the test suite have not run locally; CI on this pull request is their first run.
  • Reviewed independently against the source commits before pushing.
**@⁠KhryptorGraphics** on GitHub · 2026-11-28 01:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/621) `KhryptorGraphics:port/vram-tiers` → `main` · +99 −7 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC ## What 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). - Before, budgets over 12 GiB got the 12 GB card's cap of 1024 MiB. - Now windows get 2560 MiB above 12 GiB and 5120 MiB from 20 GiB, up to 89 % and 91 % of the budget. - Budgets of 12 GiB and less are unchanged. - `VICTORY_CARD_WINDOWS_PERCENT` (50 to 97) sets the share. `VICTORY_CARD_WINDOWS_MB=1024 VICTORY_CARD_WINDOWS_PERCENT=80` restores the old behaviour. **This changes default behaviour on cards with more than 12 GB.** Only `crates/victory-gpu/src/shadow.rs` is touched. ## Verification - Cross-checked for Windows on a Linux machine: `cargo check -p victory-gpu --target x86_64-pc-windows-msvc --tests` passes with no new warnings. - **Not run in the game.** No frame-rate or stability measurement was taken on this fork; figures quoted are the source fork's own. - Clippy and the test suite have not run locally; CI on this pull request is their first run. - Reviewed independently against the source commits before pushing.
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]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:57:38 +00:00
github manually merged commit 2944c2f68c into main 2026-11-29 08:22:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!621
No description provided.