You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RTX 3060 12GB: texture level pages clear VRAM wall; next stop is bridged Wait64BitValueX with prod=qNone #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.
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:
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.
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 (comment)) stops in the same state.
Two PRs for it, neither confirmed as the cause here:
D3D12.X: a mid-list split gets its next segment before it closes the list #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.
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).
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).
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.
Ran the requested reproduction with #2718 (head ceb7bc2) + XCL_THREAD_DUMP_AT=120,150,180,210,240,270, XCL_TEXTURE_LEVEL_PAGES=1, XCL_DRED=1, and nvidia-smi dmon -s pucm -o T -d 5 beside it. RTX 3060 12GB, i7-9750H, Win11, own 1.0.2.1.
Result: the stuck cell is case 3 from your description — recorded, never executed, never reset, never released:
Wait64 cells behind: 0x704180108: mem 0x0 done 0x0 sub 0x0@qNone rec 0x735 by 0x104a68490 160816 ms ago (executed no, reset no, released no) cpu 0x0 armed []
It stays identical at every dump point (120s, 150s, 180s, 210s, 240s, 270s), with the recorded value rec 0x735 never rising and sub 0x0@qNone never gaining a producer. A second cell 0x704180100 shows the same. The producer that should write 0x735 was recorded by list 0x104a68490 and never seen submitted, reset or released — so the title still holds it and the bridged GPU wait can never retire.
Also: zero mid-list split CreateCommandList failed warnings (so #2717 is not our path, consistent with the earlier check), and no device removal within the 420s run (it ends with the thread dump, not a fault). dmon shows the GPU idle (0-34% sm) with fb climbing 1303 -> 8904 MB as textures load, mclk fixed 7501 MHz, no anomaly around the stall.
Counts/classes only; no game-derived bytes or log lines beyond these diagnostics are shared. AI use: model name unknown to the assistant; setup and analysis via WorkBuddy on Windows 11.
Independent reproduction with the #2718 sync-state diagnostic cherry-picked onto a local build based on 3f0ed9b8 / #2862 (also local #1916, #1182, #2177, #1629 changes), Windows, Quadro RTX 3000 6 GiB, 31.8 GiB RAM, Series X profile, 1.0.2.1, XCL_TEXTURE_LEVEL_PAGES=1, warm cache. Diagnostic binary SHA-256 3eb67c174cce8495ce390f775774f4a41d42df69d78b1a72b8f7e778d0d75075. This is not a clean-main comparison.
Run A, 0-fps stall without device removal: sync-state dumps at host t=232.2 and 252.1 s (90/110 s after title entry) had no pending title fences, no unmet XCL queue waits, zero armed GPU waits, and no Wait64 cells behind. At t=230.6 s DirectStorage first reported 0x89240009 for a request from an existing file; at t=257.9 s the ID3D12GraphicsCommandList10::#101 stub was first called; at t=262.2 s three Wait64BitValueX bridges reported prod=qNone. By t=272.1 s (130 s after title entry), two cells were mem 0, done 0, sub 0@qNone, rec 0x941, each with a recording list executed no, reset no, released no, and armed []. Exactly the same values/list states persisted at t=292.1 and 332.1 s, while GPU utilization was 0% and the window 0 fps. ~6 GiB physical RAM remained free. The planned XCL_RUN_SECONDS ended the stalled run, without device removal.
The t=252.1 s stack of the title's submission thread was inside q_execute_command_lists -> title_textures::refresh -> upload_batch -> gpu::fence::wait; at t=272.1 s that thread was back in title code. There was no texture-copy timeout logged, so that snapshot alone does not establish a stuck upload fence.
Run B, same route plus local upload-fence timing instrumentation: 48 upload waits of at least 25 ms were logged; all completed, zero errors. Examples: at t=211.7–212.1 s successive targets 0x3ef through 0x3f5 advanced from N-1 to N in 26–36 ms; the last slow wait at t=240.4 s advanced 0x42d -> 0x42e (target 0x42e) in 54 ms. No slow upload wait or UINT64_MAX was logged near the later stop. This run instead showed a DirectStorage 0x89240009 at t=263.7 s, the #101 stub at t=277.1 s, eight prod=qSome(1) Wait64 bridges at t=279.2–279.4 s, then device removal 0x887a0005 at t=279.9 s. It did not reach the planned later sync dumps.
The ordering supports looking upstream of the qNone bridge; it does not yet prove that the storage failure, #101 stub, temporary texture wait, or queue bridge causes either ending. Related timing report: #2648.
Only diagnostic values and aggregate counts are included; no title files, bytes, captures or raw logs. AI use: GPT-6-sol assisted with testing and this report. Follow-up, one bounded DRED run: with XCL_DRED=1 on the same instrumented build, 2,717 PresentX calls were reported before the planned stop. The route again changed: eight prod=qSome(1) Wait64 bridges at t=273.7–273.9 s (target 0xaa1), then the 0-fps stall rather than device removal. At t=275.5 and 295.5 s the same two cells stayed rec 0xaa1, sub 0@qNone, executed no, reset no, released no, with no pending title fences, unmet queue waits or armed GPU waits. GPU utilization fell to 0%. No device removal occurred, so DRED emitted no breadcrumbs or page-fault record. The shift under DRED is consistent with timing sensitivity; it does not prove a shared root cause.
Event-triggered follow-up on the same loading path (local mixed diagnostic build, not a clean-main or #2862 A/B test). Quadro RTX 3000 6 GiB, Series X profile, warm cache, XCL_TEXTURE_LEVEL_PAGES=1, XCL_DRED=1; binary SHA-256 860e61c1800366bdf388115904d3adc30123543e3977e26d95dfa4ef1eeabb28. A scripted 200 ms A press at host t=195 entered the loading path. #101 first appeared at t=291.7; eight prod=qSome(1) Wait64 bridges followed at t=293.6–293.9.
At the first prod=qNone bridge, a diagnostic thread captured unresolved cells 2 seconds later. At t=296.3, six cells had rec=0x10ee, sub=0@qNone, mem=0, done=0, and executed no, reset no, released no. Five of their recording PC lists already had a successful Close marker (+0 to +13 ms after recording); one had closed no. Four cells' latest maximum Write64 was recorded by thread 22960, two by thread 31472. Their snapshot stacks were, respectively, KERNELBASE -> game_scarlett_master.exe+0x43c421e -> ...+0x2215eca and nvgpucomp64.dll shader compilation. A graphics PSO driver compile started on 31472 at t=294.6 with no cached driver blob.
CPU Wait64 polls timed out at t=296.7, 298.7, and 300.7, followed by device removal 0x887a0005 at t=300.7. DRED reported page-fault VA 0x0 without a matching allocation. The process ended before the planned +20 s snapshot.
Correction:qNone/submitted=0 does not imply every producer list is still open. Five were closed in this run, so the gap lies after Close and before observed Execute/queue attribution for those lists. This does not prove whether the title, XCL, or the driver held up submission. Recorder TID names the thread that recorded the cell's maximum; its later stack does not establish current list ownership. Only diagnostic values are included. AI use: Codex assisted with instrumentation, run control, and analysis.
Activity
Kalmarv commentedon Nov 26, 2026
prod=qNonewithwait-before-signalmeans XCL has aWrite64BitValue*to that cell recorded but has not seen it submitted on any queue. #1452 (#1452 (comment)) stops in the same state.Two PRs for it, neither confirmed as the cause here:
mid-list split … CreateCommandList failedwarning.XCL_THREAD_DUMP_ATdump 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_ATset to a second or two after the two bridged waits and before the device removal, andnvidia-smi dmon -s pucm -o Tbeside it. Then post thesync statelines, anymid-list splitlines, and the dmon around the stop.AI use: written with Claude Code (Claude Opus 5.5).
GreemSC commentedon Nov 26, 2026
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
mainb49be18+ a Wine stack (D3D12.X: run sparse::readback_after_execute asynchronously per queue #1732 with D3D12.X: preserve native vtables and wrap fences for vkd3d-proton under Wine (#175) #867/Memory: avoid amdgpu userptr stalls under Wine (#175) #871/Memory: lazily map sparse VRAM tiles for Wine graphics heaps (#175) #877, XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, Recompiler: direct DXIL gives every loop head and block one back edge #1860, Recompiler: split wave64 compute groups of several waves across dispatches #2097, D3D12.X: an ExecuteIndirect of a split program runs its pieces #2404, D3D12.X: a bind never builds a cold pipeline on the title's thread #2615, D3D12.X: ExecuteIndirect skips a stand-in whose build ends during the call #2598, D3D12.X: title texture reads outside the coherent window use the safe copy #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.XCL_TEXTURE_LEVEL_PAGES=1(1 run)mem_info_gtt_usedpeak (sysfs)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.
ninghaoan commentedon Nov 27, 2026
Ran the requested reproduction with #2718 (head ceb7bc2) + XCL_THREAD_DUMP_AT=120,150,180,210,240,270, XCL_TEXTURE_LEVEL_PAGES=1, XCL_DRED=1, and nvidia-smi dmon -s pucm -o T -d 5 beside it. RTX 3060 12GB, i7-9750H, Win11, own 1.0.2.1.
Result: the stuck cell is case 3 from your description — recorded, never executed, never reset, never released:
Wait64 cells behind: 0x704180108: mem 0x0 done 0x0 sub 0x0@qNone rec 0x735 by 0x104a68490 160816 ms ago (executed no, reset no, released no) cpu 0x0 armed []
It stays identical at every dump point (120s, 150s, 180s, 210s, 240s, 270s), with the recorded value rec 0x735 never rising and sub 0x0@qNone never gaining a producer. A second cell 0x704180100 shows the same. The producer that should write 0x735 was recorded by list 0x104a68490 and never seen submitted, reset or released — so the title still holds it and the bridged GPU wait can never retire.
Also: zero mid-list split CreateCommandList failed warnings (so #2717 is not our path, consistent with the earlier check), and no device removal within the 420s run (it ends with the thread dump, not a fault). dmon shows the GPU idle (0-34% sm) with fb climbing 1303 -> 8904 MB as textures load, mclk fixed 7501 MHz, no anomaly around the stall.
Counts/classes only; no game-derived bytes or log lines beyond these diagnostics are shared. AI use: model name unknown to the assistant; setup and analysis via WorkBuddy on Windows 11.
jeroenhaentjens commentedon Nov 28, 2026
Independent reproduction with the #2718 sync-state diagnostic cherry-picked onto a local build based on
3f0ed9b8/ #2862 (also local #1916, #1182, #2177, #1629 changes), Windows, Quadro RTX 3000 6 GiB, 31.8 GiB RAM, Series X profile, 1.0.2.1,XCL_TEXTURE_LEVEL_PAGES=1, warm cache. Diagnostic binary SHA-2563eb67c174cce8495ce390f775774f4a41d42df69d78b1a72b8f7e778d0d75075. This is not a clean-main comparison.Run A, 0-fps stall without device removal: sync-state dumps at host t=232.2 and 252.1 s (90/110 s after title entry) had no pending title fences, no unmet XCL queue waits, zero armed GPU waits, and no Wait64 cells behind. At t=230.6 s DirectStorage first reported
0x89240009for a request from an existing file; at t=257.9 s theID3D12GraphicsCommandList10::#101stub was first called; at t=262.2 s threeWait64BitValueXbridges reportedprod=qNone. By t=272.1 s (130 s after title entry), two cells weremem 0,done 0,sub 0@qNone,rec 0x941, each with a recording listexecuted no, reset no, released no, andarmed []. Exactly the same values/list states persisted at t=292.1 and 332.1 s, while GPU utilization was 0% and the window 0 fps. ~6 GiB physical RAM remained free. The plannedXCL_RUN_SECONDSended the stalled run, without device removal.The t=252.1 s stack of the title's submission thread was inside
q_execute_command_lists -> title_textures::refresh -> upload_batch -> gpu::fence::wait; at t=272.1 s that thread was back in title code. There was no texture-copy timeout logged, so that snapshot alone does not establish a stuck upload fence.Run B, same route plus local upload-fence timing instrumentation: 48 upload waits of at least 25 ms were logged; all completed, zero errors. Examples: at t=211.7–212.1 s successive targets
0x3efthrough0x3f5advanced fromN-1toNin 26–36 ms; the last slow wait at t=240.4 s advanced0x42d -> 0x42e(target0x42e) in 54 ms. No slow upload wait orUINT64_MAXwas logged near the later stop. This run instead showed a DirectStorage0x89240009at t=263.7 s, the#101stub at t=277.1 s, eightprod=qSome(1)Wait64 bridges at t=279.2–279.4 s, then device removal0x887a0005at t=279.9 s. It did not reach the planned later sync dumps.The ordering supports looking upstream of the qNone bridge; it does not yet prove that the storage failure, #101 stub, temporary texture wait, or queue bridge causes either ending. Related timing report: #2648.
Only diagnostic values and aggregate counts are included; no title files, bytes, captures or raw logs. AI use: GPT-6-sol assisted with testing and this report.
Follow-up, one bounded DRED run: with
XCL_DRED=1on the same instrumented build, 2,717 PresentX calls were reported before the planned stop. The route again changed: eightprod=qSome(1)Wait64 bridges at t=273.7–273.9 s (target0xaa1), then the 0-fps stall rather than device removal. At t=275.5 and 295.5 s the same two cells stayedrec 0xaa1,sub 0@qNone,executed no, reset no, released no, with no pending title fences, unmet queue waits or armed GPU waits. GPU utilization fell to 0%. No device removal occurred, so DRED emitted no breadcrumbs or page-fault record. The shift under DRED is consistent with timing sensitivity; it does not prove a shared root cause.jeroenhaentjens commentedon Nov 28, 2026
Event-triggered follow-up on the same loading path (local mixed diagnostic build, not a clean-main or #2862 A/B test). Quadro RTX 3000 6 GiB, Series X profile, warm cache,
XCL_TEXTURE_LEVEL_PAGES=1,XCL_DRED=1; binary SHA-256860e61c1800366bdf388115904d3adc30123543e3977e26d95dfa4ef1eeabb28. A scripted 200 ms A press at host t=195 entered the loading path.#101first appeared at t=291.7; eightprod=qSome(1)Wait64 bridges followed at t=293.6–293.9.At the first
prod=qNonebridge, a diagnostic thread captured unresolved cells 2 seconds later. At t=296.3, six cells hadrec=0x10ee,sub=0@qNone,mem=0,done=0, andexecuted no, reset no, released no. Five of their recording PC lists already had a successful Close marker (+0 to +13 ms after recording); one hadclosed no. Four cells' latest maximum Write64 was recorded by thread 22960, two by thread 31472. Their snapshot stacks were, respectively,KERNELBASE -> game_scarlett_master.exe+0x43c421e -> ...+0x2215ecaandnvgpucomp64.dllshader compilation. A graphics PSO driver compile started on 31472 at t=294.6 with no cached driver blob.CPU Wait64 polls timed out at t=296.7, 298.7, and 300.7, followed by device removal
0x887a0005at t=300.7. DRED reported page-fault VA0x0without a matching allocation. The process ended before the planned +20 s snapshot.Correction:
qNone/submitted=0does not imply every producer list is still open. Five were closed in this run, so the gap lies after Close and before observed Execute/queue attribution for those lists. This does not prove whether the title, XCL, or the driver held up submission. Recorder TID names the thread that recorded the cell's maximum; its later stack does not establish current list ownership. Only diagnostic values are included. AI use: Codex assisted with instrumentation, run control, and analysis.