v2026.11.29.05: VRAM overflows after ~10 min (15.1/14.8 GB) — shadow card copies reach 2.98 GB & slot_evict frees 0 MB with VICTORY_SAMPLED_EVICT=0 #3597

Open
opened 2026-11-30 01:31:28 +00:00 by Gotischer · 3 comments
Gotischer commented 2026-11-30 01:31:28 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Gotischer on 2026-11-30T01:31:28Z.


What you would like

Tested v2026.11.29.05 for ~20 minutes on an RTX 5080 (1440p, DLSS Balanced, FrameGen 3x) with VICTORY_TEXTURE_ROOM_PERCENT=70, VICTORY_COMMIT_FLOOR_MB=1024, and an expanded Windows pagefile (commit_limit_mib=87345). No crash occurred (crashes.log not generated).

What improved

  • Commit / memguard 0x8007000E failures resolved: 0 memory guard deferrals (made=504, loaded=4322), and the 35 mesh/graphics 0x8007000E pipeline failures from the previous run are completely gone.
  • Only 1 pipeline still fails at startup (independent of memory pressure):
    • WARN victory_gpu::pipeline::refused: pipeline failures: 1 host pipelines failed (1 compute 0x8007000e), 0 shaders do not translate (key="7f61193d2c0e5f22")

Root cause of VRAM overflow after ~10 minutes

Even with VICTORY_TEXTURE_ROOM_PERCENT=70, card VRAM grew steadily from 12,522 / 14,734 MB at 5 min to 14,744 / 14,779 MB at 10 min (01:10:30), triggering 10,056x Streamline Exceeded VRAM budget + DLSS out of VRAM, 39, and reached 15,115 / 14,779 MB (with 14,428 MB shared memory) at 20 min (01:20:49):

  1. shadow.rs card copies grow to 2,979 MB (nearly 3x card_room_kept()'s 1 GiB estimate) & 12,344 MB total host copies:

    • victory_gpu::host: host copies in the card's memory: 3734 copies 2979 MB
    • victory_gpu::procmem: host copies of title memory 5568 (12344 MB), process memory: 43494 MB private ... 61054 MB committed
    • In crates/victory-gpu/src/shadow.rs, card_room_kept() caps its reserve assumption at const SEEN: u64 = 1 << 30 (1 GiB), so ~3 GB of shadow card copies + ~10.3 GB indexed textures + 270 depth twins + DLSS/FG 3x exceed the 14.8 GB budget.
  2. VICTORY_SLOT_EVICT=1 freed 0 MB for almost the entire 20-minute run:

    • slot_evict ran 1,029 sweeps (21.12 ms avg) and evicted 0 textures (0 MB) until a single 5.5 MB texture at the very end:
      WARN/INFO victory_gpu::host: textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start: 0 textures (0 MB) ... the last look: evicting, of 76446 idle-looking textures 0 kept as a table showed them lately and 24252 not to be taken (a slot shaders pick by index shows them)
      
    • 20,175 cold bindless textures (1,770 MB) reported by victory_gpu::sampled as unsampled within the idle window are never evicted because apps/victory/src/play.rs sets VICTORY_SAMPLED_EVICT=0.
    • Meanwhile, the remaining ~52,194 idle-looking textures (76,446 - 24,252) are not in SHADER_HEAPS (evictable_slots only scans SHADER_HEAPS) and are not reclaimed by let_go_idle either.
  3. **Other warn

ings/errors still present:**

  • 4x ERROR streamline: [getTaggedResource] Failed to find global tag 'kBufferTypeDepth'
  • 200x WARN victory_gpu::texture: HERO LEAD: a placed texture view lies in the memory of a texture the host copied into...
  • 201x WARN victory_gpu::draw: a texture picked by index changed after its upload...

Attached: victory-nvidia-play-20261130-010035-4896.log.

Are you working on a fix?

None

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6686917990 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3597). Originally posted by [Gotischer](https://github.com/Gotischer) on 2026-11-30T01:31:28Z. --- ### What you would like Tested **`v2026.11.29.05`** for ~20 minutes on an **RTX 5080** (`1440p`, DLSS Balanced, FrameGen 3x) with `VICTORY_TEXTURE_ROOM_PERCENT=70`, `VICTORY_COMMIT_FLOOR_MB=1024`, and an expanded Windows pagefile (`commit_limit_mib=87345`). No crash occurred (`crashes.log` not generated). ### What improved - **Commit / `memguard` `0x8007000E` failures resolved:** `0` `memory guard` deferrals (`made=504`, `loaded=4322`), and the 35 `mesh`/`graphics` `0x8007000E` pipeline failures from the previous run are completely gone. - Only **1** pipeline still fails at startup (independent of memory pressure): - `WARN victory_gpu::pipeline::refused: pipeline failures: 1 host pipelines failed (1 compute 0x8007000e), 0 shaders do not translate` (`key="7f61193d2c0e5f22"`) ### Root cause of VRAM overflow after ~10 minutes Even with `VICTORY_TEXTURE_ROOM_PERCENT=70`, card VRAM grew steadily from `12,522 / 14,734 MB` at 5 min to `14,744 / 14,779 MB` at 10 min (`01:10:30`), triggering **10,056x** Streamline `Exceeded VRAM budget` + `DLSS out of VRAM, 39`, and reached **`15,115 / 14,779 MB`** (with **`14,428 MB`** shared memory) at 20 min (`01:20:49`): 1. **`shadow.rs` card copies grow to 2,979 MB (nearly 3x `card_room_kept()`'s 1 GiB estimate) & 12,344 MB total host copies:** - `victory_gpu::host: host copies in the card's memory: 3734 copies 2979 MB` - `victory_gpu::procmem`: `host copies of title memory 5568 (12344 MB)`, `process memory: 43494 MB private ... 61054 MB committed` - In `crates/victory-gpu/src/shadow.rs`, `card_room_kept()` caps its reserve assumption at `const SEEN: u64 = 1 << 30` (1 GiB), so ~3 GB of `shadow` card copies + ~10.3 GB indexed textures + 270 depth twins + DLSS/FG 3x exceed the 14.8 GB budget. 2. **`VICTORY_SLOT_EVICT=1` freed 0 MB for almost the entire 20-minute run:** - `slot_evict` ran **1,029 sweeps** (`21.12 ms` avg) and evicted **`0 textures (0 MB)`** until a single `5.5 MB` texture at the very end: ```text WARN/INFO victory_gpu::host: textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start: 0 textures (0 MB) ... the last look: evicting, of 76446 idle-looking textures 0 kept as a table showed them lately and 24252 not to be taken (a slot shaders pick by index shows them) ``` - `20,175` cold bindless textures (**`1,770 MB`**) reported by `victory_gpu::sampled` as unsampled within the idle window are never evicted because `apps/victory/src/play.rs` sets `VICTORY_SAMPLED_EVICT=0`. - Meanwhile, the remaining `~52,194` idle-looking textures (`76,446 - 24,252`) are not in `SHADER_HEAPS` (`evictable_slots` only scans `SHADER_HEAPS`) and are not reclaimed by `let_go_idle` either. 3. **Other warn <!-- Failed to upload "victory-nvidia-play-20261130-010035-4896.log" --> ings/errors still present:** - `4x` `ERROR streamline: [getTaggedResource] Failed to find global tag 'kBufferTypeDepth'` - `200x` `WARN victory_gpu::texture: HERO LEAD: a placed texture view lies in the memory of a texture the host copied into...` - `201x` `WARN victory_gpu::draw: a texture picked by index changed after its upload...` Attached: `victory-nvidia-play-20261130-010035-4896.log`. ### Are you working on a fix? None
SulimanAlsalmi0 commented 2026-11-30 10:09:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SulimanAlsalmi0 on 2026-11-30T10:09:31Z.


Same pattern on 12 GB / 16 GB RAM, build 41adb55 (which already has the #2778 key translation): card memory creeps for 38 min, slot_evict lets go of 0 textures, run ends in device removed

Setup: RTX 5070 12 GB, driver 621.24 (32.0.16.2124); Ryzen 7 7700; 16 GB RAM; Windows 11 build 26300; Agility 1.614.1. VILauncher 2.0.2, preset play-foxhound, Series S, picture 960x540 with DLSS Performance to 1080p, frame generation off, 30 fps cap. Non-default switches: VICTORY_VRAM_BUDGET_MB=10500, VICTORY_LEVELS_ON_DEMAND=1. Preset defaults as shipped: VICTORY_SLOT_EVICT=1, VICTORY_SAMPLED_MARKS=1, VICTORY_SAMPLED_EVICT=0.

Timeline: 38 min of real play (story missions with driving and flying). The run ended about a minute after landing an aircraft: card memory jumped from 12.4 to 13.25 GB in that minute.

Card memory as the system counts it (memory now: lines):

Time Card's own in use Shared in use
1 min 8,980 MB 3,152 MB
7 min 11,362 MB 5,900 MB
20 min 11,707 MB 4,491 MB
30 min 12,263 MB 5,021 MB
37 min 13,255 MB 5,354 MB

The DXGI local budget was 10.5–11.2 GB the whole time, so the card sat over budget from about minute 3. From the room lines: render targets ~0.7 GB, card copies of title buffers ~3.3 GB (3,407 copies), and texture copies growing 3.5 GB (09:21) → 6.3 GB (09:48). no room, new textures wait was the state from 09:13 to the end.

Slot eviction never let anything go. It was on and evicting the whole run, but freed 0 textures in 38 min:

textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start: 0 textures (0 MB), 0 slots put back to waiting, 0 made again (0 of them within 2 s, away 0.0 s on average), 0 given up as a draw used them meanwhile; the last look: evicting, of 40528 idle-looking textures 0 kept as a table showed them lately and 17678 not to be taken (a slot shaders pick by index shows them)
  • Idle-looking textures grew from 23,716 to 40,528 over the run. About 13–18k were blocked by index-picked slots, and "kept" was almost always 0.
  • That leaves about 22k idle-looking textures that were neither blocked nor kept, yet none was let go. This build already maps evictable_slots' result back to title addresses (raws.get(&raw)), so the #2778 keyspace mix-up is not the cause here. They look like the "not in SHADER_HEAPS" group described above.
  • The sampled marks say most of the blocked ones were cold the whole run. A typical line:
texture slots shaders sampled (VICTORY_SAMPLED_MARKS=1, VRAM): 72510 marked over the last 30 frames; slot eviction's last pass: of 17729 textures shown by a slot shaders pick by index, 17725 were marked by no shader within its idle time (2069 MB)

Across the run this was 1.2–2.2 GB of unmarked index-picked textures. With VICTORY_SAMPLED_EVICT=0 (off since 2026-11-28 for foliage flicker) nothing can take them.

16 GB RAM side:

  • Free RAM was 0.2–0.7 GB from minute 3 to the end.
  • Process private memory was 25–28 GB, of which only 2–4 GB was resident.
  • new memory waited for ... 200000 times, 226758.2 ms.
  • The card was about 3% busy at the end (1,737 ms per frame, 0.6 fps), so everything was waiting on paging.

End of the run: thousands of no upload buffer / no unordered-access buffer failures with 0x8007000E (256 KiB and 64 KiB). Then 0x887A0005, and host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 45 lists; no breadcrumbs ... (0x887A0007). The last lines before it:

the system changed the budget of the card's memory from 10888 MB to 11175 MB (frame 19253); at the last look 13205 MB of the card's and 5576 MB of the PC's shared memory were in use
the texture queue's room: 13166 MB in use - 32 MB free in texture blocks + 0 MB kept for card copies of title buffers + 719 MB kept for render targets = 13853 MB against a line of 9732 MB (92.7 % of a budget of 10500 MB; 9476 MB after face headroom, 6334 MB in texture copies): no room, new textures wait
process memory: 27848 MB private by the system (2124 MB in memory), ... the PC has 488 MB free

Every crash on this machine (several runs, 2 to 38 min) ended at about 18–18.6 GB of card plus shared memory in use.

Questions:

  1. What holds the ~22k idle-looking textures that are neither blocked nor kept? Could the sweep let them go when the card is over its DXGI budget?
  2. Could VICTORY_SAMPLED_EVICT come back in a narrower form, for example only while the card is over its DXGI budget, or skipping the foliage case? On this machine it is the only thing that could free 1–2 GB before the device is lost.
  3. Could there be a hard stop on new host texture copies once local use passes the DXGI budget by some margin (here it reached 13.2 GB against 11.2)? Missing or grey textures would be better than losing the device.

The full play log (37 MB) is available if useful.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7275208096 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3597#issuecomment-7275208096). Originally posted by [SulimanAlsalmi0](https://github.com/SulimanAlsalmi0) on 2026-11-30T10:09:31Z. --- **Same pattern on 12 GB / 16 GB RAM, build 41adb55 (which already has the #2778 key translation): card memory creeps for 38 min, `slot_evict` lets go of 0 textures, run ends in device removed** **Setup:** RTX 5070 12 GB, driver 621.24 (32.0.16.2124); Ryzen 7 7700; **16 GB RAM**; Windows 11 build 26300; Agility 1.614.1. VILauncher 2.0.2, preset `play-foxhound`, Series S, picture 960x540 with DLSS Performance to 1080p, frame generation off, 30 fps cap. Non-default switches: `VICTORY_VRAM_BUDGET_MB=10500`, `VICTORY_LEVELS_ON_DEMAND=1`. Preset defaults as shipped: `VICTORY_SLOT_EVICT=1`, `VICTORY_SAMPLED_MARKS=1`, `VICTORY_SAMPLED_EVICT=0`. **Timeline:** 38 min of real play (story missions with driving and flying). The run ended about a minute after landing an aircraft: card memory jumped from 12.4 to 13.25 GB in that minute. **Card memory as the system counts it (`memory now:` lines):** | Time | Card's own in use | Shared in use | |---|---|---| | 1 min | 8,980 MB | 3,152 MB | | 7 min | 11,362 MB | 5,900 MB | | 20 min | 11,707 MB | 4,491 MB | | 30 min | 12,263 MB | 5,021 MB | | 37 min | 13,255 MB | 5,354 MB | The DXGI local budget was 10.5–11.2 GB the whole time, so the card sat over budget from about minute 3. From the room lines: render targets ~0.7 GB, card copies of title buffers ~3.3 GB (3,407 copies), and texture copies growing **3.5 GB (09:21) → 6.3 GB (09:48)**. `no room, new textures wait` was the state from 09:13 to the end. **Slot eviction never let anything go.** It was on and evicting the whole run, but freed 0 textures in 38 min: ``` textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start: 0 textures (0 MB), 0 slots put back to waiting, 0 made again (0 of them within 2 s, away 0.0 s on average), 0 given up as a draw used them meanwhile; the last look: evicting, of 40528 idle-looking textures 0 kept as a table showed them lately and 17678 not to be taken (a slot shaders pick by index shows them) ``` - Idle-looking textures grew from 23,716 to 40,528 over the run. About 13–18k were blocked by index-picked slots, and "kept" was almost always 0. - That leaves about 22k idle-looking textures that were neither blocked nor kept, yet none was let go. This build already maps `evictable_slots`' result back to title addresses (`raws.get(&raw)`), so the #2778 keyspace mix-up is not the cause here. They look like the "not in `SHADER_HEAPS`" group described above. - The sampled marks say most of the blocked ones were cold the whole run. A typical line: ``` texture slots shaders sampled (VICTORY_SAMPLED_MARKS=1, VRAM): 72510 marked over the last 30 frames; slot eviction's last pass: of 17729 textures shown by a slot shaders pick by index, 17725 were marked by no shader within its idle time (2069 MB) ``` Across the run this was **1.2–2.2 GB** of unmarked index-picked textures. With `VICTORY_SAMPLED_EVICT=0` (off since 2026-11-28 for foliage flicker) nothing can take them. **16 GB RAM side:** - Free RAM was 0.2–0.7 GB from minute 3 to the end. - Process private memory was 25–28 GB, of which only 2–4 GB was resident. - `new memory waited for ... 200000 times, 226758.2 ms`. - The card was about 3% busy at the end (1,737 ms per frame, 0.6 fps), so everything was waiting on paging. **End of the run:** thousands of `no upload buffer` / `no unordered-access buffer` failures with `0x8007000E` (256 KiB and 64 KiB). Then `0x887A0005`, and `host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 45 lists; no breadcrumbs ... (0x887A0007)`. The last lines before it: ``` the system changed the budget of the card's memory from 10888 MB to 11175 MB (frame 19253); at the last look 13205 MB of the card's and 5576 MB of the PC's shared memory were in use the texture queue's room: 13166 MB in use - 32 MB free in texture blocks + 0 MB kept for card copies of title buffers + 719 MB kept for render targets = 13853 MB against a line of 9732 MB (92.7 % of a budget of 10500 MB; 9476 MB after face headroom, 6334 MB in texture copies): no room, new textures wait process memory: 27848 MB private by the system (2124 MB in memory), ... the PC has 488 MB free ``` Every crash on this machine (several runs, 2 to 38 min) ended at about 18–18.6 GB of card plus shared memory in use. **Questions:** 1. What holds the ~22k idle-looking textures that are neither blocked nor kept? Could the sweep let them go when the card is over its DXGI budget? 2. Could `VICTORY_SAMPLED_EVICT` come back in a narrower form, for example only while the card is over its DXGI budget, or skipping the foliage case? On this machine it is the only thing that could free 1–2 GB before the device is lost. 3. Could there be a hard stop on new host texture copies once local use passes the DXGI budget by some margin (here it reached 13.2 GB against 11.2)? Missing or grey textures would be better than losing the device. The full play log (37 MB) is available if useful.
SulimanAlsalmi0 commented 2026-11-30 18:47:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SulimanAlsalmi0 on 2026-11-30T18:47:29Z.


Follow-up on 84bd61e (v2026.11.30.02): same machine, the creep is gone. 77 min with no crash, card memory flat under budget.

Same setup as my comment above:

  • RTX 5070 12 GB, 16 GB RAM, VILauncher 2.0.2, preset play-foxhound.
  • Same switches: VICTORY_VRAM_BUDGET_MB=10500, VICTORY_LEVELS_ON_DEMAND=1, SLOT_EVICT=1, SAMPLED_MARKS=1, SAMPLED_EVICT=0.
  • The only change is the build.
41adb55 (38 min) 84bd61e (77 min)
How it ended device removed (0x887A0007) closed normally by me
Card's own in use at the end 13,255 MB ~10,250 MB (budget 10,450–10,500)
Shared in use at the end 5,354 MB ~5,300–5,900 MB
Texture copies (room line) 6,334 MB, no room ~2,480 MB, room
Card copies of title buffers ~3.3 GB 2,744 MB (3,466 copies)
PC free RAM 0.2–0.7 GB 0.07–0.6 GB
Median fps 7.8 8.4

A typical room line now:

the texture queue's room: 10250 MB in use - 1951 MB free in texture blocks + 8 MB kept for card copies of title buffers + 862 MB kept for render targets = 9169 MB against a line of 9732 MB (92.7 % of a budget of 10500 MB; 9476 MB after face headroom, 2477 MB in texture copies): room

How memory is held down now: new textures are refused, not old ones evicted.

  • Slot eviction let go of only 44 textures (30 MB) in the whole run:
    of 19974 idle-looking textures 0 kept as a table showed them lately and 14222 not to be taken (a slot shaders pick by index shows them)
    
  • New uploads are held back instead:
    first-upload room decisions: 0 allowed, 4122 refused by an explicit byte limit
    textures picked by index, the queue: 23009 slots, 21853 of them due (the oldest not uploaded yet written 45625 frames ago)
    
    The run was at frame ~46,300, so some slots have waited since near the start.
  • Title-buffer card copies are also capped:
    copy made up to 10185 MB; the copies made hold 883 MB of at most 1890 MB; 1632 buffers turned down
    
  • The sampled marks still show ~13,000 of ~14,200 index-shown textures unmarked within their idle time (~1.0 GB) for the whole run.

What is left on 16 GB is RAM paging, not the card:

  • Process memory is ~31 GB private, of which only 2.0–4.0 GB is resident. compile memory ... pressured=true.
  • new memory waited for ... 323000 times, 309628.4 ms: about 5 min of the 77 min.
  • new card memory waited for until it is mapped ... 164200 times, 44168.7 ms.
  • The card is 5–30 % busy. The submitting thread spends 120–550 ms a frame preparing, mostly in refreshes.
  • Result: median 8.4 fps, 1 % low 0.4, and 24 % of the time under 5 fps.
  • This was the first run after the shader-cache reset (504.8 s of shader prep, 654 of 4,353 pipelines from cache), so some of the hitches are pipeline builds.

Questions:

  1. With ~22k index slots due and ~1.0 GB of unmarked index-picked textures still resident, could the unmarked ones be let go while first uploads are being refused? That is a narrow form of SAMPLED_EVICT that only runs when the byte limit is refusing uploads. It would trade cold textures for the ones the scene is waiting on.
  2. For 16 GB PCs, is there a switch that lowers the ~31 GB commit or the resident set further? File-backed CPU mirrors are already active (file_mib=960).

Thanks for #3272 / #4005 / #3848. On this machine they turned a guaranteed crash into a stable session.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7288368054 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3597#issuecomment-7288368054). Originally posted by [SulimanAlsalmi0](https://github.com/SulimanAlsalmi0) on 2026-11-30T18:47:29Z. --- **Follow-up on 84bd61e (v2026.11.30.02): same machine, the creep is gone. 77 min with no crash, card memory flat under budget.** Same setup as my comment above: - RTX 5070 12 GB, **16 GB RAM**, VILauncher 2.0.2, preset `play-foxhound`. - Same switches: `VICTORY_VRAM_BUDGET_MB=10500`, `VICTORY_LEVELS_ON_DEMAND=1`, `SLOT_EVICT=1`, `SAMPLED_MARKS=1`, `SAMPLED_EVICT=0`. - The only change is the build. | | 41adb55 (38 min) | 84bd61e (77 min) | |---|---|---| | How it ended | device removed (`0x887A0007`) | closed normally by me | | Card's own in use at the end | 13,255 MB | ~10,250 MB (budget 10,450–10,500) | | Shared in use at the end | 5,354 MB | ~5,300–5,900 MB | | Texture copies (room line) | 6,334 MB, `no room` | ~2,480 MB, `room` | | Card copies of title buffers | ~3.3 GB | 2,744 MB (3,466 copies) | | PC free RAM | 0.2–0.7 GB | 0.07–0.6 GB | | Median fps | 7.8 | 8.4 | A typical room line now: ``` the texture queue's room: 10250 MB in use - 1951 MB free in texture blocks + 8 MB kept for card copies of title buffers + 862 MB kept for render targets = 9169 MB against a line of 9732 MB (92.7 % of a budget of 10500 MB; 9476 MB after face headroom, 2477 MB in texture copies): room ``` **How memory is held down now: new textures are refused, not old ones evicted.** - Slot eviction let go of only 44 textures (30 MB) in the whole run: ``` of 19974 idle-looking textures 0 kept as a table showed them lately and 14222 not to be taken (a slot shaders pick by index shows them) ``` - New uploads are held back instead: ``` first-upload room decisions: 0 allowed, 4122 refused by an explicit byte limit textures picked by index, the queue: 23009 slots, 21853 of them due (the oldest not uploaded yet written 45625 frames ago) ``` The run was at frame ~46,300, so some slots have waited since near the start. - Title-buffer card copies are also capped: ``` copy made up to 10185 MB; the copies made hold 883 MB of at most 1890 MB; 1632 buffers turned down ``` - The sampled marks still show ~13,000 of ~14,200 index-shown textures unmarked within their idle time (~1.0 GB) for the whole run. **What is left on 16 GB is RAM paging, not the card:** - Process memory is ~31 GB private, of which only 2.0–4.0 GB is resident. `compile memory ... pressured=true`. - `new memory waited for ... 323000 times, 309628.4 ms`: about 5 min of the 77 min. - `new card memory waited for until it is mapped ... 164200 times, 44168.7 ms`. - The card is 5–30 % busy. The submitting thread spends 120–550 ms a frame preparing, mostly in refreshes. - Result: median 8.4 fps, 1 % low 0.4, and 24 % of the time under 5 fps. - This was the first run after the shader-cache reset (504.8 s of shader prep, 654 of 4,353 pipelines from cache), so some of the hitches are pipeline builds. **Questions:** 1. With ~22k index slots due and ~1.0 GB of unmarked index-picked textures still resident, could the unmarked ones be let go while first uploads are being refused? That is a narrow form of `SAMPLED_EVICT` that only runs when the byte limit is refusing uploads. It would trade cold textures for the ones the scene is waiting on. 2. For 16 GB PCs, is there a switch that lowers the ~31 GB commit or the resident set further? File-backed CPU mirrors are already active (`file_mib=960`). Thanks for #3272 / #4005 / #3848. On this machine they turned a guaranteed crash into a stable session.
SulimanAlsalmi0 commented 2026-11-30 20:43:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SulimanAlsalmi0 on 2026-11-30T20:43:54Z.


Follow-up on e1251c3 (v2026.11.30.03): 58 min, no crash, freezes down from 24% to 4% of the time. Most of the gain is the pipeline preload.

Same machine as above: RTX 5070 12 GB, 16 GB RAM, Ryzen 7 7700. Same preset and switches (VICTORY_VRAM_BUDGET_MB=10500, LEVELS_ON_DEMAND=1, SLOT_EVICT=1). The launcher is now VILauncher 2.1.0. Its graphics settings for this run were Series S on and render scale 0.25.

84bd61e (77 min) e1251c3 (58 min)
How it ended closed normally closed normally
Median fps 8.4 11.3
1 % low 0.4 2.6
Time under 5 fps 24 % 4 %
Pipelines from cache 15 % 95 % (4,318 of 4,532)
Time to first frame 21 s 8 s
Card's own in use at the end ~10,250 MB ~10,690 MB (budget 10,500)
Shared in use at the end ~5,300–5,900 MB ~2,900–3,400 MB
Committed ~31 GB ~24 GB
Resident 2–4 GB 4.5–5.6 GB
PC free RAM 0.07–0.6 GB 0.2–0.9 GB
Texture copies (room line) ~2,480 MB ~2,400 MB

1. The preload works, and it costs about 30 minutes once.

  • The first start of the new version spent about 32 minutes preparing pipelines before Play (telemetry: shader preparation 1927.3 s).
  • In game, only 214 pipelines were made and none were refused:
    host pipeline library saved bytes=658080748 early=4641 made=214 loaded=4318 started_early=7387 load_ms_each=21 make_ms_each=1091
    
  • Is about 30 minutes expected for ~4.5k pipelines on an 8-core CPU with 16 GB of RAM?

2. Card memory now sits a little over the budget, but it is stable.

  • It held between 10,680 and 10,710 MB for the last minute.
  • The system budget kept swinging between 10,450 and 10,900 MB.
  • There was no device removed.
  • Meanwhile the room line says room:
    memory now: committed 23868 MB, the card's own 10686 MB in use of a budget of 10500 MB, the PC's shared with the card 2893 MB in use
    the texture queue's room: 10687 MB in use - 2354 MB free in texture blocks + 0 MB kept for card copies of title buffers + 820 MB kept for render targets = 9153 MB against a line of 9732 MB (92.7 % of a budget of 10500 MB; 9476 MB after face headroom, 2400 MB in texture copies): room
    

3. Index-picked textures are still being held back.

  • Each 5-second window shows 70k–130k first-upload refusals, with nothing allowed:
    first-upload room decisions: 0 allowed, 74857 refused by an explicit byte limit, 0 without memory info, 0 with the allowance off, 0 at the texture-copy ceiling, 0 at the whole-card budget
    textures picked by index, the queue: 12045 slots, 9724 of them due (the oldest not uploaded yet written 38195 frames ago)
    
  • At the same time, about 1 GB of index-shown textures goes unsampled:
    of 13096 textures shown by a slot shaders pick by index, 12957 were marked by no shader within its idle time (1029 MB)
    
  • Slot eviction let go of only 18 textures (14 MB) in the whole session.

4. RAM is still the limit on 16 GB.

  • The total time spent waiting for new memory was:
    new memory waited for (VICTORY_WAIT_RESIDENT=0: not), since the start: 339000 times, 312253.2 ms
    
    In the last ~70 s of the log alone it grew by ~7.4 s, which is about 10 % of the time.
  • The card is 45–65 % busy.
  • The submitting thread spends 40–65 ms a frame preparing.
  • 36 % of the time was still spent at 5–10 fps.

Questions:

  1. The room line says room (9,153 MB against a line of 9,732 MB), yet every first upload is refused by an explicit byte limit. Which limit is that? Is it the 512 MB card reserve from #4005, since in use (10,686 MB) is above the 10,500 MB budget?
  2. My open question from last time still applies. About 1 GB of index-shown textures is unmarked while first uploads are refused. Could those unmarked textures be let go only while uploads are being refused, as a narrow form of SAMPLED_EVICT?

Thanks again. This is the first build where the game plays for an hour on this machine with freezes down to 4 % of the time.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7291387224 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3597#issuecomment-7291387224). Originally posted by [SulimanAlsalmi0](https://github.com/SulimanAlsalmi0) on 2026-11-30T20:43:54Z. --- **Follow-up on e1251c3 (v2026.11.30.03): 58 min, no crash, freezes down from 24% to 4% of the time. Most of the gain is the pipeline preload.** Same machine as above: RTX 5070 12 GB, **16 GB RAM**, Ryzen 7 7700. Same preset and switches (`VICTORY_VRAM_BUDGET_MB=10500`, `LEVELS_ON_DEMAND=1`, `SLOT_EVICT=1`). The launcher is now VILauncher 2.1.0. Its graphics settings for this run were Series S on and render scale 0.25. | | 84bd61e (77 min) | e1251c3 (58 min) | |---|---|---| | How it ended | closed normally | closed normally | | Median fps | 8.4 | **11.3** | | 1 % low | 0.4 | **2.6** | | Time under 5 fps | 24 % | **4 %** | | Pipelines from cache | 15 % | **95 %** (4,318 of 4,532) | | Time to first frame | 21 s | 8 s | | Card's own in use at the end | ~10,250 MB | ~10,690 MB (budget 10,500) | | Shared in use at the end | ~5,300–5,900 MB | ~2,900–3,400 MB | | Committed | ~31 GB | ~24 GB | | Resident | 2–4 GB | 4.5–5.6 GB | | PC free RAM | 0.07–0.6 GB | 0.2–0.9 GB | | Texture copies (room line) | ~2,480 MB | ~2,400 MB | **1. The preload works, and it costs about 30 minutes once.** - The first start of the new version spent about 32 minutes preparing pipelines before Play (telemetry: `shader preparation 1927.3 s`). - In game, only 214 pipelines were made and none were refused: ``` host pipeline library saved bytes=658080748 early=4641 made=214 loaded=4318 started_early=7387 load_ms_each=21 make_ms_each=1091 ``` - Is about 30 minutes expected for ~4.5k pipelines on an 8-core CPU with 16 GB of RAM? **2. Card memory now sits a little over the budget, but it is stable.** - It held between 10,680 and 10,710 MB for the last minute. - The system budget kept swinging between 10,450 and 10,900 MB. - There was no device removed. - Meanwhile the room line says `room`: ``` memory now: committed 23868 MB, the card's own 10686 MB in use of a budget of 10500 MB, the PC's shared with the card 2893 MB in use the texture queue's room: 10687 MB in use - 2354 MB free in texture blocks + 0 MB kept for card copies of title buffers + 820 MB kept for render targets = 9153 MB against a line of 9732 MB (92.7 % of a budget of 10500 MB; 9476 MB after face headroom, 2400 MB in texture copies): room ``` **3. Index-picked textures are still being held back.** - Each 5-second window shows 70k–130k first-upload refusals, with nothing allowed: ``` first-upload room decisions: 0 allowed, 74857 refused by an explicit byte limit, 0 without memory info, 0 with the allowance off, 0 at the texture-copy ceiling, 0 at the whole-card budget textures picked by index, the queue: 12045 slots, 9724 of them due (the oldest not uploaded yet written 38195 frames ago) ``` - At the same time, about 1 GB of index-shown textures goes unsampled: ``` of 13096 textures shown by a slot shaders pick by index, 12957 were marked by no shader within its idle time (1029 MB) ``` - Slot eviction let go of only 18 textures (14 MB) in the whole session. **4. RAM is still the limit on 16 GB.** - The total time spent waiting for new memory was: ``` new memory waited for (VICTORY_WAIT_RESIDENT=0: not), since the start: 339000 times, 312253.2 ms ``` In the last ~70 s of the log alone it grew by ~7.4 s, which is about 10 % of the time. - The card is 45–65 % busy. - The submitting thread spends 40–65 ms a frame preparing. - 36 % of the time was still spent at 5–10 fps. **Questions:** 1. The room line says `room` (9,153 MB against a line of 9,732 MB), yet every first upload is refused `by an explicit byte limit`. Which limit is that? Is it the 512 MB card reserve from #4005, since in use (10,686 MB) is above the 10,500 MB budget? 2. My open question from last time still applies. About 1 GB of index-shown textures is unmarked while first uploads are refused. Could those unmarked textures be let go only while uploads are being refused, as a narrow form of `SAMPLED_EVICT`? Thanks again. This is the first build where the game plays for an hour on this machine with freezes down to 4 % of the time.
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#3597
No description provided.