Series X: room for a full-size 3840x2160 scene (DLAA, VICTORY_NATIVE_4K) #1274
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1274"
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 Anorak-314 on 2026-11-28T16:49:14Z.
What this does
Makes a full-size scene run on the Series X profile at the 3840x2160 output:
VICTORY_DLSS_MODE=dlaa, and a newVICTORY_NATIVE_4K=1for the title's own temporal anti-aliasing at 3840x2160 with no upscaler at all. Everything is opt-in; without the switches nothing changes.Today such a start stops a few seconds in at the title's out-of-memory break (
victory-image+0x2219650; #747 describes the same stop on Series X at the 2160p output and turns DLAA off there). The cause is two memory budgets of the title that are sized for its 2560x1440 scene. Both are constants of the image, so telling the title of more memory changes nothing.The two budgets (
apps/victory/src/heap_budget.rs)VICTORY_RT_HEAP_MB=<MB>. The title makes nine heaps at start from a table of sizes in its read-only data (+0x6186250, the second table is the Series X's: 13,312 MB in all). Heap 2 of it, 2,199 MB, holds the scene's render targets. At 2.25 times the pixels they do not fit. The switch sets heap 2's size and raises the total by as much. On this card 6,000 MB still ran out, 8,000 MB runs, and 12,000 MB upset the title's allocator.VICTORY_SCENE_POOL_MB=<MB>. A second pool of 64 KiB units (+0x1d488a0: 0x2c60 units, 710 MB). With heap 2 made bigger the next stop was this pool'sint3at +0x2473e88, asking 1,357 MB of it. Raising the count alone was not enough: the pool's array of one 8-byte entry per unit lies in the title's data, sized for the stock count, and more units ran past it over a lookup table's count (an access violation at +0x5524010 a moment later). So the array moves to a new zero-filled section appended to the image, and the fourleas that take its address are pointed there. 1,600 MB runs.Every place is checked against the stock image first, by BLAKE3 hash as
native_1440p.rsdoes (no bytes of the title are added), and another build is refused. Each patched image goes to a folder of its own (...-rtheap8000-scenepool1600). Series S has its own table and count and is left alone.Native 4K without an upscaler (
VICTORY_NATIVE_4K=1)With DLSS off the stock Series X path draws the scene at 2/3 of the output and its own temporal pass resolves it to 3840x2160.
prepare_native_scenesets that pass's scene scale to 1 and touches nothing else, so the title draws 3840x2160 and its own temporal pass anti-aliases it. It needs the two budgets above.How to use it
I left the launchers and the F1 menu alone: whether DLAA should set the two sizes itself is your call (the heap is committed at once, 5.8 GB more than stock).
Testing
One PC: RTX 5090 (32 GB, driver 621.24), Ryzen 9 9950X3D, 64 GB, Windows 11, Series X profile, 3840x2160 output.
victory-image+0x2219650, asmaindoes.VICTORY_RT_HEAP_MB=8000andVICTORY_SCENE_POOL_MB=1600: DLAA runs the opening cutscenes for the 150 s of the test, and so doesVICTORY_NATIVE_4K=1with DLSS off (25.7 fps). The log names the patches (render-target heap 8000 MB (stock 2199 MB),scene pool 1600 MB (stock 710 MB), its array of units in a new section at +0xb06d000).heap_budget.rsandnative_1440p.rs, run against the retail executable throughVICTORY_DISPLAY_PROFILE_TEST_IMAGEas the existing ones are: the sizes, the fourleas, the new section, a second patch refused.cargo test --workspace --lockedpasses (1,130 tests, with the retail executable named), and so doesrepository_passes_policy.cargo clippy --workspace --all-targets --locked -- -D warningsstops here onmainitself (manual_is_multiple_of,let_and_returnin files this does not touch); it reports nothing in the three files changed.On an NVIDIA card a full-size scene also shows streaks and blocks across faces. That is a separate fault with its own fix, #1273: with both, 12 frames through the opening cutscenes are clean.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-29T07:09:26Z.
An RTX 4070 Ti SUPER (16 GB, driver 617.42, Windows 11) reached playable Series X free-roam at full 3840×2160 with DLAA. On this machine several earlier stock attempts had stopped during initialization at +0x2219650. I tested the budget changes from
2212f60on a local build with the NVIDIA wide-dispatch change from #1273, BVH builder off, and a copy of the same save.The launcher confirmed an 8,000 MiB render-target heap and 1,600 MiB scene pool. After the normal frame-generation prewarm restart, Streamline recorded render=[3840, 2160], output=[3840, 2160], mode=DLAA in the playable session. I also walked from the porch into the house. On fixed views the rendered medians were 15.4 FPS / 64.8 ms on the porch (61 s) and 13.7 FPS / 72.8 ms inside (64 s). With 2× frame generation selected, the porch PresentMon overlap averaged 30.4 displayed FPS.
Memory pressure matters on this card. Windows reported median process dedicated/shared GPU memory of 14,182/7,373 MiB on the porch and 14,950/7,311 MiB indoors. The porch's lowest sampled system commit headroom was 821 MiB. These timings cover one save and two short views. This run verifies the full-size DLAA path on Ada. The game's own temporal AA still needs a separate run.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T08:28:13Z.
Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Anorak-314 on 2026-11-30T04:42:37Z.
Merged with main at
41adb551: the branch is now the same as main (no files changed), so everything here is in. Closing; thank you for taking it, and thanks to @Yoshi-233 for the 4070 Ti SUPER run.Pull request closed