RTX 3060 12GB: texture level pages clear VRAM wall; next stop is bridged Wait64BitValueX with prod=qNone #2719

Open
opened 2026-11-26 08:20:28 +00:00 by github-bot · 2 comments
Owner

@⁠ninghaoan on GitHub · 2026-11-26 08:18 UTC · original

finding: on RTX 3060 12 GB, XCL_TEXTURE_LEVEL_PAGES=1 clears the sparse-window VRAM exhaustion; the next stop is a bridged Wait64BitValueX with prod=qNone / wait-before-signal that ends in device removed.

Setup: Windows 11, i7-9750H, RTX 3060 12 GB (12115 MiB), 64 GB RAM, pagefile fixed 96 GB, Vulkan SDK 1.4.363, own 1.0.2.1 package. XCL at b49be18 (includes #2371 offline compute PSO reuse, #174 mem-accessor linking, #2118 dispatch wait at submit, #1985 VRAM reclaim). Cargo release build. XCL_HUGE_PSO_CONCURRENCY=2, XCL_GPU_WAIT_TIMEOUT_MS=180000, XCL_PRESS_A_AT=70,80,90,..., XCL_NETWORK=0.

Effect of XCL_TEXTURE_LEVEL_PAGES=1 (off by default): level pages hold 943 MB for 2,391 MB of textures (8,192+ levels) instead of the full nominal allocation. On the previous run without it, the title hit sparse windows: no video memory for more tiles and ended with 0x887A0005 after ~2h10m at frame 3320. With it, that message count is zero — the VRAM wall is gone. This switch is worth documenting for 12 GB adapters.

Boot progress with the switch: steady 25-30 fps through frames 600/900/1200/1500/1800/2100/2400/2700/3000; frames are the loading-art presentation (verified non-dark, 3840x2160). PSO cache accumulated to ~2.5 GB and compile times fell from 100-180 s to 5-15 ms for cached blobs.

Next stop (reproduced twice): after D3D12.X: 2048 pipelines built ahead of their first use and several split command list (type 2) around mid-list Wait after Write64, the log shows:

Wait64BitValueX ... >= 0xcd8 bridged to GPU queue.Wait (waiter=q0/ty2, prod=qNone/tySome(0); wait-before-signal, after_write64=false)

twice, then D3D12 device removed: 0x887a0005 (GetDeviceRemovedReason reports the device was paused). Counts only: no raw log lines with game-derived text are included here.

Why it matters: the producer queue is not identified (prod=qNone) and the wait happens before the signal, so the bridged GPU wait can never retire. This looks like the same qNone symptom recorded on 24 Nov; it is still present on current main. A fix would unblock the loading-to-world transition on 12 GB NVIDIA cards, which are otherwise past both the PSO-compile and VRAM walls.

Need: investigation of fence producer tracking for Wait64BitValueX when the write64 happens on another queue/list and the wait is recorded first. I can re-run and report counts/diagnostic classes after a fix; no game data, keys or captured frames will be shared. AI use: model name unknown to the assistant; analysis and setup performed through WorkBuddy on Windows 11. No code was written for this repository.

**@⁠ninghaoan** on GitHub · 2026-11-26 08:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/2719) finding: on RTX 3060 12 GB, `XCL_TEXTURE_LEVEL_PAGES=1` clears the sparse-window VRAM exhaustion; the next stop is a bridged `Wait64BitValueX` with `prod=qNone` / `wait-before-signal` that ends in device removed. **Setup:** Windows 11, i7-9750H, RTX 3060 12 GB (12115 MiB), 64 GB RAM, pagefile fixed 96 GB, Vulkan SDK 1.4.363, own 1.0.2.1 package. XCL at `b49be18` (includes #2371 offline compute PSO reuse, #174 mem-accessor linking, #2118 dispatch wait at submit, #1985 VRAM reclaim). Cargo release build. `XCL_HUGE_PSO_CONCURRENCY=2`, `XCL_GPU_WAIT_TIMEOUT_MS=180000`, `XCL_PRESS_A_AT=70,80,90,...`, `XCL_NETWORK=0`. **Effect of `XCL_TEXTURE_LEVEL_PAGES=1` (off by default):** level pages hold 943 MB for 2,391 MB of textures (8,192+ levels) instead of the full nominal allocation. On the previous run without it, the title hit `sparse windows: no video memory for more tiles` and ended with `0x887A0005` after ~2h10m at frame 3320. With it, that message count is **zero** — the VRAM wall is gone. This switch is worth documenting for 12 GB adapters. **Boot progress with the switch:** steady 25-30 fps through frames 600/900/1200/1500/1800/2100/2400/2700/3000; frames are the loading-art presentation (verified non-dark, 3840x2160). PSO cache accumulated to ~2.5 GB and compile times fell from 100-180 s to 5-15 ms for cached blobs. **Next stop (reproduced twice):** after `D3D12.X: 2048 pipelines built ahead of their first use` and several `split command list (type 2) around mid-list Wait after Write64`, the log shows: `Wait64BitValueX ... >= 0xcd8 bridged to GPU queue.Wait (waiter=q0/ty2, prod=qNone/tySome(0); wait-before-signal, after_write64=false)` twice, then `D3D12 device removed: 0x887a0005` (`GetDeviceRemovedReason` reports the device was paused). Counts only: no raw log lines with game-derived text are included here. **Why it matters:** the producer queue is not identified (`prod=qNone`) and the wait happens before the signal, so the bridged GPU wait can never retire. This looks like the same qNone symptom recorded on 24 Nov; it is still present on current main. A fix would unblock the loading-to-world transition on 12 GB NVIDIA cards, which are otherwise past both the PSO-compile and VRAM walls. **Need:** investigation of fence producer tracking for `Wait64BitValueX` when the write64 happens on another queue/list and the wait is recorded first. I can re-run and report counts/diagnostic classes after a fix; no game data, keys or captured frames will be shared. AI use: model name unknown to the assistant; analysis and setup performed through WorkBuddy on Windows 11. No code was written for this repository.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:20:28 +00:00
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 08:20 UTC · original

prod=qNone with wait-before-signal means XCL has a Write64BitValue* to that cell recorded but has not seen it submitted on any queue. #1452 (#1452) stops in the same state.

Two PRs for it, neither confirmed as the cause here:

  • #2717 closes one way a recorded Write64 can be lost: a mid-list split that could not make its next segment closed the list first, and what came after it (Write64s too) was lost. When that happened, the log had a mid-list split … CreateCommandList failed warning.
  • #2718 (on top of #2244) makes the XCL_THREAD_DUMP_AT dump name, for each cell that is behind, the list that recorded it and whether that list was later executed, reset or released.

If you can, one run of the same route with #2718, XCL_THREAD_DUMP_AT set to a second or two after the two bridged waits and before the device removal, and nvidia-smi dmon -s pucm -o T beside it. Then post the sync state lines, any mid-list split lines, and the dmon around the stop.

AI use: written with Claude Code (Claude Opus 5.5).

**@⁠Kalmarv** on GitHub · 2026-11-26 08:20 UTC · [original](https://github.com/xcl-dev/xcl/issues/2719#issuecomment-7186467542) `prod=qNone` with `wait-before-signal` means XCL has a `Write64BitValue*` to that cell recorded but has not seen it submitted on any queue. #1452 (https://git.gtahub.st/github/xcl-dev--xcl/issues/1452) stops in the same state. Two PRs for it, neither confirmed as the cause here: - #2717 closes one way a recorded Write64 can be lost: a mid-list split that could not make its next segment closed the list first, and what came after it (Write64s too) was lost. When that happened, the log had a `mid-list split … CreateCommandList failed` warning. - #2718 (on top of #2244) makes the `XCL_THREAD_DUMP_AT` dump name, for each cell that is behind, the list that recorded it and whether that list was later executed, reset or released. If you can, one run of the same route with #2718, `XCL_THREAD_DUMP_AT` set to a second or two after the two bridged waits and before the device removal, and `nvidia-smi dmon -s pucm -o T` beside it. Then post the `sync state` lines, any `mid-list split` lines, and the dmon around the stop. AI use: written with Claude Code (Claude Opus 5.5).
Author
Owner

@⁠GreemSC on GitHub · 2026-11-26 08:34 UTC · original

AMD + Linux data point for XCL_TEXTURE_LEVEL_PAGES=1 (#2306): on a 20 GB RX 7900 XT the title's video memory peaked at 16.7 GB with it, against 21.1 / 21.6 GB (more than the card) without it. So the switch matters on larger cards too, not only on 12 GB ones; it complements @⁠ClosetPie107's RX 9070 numbers on #2306, here further into the title (its intro cutscene).

Tested

  • RX 7900 XT 20 GB (20,464 MiB), Mesa 26.2.5 RADV, i7-12700K, 24 GB RAM (title capped at 16 GB + 1 GB swap), Linux 7.2, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41.
  • main b49be18 + a Wine stack (#1732 with #867/#871/#877, #684, #1860, #2097, #2404, #2615, #2598, #751, diagnostics); the same exe on both sides. Retail 1.0.2.1, warm caches, 360 s runs, XCL_DIRECT_DXIL=1 XCL_DXC_THREADS=4, A pressed every 4 s from 22 s. Without the switch: 2 runs; with it: 1 run.
without (2 runs) XCL_TEXTURE_LEVEL_PAGES=1 (1 run)
peak local video memory (XCL) 21.1 / 21.6 GB 16.7 GB
mem_info_gtt_used peak (sysfs) not sampled 1.4 GB
level pages at 52 s – 2,172 textures standing for 608 MB have pages for 244 MB
title's anonymous memory at 355 s 13.2 / 14.4 GB 13.5 GB
frames shown 140–350 s (intro cutscene) 287 / 261 306
median frame time there 717 / 809 ms 675 ms
last present / crashes / device removals 358.3, 359.6 s / 0 / 0 358.0 s / 0 / 0
  • Video memory: a clear drop, back under the card's size.
  • System memory: no change; what still grows here is elsewhere.
  • Frame times in the cutscene: a little better, but this is one run with the switch, and runs of the same tree with the default worker count spread from 643 to 904 ms median, so I don't claim a frame-time gain from this.

Not tested: Windows, NVIDIA, more than one run with the switch, the open world (the title is in its intro cutscene at this point).

AI use: Claude Code (Claude Opus 5.5) ran the runs and wrote this comment.

**@⁠GreemSC** on GitHub · 2026-11-26 08:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/2719#issuecomment-7186756540) **AMD + Linux data point for `XCL_TEXTURE_LEVEL_PAGES=1` (#2306): on a 20 GB RX 7900 XT the title's video memory peaked at 16.7 GB with it, against 21.1 / 21.6 GB (more than the card) without it.** So the switch matters on larger cards too, not only on 12 GB ones; it complements @⁠ClosetPie107's RX 9070 numbers on #2306, here further into the title (its intro cutscene). **Tested** - RX 7900 XT 20 GB (20,464 MiB), Mesa 26.2.5 RADV, i7-12700K, 24 GB RAM (title capped at 16 GB + 1 GB swap), Linux 7.2, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41. - `main` `b49be18` + a Wine stack (#1732 with #867/#871/#877, #684, #1860, #2097, #2404, #2615, #2598, #751, diagnostics); the same exe on both sides. Retail 1.0.2.1, warm caches, 360 s runs, `XCL_DIRECT_DXIL=1 XCL_DXC_THREADS=4`, A pressed every 4 s from 22 s. Without the switch: 2 runs; with it: 1 run. | | without (2 runs) | `XCL_TEXTURE_LEVEL_PAGES=1` (1 run) | |---|---|---| | peak local video memory (XCL) | 21.1 / 21.6 GB | **16.7 GB** | | `mem_info_gtt_used` peak (sysfs) | not sampled | 1.4 GB | | level pages at 52 s | – | 2,172 textures standing for 608 MB have pages for 244 MB | | title's anonymous memory at 355 s | 13.2 / 14.4 GB | 13.5 GB | | frames shown 140–350 s (intro cutscene) | 287 / 261 | 306 | | median frame time there | 717 / 809 ms | 675 ms | | last present / crashes / device removals | 358.3, 359.6 s / 0 / 0 | 358.0 s / 0 / 0 | - Video memory: a clear drop, back under the card's size. - System memory: no change; what still grows here is elsewhere. - Frame times in the cutscene: a little better, but this is one run with the switch, and runs of the same tree with the default worker count spread from 643 to 904 ms median, so I don't claim a frame-time gain from this. **Not tested:** Windows, NVIDIA, more than one run with the switch, the open world (the title is in its intro cutscene at this point). AI use: Claude Code (Claude Opus 5.5) ran the runs and wrote this comment.
This discussion has been locked. Commenting is limited to contributors.
No description provided.