gpu: levels on demand on a budget up to 12 GiB, not 8 #2600
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2600"
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 superboynick on 2026-11-29T14:50:42Z.
The automatic threshold for levels-on-demand is 8 GiB, which was chosen before a card in the 8-12 GiB band was measured. A 12 GB RTX 5070 Ti Laptop has a DXGI budget of 10,857 MB, so it sits above the line and made every level resident.
At Series X that costs the frame outright: the card's own memory ran to 9,816 MB of 10,857 while 7,626 MB was already shared with the card out of system memory, and then 157 distinct pipelines came back
0x8007000e, with each frame dropping 636 of 2,004, then 1,361 of 2,143, then 645 of 2,151 draws: 0.3 fps.Measured on that card, Series X at 2560x1440 with DLSS Quality and the switch set
scripts\play-foxhound.ps1applies, sampling the title's own counter every 5 s and discarding the first 120 s:And the automatic path itself, at Series S with nothing set in the environment, now logs
tier=4 on=trueand runs 10 fps median, p10 9, 4,490 draws - the same as it did with the switch set by hand, so the automatic path carries those numbers.Scope. This changes one comparison and its two doc comments; the switch's meaning, the tier-2 requirement, and
VICTORY_LEVELS_ON_DEMAND=0/1all behave as before, so anyone who wants it off on a 12 GiB card still has the switch.cargo test -p victory-gpu --lib -- tiles: 6 passed, 0 failed, 1 ignored;cargo build --release -p victoryis clean.What this does not fix. Whether a 12 GB card should be offered Series X at all at this budget is #2520; the title still runs out of shared memory there and still crashes under that pressure. This only stops the automatic path from leaving off the one switch that measurably helped on the card it helps most.
docs/findings.mdin #2588 has the full table and the Series S frame in parts.Checked for overlap:
tiles.rsis untouched by the memory work in #1463/#971/#718 (those areshadow.rsand the allocator), and PS5-style tile pools are not in this file. Claimed under #2520, per #1528.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DoubleD17 on 2026-11-30T03:37:12Z.
We have a 12 GB card in exactly this band (RTX 5070, DXGI budget 11,175 MB), so we ran a test.
For
victory playthis PR changes nothing:apps/victory/src/play.rssetsVICTORY_LEVELS_ON_DEMAND=0("Off again (2026-11-28) while foliage flickers in play"), so the 12 GiB line is never reached from the launcher. To see what it would do, we ran main41adb551withVICTORY_LEVELS_ON_DEMAND=1against main itself.On this card, turning it on added about 1.8 GB of shared memory and 1.6 GB of private memory, with no change in frame rate (−2.1 ms prep, +1.5 % fps, both inside the noise). The card's own memory stayed at the budget either way. No foliage flicker in 160 frames looked at frame by frame. Here this card never ran out of memory, unlike the 5070 Ti Laptop in the description, so this is not the case the PR was made for.
Setup:
41adb551with the switch, against41adb551without it;AI Assisted
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.