12 GB cards keep title buffers of 1 MiB and more on the card (1024 MiB) #444

Open
github-bot wants to merge 1 commit from github-bot/gh-444 into a-publier AGit
Owner

@⁠wesneyalcantara-lang on GitHub · 2026-11-27 02:05 UTC · original
wesneyalcantara-lang:card-tier-12gb → a-publier · +20 −7 · 1 files · 1 commits · open

The VRAM tiers give every budget up to 12 GiB the 16 MiB / 512 MiB baseline for VICTORY_CARD_BUFFERS_MIN_MB / VICTORY_CARD_BUFFERS_MB. On a 12 GB card (WDDM budget about 10-11.5 GiB) that leaves nearly every title buffer in PC memory, and the CPU compares their copies for shader writes every frame.

This splits the tier: budgets above 9 GiB and up to 12 GiB (12 GB cards) take 1 MiB / 1024 MiB, the values docs/README-fxceless.md already lists among the newer switches. 8 GB cards and unknown budgets (WARP) keep 16 / 512. The env vars still override.

Measured on a 12 GB NVIDIA card

Same settings otherwise (scripts\play.ps1 + VICTORY_OUTPUT=1280x720), scenes with more than 1,500 draws:

16 MiB / 512 MiB 1 MiB / 1024 MiB
CPU compares for shader writes 275 MB / frame 26 MB / frame
snapshots on the submitting thread 25.6 ms 3.1 ms
preparing 87 ms 51 ms
copy-back 43 ms 20 ms
median FPS 4.9 8.8
VRAM in use ~7.8 of 10.5 GB 7.9 of 10.5 GB

Single runs on one machine, not an A/B with repeats. Not tried on a 10 GB card (budget ~9 GiB, kept at the baseline by the 9 GiB line).

Checks

cargo clippy -p victory-gpu -p victory-hle --all-targets [--all-features] --locked -- -D warnings and cargo test -p victory-gpu -p victory-hle --lib --locked pass; the tier test covers 7-12 GiB.

Independent of #443.

🤖 Generated with Claude Code

**@⁠wesneyalcantara-lang** on GitHub · 2026-11-27 02:05 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/444) `wesneyalcantara-lang:card-tier-12gb` → `a-publier` · +20 −7 · 1 files · 1 commits · open The VRAM tiers give every budget up to 12 GiB the 16 MiB / 512 MiB baseline for `VICTORY_CARD_BUFFERS_MIN_MB` / `VICTORY_CARD_BUFFERS_MB`. On a 12 GB card (WDDM budget about 10-11.5 GiB) that leaves nearly every title buffer in PC memory, and the CPU compares their copies for shader writes every frame. This splits the tier: budgets **above 9 GiB and up to 12 GiB** (12 GB cards) take **1 MiB / 1024 MiB**, the values `docs/README-fxceless.md` already lists among the newer switches. 8 GB cards and unknown budgets (WARP) keep 16 / 512. The env vars still override. ### Measured on a 12 GB NVIDIA card Same settings otherwise (`scripts\play.ps1` + `VICTORY_OUTPUT=1280x720`), scenes with more than 1,500 draws: | | 16 MiB / 512 MiB | 1 MiB / 1024 MiB | |---|---|---| | CPU compares for shader writes | 275 MB / frame | 26 MB / frame | | snapshots on the submitting thread | 25.6 ms | 3.1 ms | | preparing | 87 ms | 51 ms | | copy-back | 43 ms | 20 ms | | median FPS | 4.9 | 8.8 | | VRAM in use | ~7.8 of 10.5 GB | 7.9 of 10.5 GB | Single runs on one machine, not an A/B with repeats. Not tried on a 10 GB card (budget ~9 GiB, kept at the baseline by the 9 GiB line). ### Checks `cargo clippy -p victory-gpu -p victory-hle --all-targets [--all-features] --locked -- -D warnings` and `cargo test -p victory-gpu -p victory-hle --lib --locked` pass; the tier test covers 7-12 GiB. Independent of #443. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The VRAM tiers gave every budget up to 12 GiB the 16 MiB / 512 MiB
baseline, so on a 12 GB card (WDDM budget about 10-11.5 GiB) nearly every
title buffer stayed in PC memory and the CPU compared ~275 MB of their
copies a frame for shader writes. Budgets above 9 GiB and up to 12 GiB
now take 1 MiB / 1024 MiB, the values docs/README-fxceless.md lists among
the newer switches; 8 GB cards and unknown budgets keep 16 / 512.

Measured on a 12 GB card: CPU compares 275 -> 26 MB a frame, preparing
87 -> 51 ms, copy-back 43 -> 20 ms, median FPS in scenes of more than
1,500 draws 4.9 -> 8.8, VRAM 7.9 of 10.5 GB. The env vars still override.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:16:11 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 03:55 UTC · original

Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At 31fb150: cargo test --release -p victory-gpu --lib 396 passed, 0 failed, 34 ignored. (This card has 16 GB, so the 12 GB path itself isn't exercised.)

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 03:55 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/444#issuecomment-7209382704) Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At `31fb150`: `cargo test --release -p victory-gpu --lib` 396 passed, 0 failed, 34 ignored. (This card has 16 GB, so the 12 GB path itself isn't exercised.) AI-assisted (Claude Code); no game data.
Author
Owner

@⁠k5tvbn7f5r-maker on GitHub · 2026-11-27 11:32 UTC · original

Independent synthetic validation on a desktop RTX 5070 (12 GB), NVIDIA 621.40 WDDM, Windows 11 26H2.

A used 4eb6cfdf defaults. B used the same binary with VICTORY_CARD_BUFFERS_MIN_MB=1 and VICTORY_CARD_BUFFERS_MB=1024. C used 31fb1506 defaults.

At an in-process WDDM budget of 11,175 MiB, D3D12 heap checks confirmed the same 1 MiB threshold, 1,024 MiB cap and actual placement in B and C. All 5,400 rounds matched the CPU readback oracle. Each fixture ran in six balanced A/B/C blocks with a fresh process per run, 20 warmup rounds and 130 timed rounds.

Median paired C/A throughput was +11.51% for three 4 MiB buffers (observed block range +10.52% to +17.15%) and −4.11% for mixed sizes (−5.28% to −1.12%). Each direction held in all six blocks on this system. The mixed result is specific to this synthetic session. Gameplay FPS was not measured.

The attached ZIP includes raw timings, placement and readback logs, and reproduction commands.
qa-002-pr444-evidence.zip

**@⁠k5tvbn7f5r-maker** on GitHub · 2026-11-27 11:32 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/444#issuecomment-7217200507) Independent synthetic validation on a desktop RTX 5070 (12 GB), NVIDIA 621.40 WDDM, Windows 11 26H2. A used `4eb6cfdf` defaults. B used the same binary with `VICTORY_CARD_BUFFERS_MIN_MB=1` and `VICTORY_CARD_BUFFERS_MB=1024`. C used `31fb1506` defaults. At an in-process WDDM budget of 11,175 MiB, D3D12 heap checks confirmed the same 1 MiB threshold, 1,024 MiB cap and actual placement in B and C. All 5,400 rounds matched the CPU readback oracle. Each fixture ran in six balanced A/B/C blocks with a fresh process per run, 20 warmup rounds and 130 timed rounds. Median paired C/A throughput was **+11.51%** for three 4 MiB buffers (observed block range +10.52% to +17.15%) and **−4.11%** for mixed sizes (−5.28% to −1.12%). Each direction held in all six blocks on this system. The mixed result is specific to this synthetic session. Gameplay FPS was not measured. The attached ZIP includes raw timings, placement and readback logs, and reproduction commands. [qa-002-pr444-evidence.zip](https://github.com/user-attachments/files/35510463/qa-002-pr444-evidence.zip)
Author
Owner

@⁠Robotniq on GitHub · 2026-11-27 11:59 UTC · original

A data point for the tier this PR leaves at the baseline: an 8 GB card. RTX 3070 Ti (8 GB, WDDM budget 7,249 MiB, 32-lane, driver 32.0.16.2140), i7-13700F, 32 GB RAM, Windows 11 26200, --console series-s. Diagnostics build of a-publier 4eb6cfd with #451 and #443's loose/xmem hunks, the scripts\play.ps1 settings (not -Safe), VICTORY_PORT_CONSTANTS/DESCRIPTORS/CBV/GUARD/JOURNAL=1, VICTORY_UPSCALER=6, structure builder off. Same save, prologue's first area; one run per column, so small differences mean nothing. The log line confirms the limits each run took (card buffer limits ... card_buffers_min_kb=... card_buffers_max_mb=512).

default (16 MiB / 512 MiB) VICTORY_CARD_BUFFERS_MIN_MB=1 (512 MiB) VICTORY_CARD_BUFFERS_MIN_KB=64 (512 MiB)
2,000-3,500 draws a frame 14.8 fps 22.0 fps 20.3 fps
3,500-5,000 13.3 fps 17.8 fps 17.4 fps
5,000-7,000 9.7 fps 15.5 fps 16.7 fps
all world lines after the first minute 13.7 fps 19.7 fps 18.7 fps
submitting thread worked, a frame 67 ms 49 ms 48 ms
card busy (the card's clock line) 91% 95% 92%
VRAM in use at most about 6.8 GB 6,869 MB 7,037 MB
"the card has no room for more" 1 1 1

Medians of the frame lines within each band. No device loss and nothing in crashes.log in any of them, nor in the eight later runs (about 35 minutes in the world) that kept MIN_MB=1.

So on this 8 GB card 1 MiB with the 512 MiB cap is worth about as much as it was on the 12 GB card of the description, and the budget held. 64 KiB gave nothing over 1 MiB and used a little more of the card. I did not try the 1,024 MiB cap here.

AI-assisted (Claude Code): the runs, the reading of the logs and this text.

**@⁠Robotniq** on GitHub · 2026-11-27 11:59 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/444#issuecomment-7217705911) A data point for the tier this PR leaves at the baseline: an 8 GB card. RTX 3070 Ti (8 GB, WDDM budget 7,249 MiB, 32-lane, driver 32.0.16.2140), i7-13700F, 32 GB RAM, Windows 11 26200, `--console series-s`. Diagnostics build of `a-publier` `4eb6cfd` with #451 and #443's `loose`/`xmem` hunks, the `scripts\play.ps1` settings (not `-Safe`), `VICTORY_PORT_CONSTANTS/DESCRIPTORS/CBV/GUARD/JOURNAL=1`, `VICTORY_UPSCALER=6`, structure builder off. Same save, prologue's first area; one run per column, so small differences mean nothing. The log line confirms the limits each run took (`card buffer limits ... card_buffers_min_kb=... card_buffers_max_mb=512`). | | default (16 MiB / 512 MiB) | `VICTORY_CARD_BUFFERS_MIN_MB=1` (512 MiB) | `VICTORY_CARD_BUFFERS_MIN_KB=64` (512 MiB) | |---|---:|---:|---:| | 2,000-3,500 draws a frame | 14.8 fps | 22.0 fps | 20.3 fps | | 3,500-5,000 | 13.3 fps | 17.8 fps | 17.4 fps | | 5,000-7,000 | 9.7 fps | 15.5 fps | 16.7 fps | | all world lines after the first minute | 13.7 fps | 19.7 fps | 18.7 fps | | submitting thread worked, a frame | 67 ms | 49 ms | 48 ms | | card busy (the card's clock line) | 91% | 95% | 92% | | VRAM in use at most | about 6.8 GB | 6,869 MB | 7,037 MB | | "the card has no room for more" | 1 | 1 | 1 | Medians of the frame lines within each band. No device loss and nothing in `crashes.log` in any of them, nor in the eight later runs (about 35 minutes in the world) that kept `MIN_MB=1`. So on this 8 GB card 1 MiB with the 512 MiB cap is worth about as much as it was on the 12 GB card of the description, and the budget held. 64 KiB gave nothing over 1 MiB and used a little more of the card. I did not try the 1,024 MiB cap here. AI-assisted (Claude Code): the runs, the reading of the logs and this text.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/444/head:github-bot/gh-444'
git switch 'github-bot/gh-444'

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-444'
git switch 'github-bot/gh-444'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-444'
git switch 'github-bot/gh-444'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-444'
git switch 'a-publier'
git merge --squash 'github-bot/gh-444'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-444'
git switch 'a-publier'
git merge 'github-bot/gh-444'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.