VRAM budget not enforced (8.4 GB used with VICTORY_VRAM_BUDGET_MB=4096), leads to device removed on low-memory PCs #3655

Open
opened 2026-11-30 03:04:07 +00:00 by zllan099 · 0 comments
zllan099 commented 2026-11-30 03:04:07 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by zllan099 on 2026-11-30T03:04:07Z.


Summary
With VICTORY_VRAM_BUDGET_MB=4096, card memory keeps growing past the budget up to 8.4 GB while the first cutscene loads. On a PC with little memory this fills physical RAM and the device is removed (0x887A0007). This should affect any low-memory setup (8 GB GPUs, laptops, 16 GB PCs), not only mine. I also found that the pipeline library does not load anything after a preload on my machine.

What the log shows right before the crash

  • Card memory goes from 4.4 GB to 8.4 GB in use with a budget of 4096 MB (shadow: "no card copy ... the card has 8367 MB in use of a budget of 4096 MB").
  • Physical RAM free drops to 170-450 MB while commit still has about 31 GB left. So the page file is not the limit, physical memory is.
  • The frame counter stays at 1344 for about 40 s, then: "host GPU device removed ... (0x887A0007)" while "the submitting thread was preparing a submission (nothing of ours was running on the card)".
  • Pipeline library: almost every pipeline logs "the library did not load it: Parametre incorrect. (0x80070057)" (library file only 4522 bytes after a preload), so about 150 pipelines are still compiled in-game during the cutscene load, some taking 2-7 s each.
  • During preload (victory preload, 93,555 pipelines), a few workers exit with 0xc0000005.

My setup

  • ASUS ROG Ally, Ryzen Z1 Extreme, Radeon 780M. I know the project targets NVIDIA, so I am reporting this mainly for the memory budget part, which looks like a general bug.
  • 16 GB shared between CPU and GPU (about 12 GB visible to Windows), Windows 11, latest AMD driver.
  • VIctory-NVIDIA 2026.11.29.05, built from source with cargo build --release --locked -p victory
  • Title 7952987A (Series dump)

Settings used (via play-rig.ps1)
-SeriesS -Dlss off -NoFrameGen -Fps 30 -Preload yes
VICTORY_PIPELINE_WORKERS=1, VICTORY_THIN=0, VICTORY_JOIN_PARTS=1, VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536, VICTORY_LEVELS_ON_DEMAND=1, VICTORY_VRAM_BUDGET_MB=4096, VICTORY_PRELOAD_JOBS=3
Windows: TdrDelay=60 and page file 49152 MB (commit limit 61137 MB), both confirmed in the log.

Suggestions

  1. Enforce the VRAM budget: evict or demote resources when it is hit instead of continuing to allocate (render targets, depth twins, buffer copies).
  2. On shared-memory GPUs (D3D12 UMA / CacheCoherentUMA), avoid keeping both a host mirror and a card copy of title memory, since it is the same RAM counted twice.
  3. Look at why LoadPipeline returns E_INVALIDARG for everything after a preload.
  4. Maybe a "low memory" profile: drop the top texture mip, smaller pools and staging, fewer concurrent compiles.

I can test builds and send more logs. Full log attached: victory-nvidia-play-20261130-021905-18348.log

victory-nvidia-play-20261130-021905-18348.log

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6687929753 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3655). Originally posted by [zllan099](https://github.com/zllan099) on 2026-11-30T03:04:07Z. --- Summary With VICTORY_VRAM_BUDGET_MB=4096, card memory keeps growing past the budget up to 8.4 GB while the first cutscene loads. On a PC with little memory this fills physical RAM and the device is removed (0x887A0007). This should affect any low-memory setup (8 GB GPUs, laptops, 16 GB PCs), not only mine. I also found that the pipeline library does not load anything after a preload on my machine. What the log shows right before the crash - Card memory goes from 4.4 GB to 8.4 GB in use with a budget of 4096 MB (shadow: "no card copy ... the card has 8367 MB in use of a budget of 4096 MB"). - Physical RAM free drops to 170-450 MB while commit still has about 31 GB left. So the page file is not the limit, physical memory is. - The frame counter stays at 1344 for about 40 s, then: "host GPU device removed ... (0x887A0007)" while "the submitting thread was preparing a submission (nothing of ours was running on the card)". - Pipeline library: almost every pipeline logs "the library did not load it: Parametre incorrect. (0x80070057)" (library file only 4522 bytes after a preload), so about 150 pipelines are still compiled in-game during the cutscene load, some taking 2-7 s each. - During preload (victory preload, 93,555 pipelines), a few workers exit with 0xc0000005. My setup - ASUS ROG Ally, Ryzen Z1 Extreme, Radeon 780M. I know the project targets NVIDIA, so I am reporting this mainly for the memory budget part, which looks like a general bug. - 16 GB shared between CPU and GPU (about 12 GB visible to Windows), Windows 11, latest AMD driver. - VIctory-NVIDIA 2026.11.29.05, built from source with cargo build --release --locked -p victory - Title 7952987A (Series dump) Settings used (via play-rig.ps1) -SeriesS -Dlss off -NoFrameGen -Fps 30 -Preload yes VICTORY_PIPELINE_WORKERS=1, VICTORY_THIN=0, VICTORY_JOIN_PARTS=1, VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536, VICTORY_LEVELS_ON_DEMAND=1, VICTORY_VRAM_BUDGET_MB=4096, VICTORY_PRELOAD_JOBS=3 Windows: TdrDelay=60 and page file 49152 MB (commit limit 61137 MB), both confirmed in the log. Suggestions 1. Enforce the VRAM budget: evict or demote resources when it is hit instead of continuing to allocate (render targets, depth twins, buffer copies). 2. On shared-memory GPUs (D3D12 UMA / CacheCoherentUMA), avoid keeping both a host mirror and a card copy of title memory, since it is the same RAM counted twice. 3. Look at why LoadPipeline returns E_INVALIDARG for everything after a preload. 4. Maybe a "low memory" profile: drop the top texture mip, smaller pools and staging, fewer concurrent compiles. I can test builds and send more logs. Full log attached: victory-nvidia-play-20261130-021905-18348.log [victory-nvidia-play-20261130-021905-18348.log](https://github.com/user-attachments/files/35590412/victory-nvidia-play-20261130-021905-18348.log)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#3655
No description provided.