Shadow: the arenas' card room follows the budget on a card of 12 GiB or less (#1962) #1998
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1998
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1998"
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?
@ablmontazer2 on GitHub · 2026-11-29 06:28 UTC · original
ablmontazer2:arena-card-budget→main· +37 −3 · 1 files · 1 commits · openWhat happens on an 8 GB card (main
568c5e5)Entering the world dies with 0x8007000E — a 6 MiB shared buffer no longer fits,
a host command list does not close, a host state prelude does not record — in
four runs of four (#1962), even with the texture bytes capped at 1,956 MB. The
card's non-texture side grows to 3–4.7 GB; the same world on
8fc2254runsstable with 8.7 GB of textures streamed.
Why
Since
43a998athe arenas of title memory by address (shadow::by_address) havetheir own card budget,
arena_card_most(): 4 GiB unlessVICTORY_MEMORY_CARD_MBsays otherwise (bc34ae7moved them out of thewindows' 1024 MB). Two things make that fatal on a small card:
43a998a), so the texture linefills without seeing their bytes, and they fill without seeing the line's;
card_copy_fits, which stays true untilthe card is nearly whole — one 6 MiB shared buffer then fails and the run
ends.
A page fault takes
by_address(start, PAGE)— one arena at a time, pagescoming in by the thousand at a world entry — so the arenas reach their 4 GiB
well inside the first minutes on any card that lets them. Windows' card sides
are budget-scaled already (
default_window_card_mb: 9 % of the budget, atmost 1024 MiB); the arenas were the one card consumer left flat.
The change
arena_card_most()now follows the budget the way the windows do: on a cardof 12 GiB or less it is 9 % of the budget, at most 1024 MiB (624 MiB on the
6.9 GB budget #1962 reports); on a bigger card it stays 4 GiB. An explicit
VICTORY_MEMORY_CARD_MBstill wins, and no budget keeps the old default.Past the most, arenas spill to the PC's memory — the path they all took
before the card took them, so the change cannot strand a program: the side
shaders see moves to memory the CPU holds, as it does today past 4 GiB.
Checks
arena_card_default_mb(the pure decision, budget in bytes asdefault_window_card_mbtakes it) carries tests besidewindow_room_follows_the_budget: an ask wins, no budget keeps 4096,8 GiB gives 737, 12 GiB caps at 1024, 13 GiB and 24 GiB stay 4096.
window_card_most's, which is in main.8 GB would confirm: world entry with the patch, or with only
VICTORY_MEMORY_CARD_MB=700on today's main (the env var alone shouldalready stop the 0x8007000E if this diagnosis holds).
One file:
crates/victory-gpu/src/shadow.rs.@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-29 06:28 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
github-bot referenced this pull request2026-11-29 07:26:49 +00:00
@pickles976 on GitHub · 2026-11-29 08:56 UTC · original · edited 2026-11-29 09:09 UTC
Offscreen compatibility gate on Wine11 / physical RTX4060 Laptop8GiB / NVIDIA590.48.1: I adapted this policy onto our older fork integration, local626099bea7962a020011c647a4d7d16f3fb89045 over6463c325. This is not an exact-head result: our by_address still has the older cumulative admission counter, not your live-arena counters. One existing video-memory query is reused. Explicit overrides and larger/unknown-budget behavior remain intact.
Fresh17.94s intended-GPU build; all seven policy cases pass. Two isolated real-GPU consumers run with MEMORY_CARD_MB=0 and4096, private CPU mirrors enabled, actual NVIDIA/softwareflags0 required. GetHeapProperties must report CUSTOM/WRITE_BACK/L0 for the spill leg and DEFAULT for the control. Each creates a real64KiB by_address shadow, uploads a varied CPU pattern, writes a separate word only on the GPU, then performs an unrelated later CPU write and production refresh/send. Every16384-word readback is checked after each of those three completed phases:98304 correct words across both processes, including preservation of the GPU-only write and untouched data. Two explicit scatter dispatches per leg; no GPU queue deliberately stalled. Aggregate3/3 tests,0ignored,0.91/0.70s runs.
Stock assertion-enabled app-local vkd3d2576c0b4adfae4a DLL hashes and loader paths verified, raw-access chains disabled. GPUpeak345MiB/minavailableRAM12399MiB; external guards unchanged. Initial fixture-only missing MEM_WRITE_WATCH import was corrected to the existing repository constant before these runs. Logs: verify-nvidia-arena-{budget-build-fixed-20261129T084539Z,shared-stock-20261129T084557Z,local-stock-20261129T084600Z}/.
Limits: this checks the actual constructor/refresh/bulk-copy/scatter consumer and native heap types, not original address-translated title shaders, pressured residency, large-arena lifetime/concurrency, your newer live-byte accounting, or a title saving. The previous rendering configuration reached actual cutscenes but stopped on our6000MiB global-GPU guard at6061MiB. That does not by itself attribute the excess to arenas. Shared placement can add host-memory/PCIe pressure on our16GiB/9GiB-scope machine; the modified title result is not yet established. No guard increase, shader skip, or native disk import is introduced.
Follow-up scoping correction: the saved081925 title log consistently reports only5pages,1arena and4copies (3small windows) during the rendered cutscene. In this older tree an arena is64MiB, the directory16MiB and each window page64KiB: roughly80.2MiB of address-arena backing, not a measured multi-GiB arena load. The test policy remains useful compatibility evidence, but the old4GiB allowance was not reached in that observed path. I will not claim this fixes our6061MiB global-GPU cutoff or spend a scene trial on that premise. Short changed startup showed the picker and no kernel fault, but did not invoke the arena policy at all. Next local attribution is native upload-memory placement, not raising limits or enabling Windows residency-priority hints on assumption.
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.