Run report: RTX 3060 Laptop 6 GB reaches the world reliably with a warm pipeline cache; every device-removed was a cold cache #3552

Open
opened 2026-11-27 17:12:24 +00:00 by lucaseddd · 1 comment
lucaseddd commented 2026-11-27 17:12:24 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-27T17:12:24Z.


On a 6 GB RTX 3060 Laptop, this build reaches the world every time once its pipeline cache is warm, and it stayed in 3D for 34 minutes in one session. It also renders far more of the scene than my earlier builds at the same frame rate. Every DXGI_ERROR_DEVICE_REMOVED I hit happened on a cold cache. None of them points to a specific shader.

Full report, aggregates, the exact VICTORY_* set and the source diff: https://github.com/lucaseddd/victory-rea/tree/r27/atual-01/attempts/R27/R27-Atual-01 (numbers and config only, nothing from the game).

Setup: VI-BR-PORT 2954325 plus the diff above · Series S profile, 1280x720, the title's own upscaler, no DLSS or frame generation · RTX 3060 Laptop 6 GB, 32 GB RAM, Windows 10 22H2, driver 591.59.

What I found

  • Cold cache → device removed. I saw two closes: one on this build, one on its successor. In both:
    • the pipeline library was empty, and compute pipelines were being created at 8–14 s each on parallel workers;
    • nothing of ours was on the card, and the DRED breadcrumbs were empty.
      The pipeline being created at that moment is not evidence against that shader: on a cold start there is always one in progress for several seconds. Same build, warm cache: no crash in 34 + 15 minutes.
  • LiveKernelEvent 141 parameter 5 is the PID that timed out. That's useful for telling our TDRs from another process's. One reset during a session came from a different process, not VIctory.
  • The 1 fps drops are memory traffic, not GPU or translation. In the slow samples, GPU time is unchanged (29 vs 34 ms), while title buffer copies go from 26 ms / 46 MB to 441 ms / 123 MB per frame. The worst frame took 10.5 s: a streaming burst with 634 copies (877 MB) and 142 k list calls. The draws dropped in those frames are the BVH builder stage (off), not missing pipelines.
3D samples (> 1000 draws) Session 1 (34 min) Session 2 (15 min)
FPS median / p10 3.5 / 0.4 4.8 / 0.7
ms median / p95 283 / 5838 206 / 1673
samples under 3 fps 39% 32%
draws/frame median 3653 4336

To reproduce: warm the cache with one run to the world, using one VICTORY_CACHE_DIR and no changes to translation switches in between (they're part of the cache key). Keep other GPU loads closed during that cold run. After it, the library loads mapped and no pipelines are created.

Next on my side: finding where the unaccounted time in slow frames goes (title threads waiting on fences or readbacks), and why buffer copies spike during streaming. Possibly related: #1586, #1348.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6651250237 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3552). Originally posted by [lucaseddd](https://github.com/lucaseddd) on 2026-11-27T17:12:24Z. --- On a 6 GB RTX 3060 Laptop, this build reaches the world every time once its pipeline cache is warm, and it stayed in 3D for 34 minutes in one session. It also renders far more of the scene than my earlier builds at the same frame rate. Every `DXGI_ERROR_DEVICE_REMOVED` I hit happened on a **cold** cache. None of them points to a specific shader. Full report, aggregates, the exact `VICTORY_*` set and the source diff: https://github.com/lucaseddd/victory-rea/tree/r27/atual-01/attempts/R27/R27-Atual-01 (numbers and config only, nothing from the game). **Setup:** VI-BR-PORT `2954325` plus the diff above · Series S profile, 1280x720, the title's own upscaler, no DLSS or frame generation · RTX 3060 Laptop 6 GB, 32 GB RAM, Windows 10 22H2, driver 591.59. **What I found** - **Cold cache → device removed.** I saw two closes: one on this build, one on its successor. In both: - the pipeline library was empty, and compute pipelines were being created at 8–14 s each on parallel workers; - nothing of ours was on the card, and the DRED breadcrumbs were empty. The pipeline being created at that moment is not evidence against that shader: on a cold start there is always one in progress for several seconds. Same build, warm cache: no crash in 34 + 15 minutes. - **`LiveKernelEvent 141` parameter 5 is the PID that timed out.** That's useful for telling our TDRs from another process's. One reset during a session came from a different process, not VIctory. - **The 1 fps drops are memory traffic, not GPU or translation.** In the slow samples, GPU time is unchanged (29 vs 34 ms), while title buffer copies go from 26 ms / 46 MB to 441 ms / 123 MB per frame. The worst frame took 10.5 s: a streaming burst with 634 copies (877 MB) and 142 k list calls. The draws dropped in those frames are the BVH builder stage (off), not missing pipelines. | 3D samples (> 1000 draws) | Session 1 (34 min) | Session 2 (15 min) | |---|---|---| | FPS median / p10 | 3.5 / 0.4 | 4.8 / 0.7 | | ms median / p95 | 283 / 5838 | 206 / 1673 | | samples under 3 fps | 39% | 32% | | draws/frame median | 3653 | 4336 | **To reproduce:** warm the cache with one run to the world, using one `VICTORY_CACHE_DIR` and no changes to translation switches in between (they're part of the cache key). Keep other GPU loads closed during that cold run. After it, the library loads mapped and no pipelines are created. Next on my side: finding where the unaccounted time in slow frames goes (title threads waiting on fences or readbacks), and why buffer copies spike during streaming. Possibly related: #1586, #1348.
lucaseddd commented 2026-11-27 18:59:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-27T18:59:10Z.


Update: 5.8 → 9.4 fps on the same 6 GB card, with switches only. The same build as above, with the game package on a 5400 rpm hard drive. Full report and aggregates: https://github.com/lucaseddd/victory-rea/tree/r27/atual-02/attempts/R27/R27-Atual-02

Run Change To world fps median / p10 under 3 fps VRAM / budget
H0 cache on the HDD 744 s 5.8 / 0.6 19% 118%
T0 cache and saves on an SSD 693 s 9.0 / 5.0 8% 169%
T1 + VICTORY_TEXTURE_POOL=0 527 s 9.2 / 3.0 9% 86%
T2 + VICTORY_LATE_WAIT_LISTS=256 482 s 9.4 / 5.7 6% 89%

Single runs, the same save, the first 36 world samples (> 1000 draws).

What was wrong

  • Texture-pool fragmentation on a small card. The runtime's own line read: "7558 MB in use of a budget of 4323 MB … 3029 MB of texture blocks free; room for new textures: no". A 64 MiB block goes back only when completely empty, so partly used blocks keep the rest committed. The card went to 169% of budget, Windows paged it to system RAM, and 11,800 title textures had no host copy: the walls and floors that "never load". With VICTORY_TEXTURE_POOL=0 there is no slack, VRAM sits at 86–89%, and 1.7–2.2x more textures are alive.
  • VICTORY_LATE_WAIT_LISTS=128 stalls the submission. "128 lists in the air" settled the flights about once a frame, ~25 ms each time. The code's own doc calls 128 the old value; the default is 256. With 256: no stalls, and "tables asked, 0 refused".
  • The main frame thread is waiting, not working. Instruction-pointer samples of the title's busiest thread put 97% of its title-code time in a monitorx/mwaitx loop on a fence value in title memory. On the PC that value lands only after our preparation (~100 ms), the GPU (~35 ms) and the copy-back (~50 ms), in series. The GPU is ~20% of a frame, so DLSS/FSR or lower settings won't move the frame rate much on this layer; overlapping the copy-back with the next preparation would.

How to try it (small cards, especially with the game on a hard drive)

VICTORY_CACHE_DIR=<folder on an SSD>
VICTORY_DATA_DIR=<folder on an SSD>
VICTORY_TEXTURE_POOL=0
VICTORY_LATE_WAIT_LISTS=256
VICTORY_AMBIENT_AIR=0.3        # less brown haze; cosmetic
  • Copy your warm cache folder to the SSD instead of starting a new one. These switches are not part of the shader cache key, so the copy stays warm.
  • Close browsers, chat apps and overlays first. They took 1.2–1.9 GB of this card's 6 GB budget.
  • Check your own log for "MB of texture blocks free" and "128 lists in the air" to see whether either applies to you.
  • Menu auto-advance scripts: if yours parses the frame line's timestamp, the runtime logs dd/MM/yyyy HH:mm:ss local time, not ISO. A fixed script is in the folder above.
  • VICTORY_MEMORY_CARD_MB won't help with ray tracing off. It caps only the by-address copies of the ray-tracing structures, which were ~0 MB here.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7226071942 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3552#issuecomment-7226071942). Originally posted by [lucaseddd](https://github.com/lucaseddd) on 2026-11-27T18:59:10Z. --- **Update: 5.8 → 9.4 fps on the same 6 GB card, with switches only.** The same build as above, with the game package on a 5400 rpm hard drive. Full report and aggregates: https://github.com/lucaseddd/victory-rea/tree/r27/atual-02/attempts/R27/R27-Atual-02 | Run | Change | To world | fps median / p10 | under 3 fps | VRAM / budget | |---|---|---|---|---|---| | H0 | cache on the HDD | 744 s | 5.8 / 0.6 | 19% | 118% | | T0 | cache and saves on an SSD | 693 s | 9.0 / 5.0 | 8% | 169% | | T1 | + `VICTORY_TEXTURE_POOL=0` | 527 s | 9.2 / 3.0 | 9% | 86% | | **T2** | **+ `VICTORY_LATE_WAIT_LISTS=256`** | **482 s** | **9.4 / 5.7** | **6%** | **89%** | Single runs, the same save, the first 36 world samples (> 1000 draws). **What was wrong** - **Texture-pool fragmentation on a small card.** The runtime's own line read: "7558 MB in use of a budget of 4323 MB … **3029 MB of texture blocks free**; room for new textures: no". A 64 MiB block goes back only when completely empty, so partly used blocks keep the rest committed. The card went to 169% of budget, Windows paged it to system RAM, and 11,800 title textures had no host copy: the walls and floors that "never load". With `VICTORY_TEXTURE_POOL=0` there is no slack, VRAM sits at 86–89%, and 1.7–2.2x more textures are alive. - **`VICTORY_LATE_WAIT_LISTS=128` stalls the submission.** "128 lists in the air" settled the flights about once a frame, ~25 ms each time. The code's own doc calls 128 the old value; the default is 256. With 256: no stalls, and "tables asked, 0 refused". - **The main frame thread is waiting, not working.** Instruction-pointer samples of the title's busiest thread put 97% of its title-code time in a `monitorx`/`mwaitx` loop on a fence value in title memory. On the PC that value lands only after our preparation (~100 ms), the GPU (~35 ms) and the copy-back (~50 ms), in series. The GPU is ~20% of a frame, so DLSS/FSR or lower settings won't move the frame rate much on this layer; overlapping the copy-back with the next preparation would. **How to try it (small cards, especially with the game on a hard drive)** ``` VICTORY_CACHE_DIR=<folder on an SSD> VICTORY_DATA_DIR=<folder on an SSD> VICTORY_TEXTURE_POOL=0 VICTORY_LATE_WAIT_LISTS=256 VICTORY_AMBIENT_AIR=0.3 # less brown haze; cosmetic ``` - **Copy your warm cache folder to the SSD** instead of starting a new one. These switches are not part of the shader cache key, so the copy stays warm. - **Close browsers, chat apps and overlays first.** They took 1.2–1.9 GB of this card's 6 GB budget. - **Check your own log** for "MB of texture blocks free" and "128 lists in the air" to see whether either applies to you. - **Menu auto-advance scripts:** if yours parses the frame line's timestamp, the runtime logs `dd/MM/yyyy HH:mm:ss` local time, not ISO. A fixed script is in the folder above. - **`VICTORY_MEMORY_CARD_MB` won't help with ray tracing off.** It caps only the by-address copies of the ray-tracing structures, which were ~0 MB here.
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
Marvisak/VIctory#3552
No description provided.