8 GB VRAM / 16 GB RAM: E_OUTOFMEMORY in the prologue; texture eviction ignores WDDM shared memory #3914
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Marvisak/VIctory. Originally posted by litiumx on 2026-11-30T20:56:25Z.
Summary
On an 8 GB card with 16 GB of system RAM the game dies with
0x8007000E(E_OUTOFMEMORY) 1–3 minutes into the prologue. Dedicated VRAM is not exhausted when it happens — the WDDM shared/system pool is. Readingcrates/victory-gpu/src/resource.rs, texture eviction only looks at the card's own budget, never at the shared one, so nothing evicts for the pool that actually overflows.This is reported against the NVIDIA build
v2026.11.30.03(a fork ahead of this tree), but the eviction code below is from this repository and I believe it is the shared root cause.Environment
HwSchMode=2)victory.exev2026.11.30.03 (SHA-256d178c927...fea3711), shader preload completedSERIES S PICTURE720 / 626 / 540,DLSSquality / balanced / performance,FRAME GENERATIONoff and x2 (FSR 3 and DLSS via MFG Unlocker), window 1920x1080,VICTORY_LEVELS_ON_DEMAND=1,VICTORY_RESIDENCY_PRIORITY=1,VICTORY_TEXTURE_BUDGET_MB=3000..4000Symptom
Every configuration crashes in the prologue, including frame generation fully off and MFG Unlocker disabled:
The card sits at ~92% of its budget while the shared pool (~half of system RAM on a 16 GB machine) is full. System commit was 21.9 GB of a 34.5 GB limit, so paging is not the constraint.
Observation from source
evict_unused()(crates/victory-gpu/src/resource.rs) computes the eviction amount from the first pair ofvideo_memory()only:with
BUDGET_HIGH = 0.90,BUDGET_LOW = 0.85,IDLE_MS = 120_000,IDLE_FRAMES = 300. The second pair (system/shared memory) is ignored. TheVIctory-LITEfork adds exactly this guard (WDDM shared at 80% / 88%).Request
Consider a shared-memory guard, or making the eviction threshold account for the shared pool, so 8 GB cards do not fail at ~92% of the card budget while shared memory is full.
Things that did not help
VICTORY_CARD_ROOM_FOR_TARGETS_MB=1500,VICTORY_CARD_BUFFERS_MB=800,VICTORY_CARD_WINDOWS_MB=400— flood of0x8007000E, crash.VICTORY_TEXTURE_BUDGET_MB=4000— lowered commit from ~22 GB to ~16 GB and let the prologue load once (~8 fps with heavy swapping), but did not prevent the crash.Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-12-01T08:40:06Z.
I measured which memory group each kind of D3D12 allocation counts in. I used a standalone D3D12 program, not the game, on an RTX 4060 Laptop 8 GB with 32 GB of RAM. Its local budget is 7,188 MB and its non-local budget is 15,483 MB.
Host::shared_buffermakes)What this means for the request:
evict_unused()would throw textures away while the pool that fails stays just as full.What fills the shared group on this tree:
shared_buffer:shadow::find: one copy the size of each title buffer, kept until the title releases it.shadow::loose: 4 MiB windows, never freed.With 16 GB of RAM the non-local budget is about half of it, which fits your 7,717 MB. #2875 measured the same failure: the non-local group pinned at 103-104 %,
Close()returning E_OUTOFMEMORY, and loose windows making up 3.9 GB of it. Three open PRs target it:VICTORY_LOOSE_IN_GPU_UPLOAD=1).How to confirm it (on a build with
diagnostics):VICTORY_LOG=victory_gpu::shadow=debug,info. Count theloose memory copied to the hostlines (4 MiB each) and add uplenacross thelarge buffer copied to the hostlines. Compare both with thevideo memory: … MB of … MB in system memoryline every 5 s. If they rise with the shared number up to the crash, the copies are the cause.VICTORY_WINDOW_IDLE_SECS=30) or #2875 (VICTORY_LOOSE_IN_GPU_UPLOAD=1), with the texture settings unchanged. The shared number should level off and the 0x8007000E errors should stop.Your fork may name these differently. The question is the same: what grows in the non-local group until the crash.
AI use: written with Claude Code; the table comes from the program above, run on the 4060 Laptop.