Card buffers: VICTORY_CARD_BUFFERS_MIN_KB keeps an 8 GB card's floor #890
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/890"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by psttt432454 on 2026-11-28T08:38:17Z.
Problem
Play-VIctory.cmdandscripts/play-foxhound.ps1both setVICTORY_CARD_BUFFERS_MIN_KB=64on every card. That overrides the budget-scaled minimum fromdefault_card_limits_mb(16 MiB on budgets up to 12 GiB). On an 8 GB card it moves the title's small buffers onto the card past its budget.Measured
RTX 5070 Laptop 8 GB (local budget 7,123 MB), Ryzen 9 HX, 32 GB RAM,
--console series-s,Play-VIctory.cmd pareto-residency. All three runs used the same save and the same spot. World frames per one-second line offrame_times:card_buffers_min_kbVICTORY_CARD_BUFFERS_MIN_KB=0(before)fxceless/victory-fork#1417 reports the same overflow on an RX 7600 8 GB.
Change
min_kb_floorinshadow.rs. When the local budget is under 10 GiB, the KiB override can raise the minimum but not lower it below the budget-scaled default.WARNnames both values (asked_kb,kept_kb).Tests
window_tests::small_cards_keep_their_buffer_floor.cargo test -p victory-gpu --locked -- --test-threads=1: 453 passed. I skippedtiles::tests::card_wrote_failure_does_not_poison_card_mask, which crashes with an access violation on this RTX 5070 Laptop with or without this change.cargo clippy -p victory-gpu --all-targetsreports twomanual_is_multiple_oferrors, atdescriptor.rs:1234andshadow.rs:1708onmain. Both are already onmainand not touched here.Not covered
MIN_KB=0.No game files, logs of the title or images are included.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by psttt432454 on 2026-11-28T09:32:10Z.
A correction to the description: three launchers set
VICTORY_CARD_BUFFERS_MIN_KB=64, not two. The built-invictory play(apps/victory/src/play.rs) sets it too. Because the fix is inshadow.rs, it covers all three.Measured again with
victory play --series-son the same RTX 5070 Laptop 8 GB, same save and spot. The log showsMIN_KB left out … asked_kb=64 kept_kb=16384. World frames were about 100 ms, and faces and vehicles were drawn correctly.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ArturoWolff on 2026-11-28T09:45:21Z.
Independent Linux data point for psttt432454's #890: I tested the existing settings path (
VICTORY_CARD_BUFFERS_MIN_KB=0) rather than applying the PR, to isolate the policy on a single executable. RTX 4060 desktop 8 GB, 16 GB system RAM, NVIDIA 620.73.04, GE-Proton11-14. Base.01(63b902fe), #925 helper compiler plus the same already-tested Linux file-backing adaptation. Series X 1080to1440, DLSS/FG off, full requested RT/water lighting, ordinary waits and full write-back. Same cloned profile seed and fresh external caches; only the effective card-buffer minimum override differs.This verifies the launcher override and the substantially different copy-allocation policy in an actual Linux title load. Creation records are not unique live allocations or allocated byte totals; both arms have the same peak sampled use and the same reservation for future card copies. Neither crossed the reported DXGI budget in those nine texture-room samples. Both reached loading artwork then black overlay and the existing #628 exit 5, without a memory guard stop, OOM increment, recorded GPU fault or reported device/fence failure. No claim about in-world FPS, final visual fidelity, or a cure for the load failure; your Series S world measurements cover a later workload. I would keep this as a useful opt-in comparison for local testing, not infer a general performance benefit from these cold-loading timings. The remaining admission reservation is also relevant to the separate #609 discussion.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-11-28T09:58:51Z.
I measured in-world frame times on a desktop 8 GB card. In this test, the 16 MiB floor was 2.4-2.7 times slower.
Machine: RTX 3070 8 GB (driver 621.24) on PCIe 3.0 x16. nvidia-smi reports link gen max 3 and the card's own max 4. The rest is a Ryzen 7 5800X3D, 32 GB and Windows 11 build 26200.
Build and test: main
63b902feplus my local patches, without this PR. Like ArturoWolff, I set the value by hand:VICTORY_CARD_BUFFERS_MIN_KB=16384, which is the floor this PR keeps on this card. The limits line printedcard_buffers_min_kb=16384 card_buffers_max_mb=1305. Settings: Series S, DLSS performance, no frame generation. Nothing else in the profile changed; it normally sets 64.These were unattended runs on the same save: it loaded, then stood still for 11 minutes after world entry. Here is one run at 16384 against two runs at 64 of the same build (medians of the 5-second lines):
It wasn't a transient. Per-minute means after world entry were 138-174 ms at 16384. At 64 they were 55-72 ms in run A and 58-82 ms in run B. All three runs were stopped after 12 minutes, with no crash signs.
How I read it:
VICTORY_CARD_BUFFERS_MIN_KBinshadow.rssays every shader load, store and atomic on them crosses it, and PCIe 3.0 would make that worse here than on a newer laptop link. I haven't shown that.Not covered: nobody watched the picture, so I can't say whether faces or vehicles differ here. This is one run at 16384, standing still.
This single high-floor run suggests caution about making it the default on every card under 10 GiB. Opt-in, as ArturoWolff suggested, or a choice keyed to the bus rather than the budget, would be worth testing.
(Unattended standing-still runs without frame generation. Measurements and text prepared with my AI assistants, Claude Code and Codex. No game files.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by psttt432454 on 2026-11-28T12:01:59Z.
Thanks @ArturoWolff and @CuteBooty, your numbers were right. I re-measured on my machine and I'm closing this.
Machine: RTX 5070 Laptop 8 GB (DXGI budget ~7.1 GB), Windows 11.
victory play --series-s, same save and spot both times, shader cache warm both times.63b902fe(MIN_KB=64)The picture was correct on main: faces, houses and textures were all there. The OOM and broken picture I first saw with 64 KiB were on an older build, and current main no longer shows them on this card. So the floor only costs time here, about 4x, matching CuteBooty's PCIe reading, and it doesn't free room either.
My earlier ~100 ms comment had no comparison behind it: I hadn't run current main with 64 KiB on this card.
#943 (the slot eviction report line) doesn't depend on this PR and stays open.
Pull request closed