D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge) #2047

Open
theaustinayers wants to merge 0 commits from upstream-pr/2057 into main
theaustinayers commented 2026-11-25 02:16:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by theaustinayers on 2026-11-25T02:16:27Z.


Draft, for reference only: the tree my runs of the newer retail title of #505 use on an RTX 5090, so that others can build and run the same thing. It is not meant to be merged as it is. Most of it is other people's open PRs; my own commits on top will be split into small PRs (list below). Merged with main at 568e7db.

The game runs listed under Tested were made with the same commits on an older base (7f7e768, no rebuild of the shader caches needed there). This merged tree has unit and GPU tests but has not run in the game yet: its compute pipelines are being built now.

What is in it

Other people's work:

  • #1329: the committed window gets a copy in video memory (XCL_UMA_SHADOW=1)
  • #1850: globallycoherent on compute memory windows only when the program needs it
  • #1993: a copy back after a submission does not wait for the title
  • #1766: XCL_GPU_PROFILE
  • #1983: the GPU wait watchdog lists the waits XCL put on queues itself
  • #1599: a queue made with AutoSubmitDisabled waits for Submit
  • #929: the newer list layout's #139 Reset goes through title_list::reset. Without it a list that was split kept its old segments and sent them again every frame: the freeze after about 30 s in the world, garbage indirect arguments and GPU hangs
  • #2052: a wait an earlier signal covers does not make a signal a cycle
  • #1517, #1792, #1184: tiles of memory a title maps a page at a time are mapped together (142 → 3.2 µs a page in a test of 8 192 pages)
  • #1453, #1422
  • merged into main since: #1747, #1791, #605

New commits, each to become its own PR or a note on the PR it changes:

  • Hang and freeze: 16826cb, 3877446, c28d531 the counts of an ExecuteIndirect are read by a program of XCL's before the GPU runs them; f98a1d6 #2052's rule for title fences; 0d25b89 the console's cache flushes (list #131, #132, FlushPipelineX) are UAV barriers; dc651ea a tile a placed buffer uses stays mapped
  • Loading: 70a160e, 0764a57 on #1517 (a mapping put off goes before a CPU or queue signal, before lists that follow a CPU wait, and after 2 ms at the latest); 6112bd8 on #1792 (a page with data is told to the sparse windows before its bytes come: a look in between dropped them); f659f75 the mapped runs and the pieces to clear are kept in order; 77be198 a thread that maps memory lets waiting submits have the sparse lock first (171 ms median wait → 0.14 ms in a test); 04c2fe7 a texture whose memory is not all there is read region by region
  • Uploads: 80dc4dc small CPU writes go up in one dispatch; 73fc616, 0b66349, b659291, f064c82 the parts of a texture that changed go up, through lists and buffers that are kept, in order across queues; a261e72 what a file read puts into graphics memory is a known write; 55e58c3 readable asks the working set
  • Recording: 6e7040b, 2987c19 what each recorded call looks up is kept in parts with a lock each; 680a719, 0ba3b8c last releases
  • Looks: 7c18bc4 and after it (blocks written lately, a thread walks the rest; off with XCL_WATCH_HOT=0). Not strict: a write to a block that was idle reaches video memory up to about 20 ms late. a004fe7 XCL_LOOK_AHEAD=ms (off; known gaps, see its commit)
  • 414adb2 one device is opened at a time (two test threads made two and opened the memory windows for each)
  • 9baaa6f a compute pipeline's driver blob reaches the disk cache although the memory store is full; 5ea55e2 XCL_PRECOMPILE_SLICE=i/n
  • 1225bb9, 5e3c657, b5e8baf on top of #1993
  • Diagnostics (XCL_ACTIVITY call times, XCL_LOOK_STATS)

Tested

  • NVIDIA GeForce RTX 5090 32 GB (driver 621.14), AMD Ryzen 9 9950X3D, 128 GB RAM, Windows 11 build 26300, release.
  • cargo test --release -p xcl --lib -- --test-threads=4 at 4df1e6e: 1145 passed, 4 failed, 26 ignored. The 4 are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (the driver answers E_OUTOFMEMORY to CreateComputePipelineState); they fail the same way on main with this card. SKIPPED: the tests that need 64-lane waves.
  • The same with XCL_ADAPTER=warp (the software adapter, as CI): 1149 passed, 0 failed, 26 ignored. The CI failure of the head before (f7e08e6) was one of my tests: the software device does not survive copies into a reserved buffer of 3 GiB; the test skips there now.
  • The upload commits and the loading commits were each reviewed by separate agents; what they confirmed is fixed in the commits named "review".
  • The newer retail title of #505, same commits on base 7f7e768 (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1, compute pipelines built ahead), two runs of 300 s:
    • no hang, no crash, no device removal, no GPU wait released by the watchdog, no cycle break;
    • 30 fps in its menus and intro; the first loading screen shows frames all the way (it stood for 8 – 10 s before);
    • its world is reached after 86 – 104 s and shows 5 – 10 frames a second; 2 446 and 2 012 frames in all;
    • the picture of the world is grey (40 mesh pipelines refused, #541 / #2092; buffers in the GPU view of its 24 GB pair read as zeros, #697);
    • in the second run the title compiled 14 big graphics pipelines one after another from 144 s on (5 – 7 s each in the driver, "wanted at once") and showed no frame meanwhile.

Regression run

  • none: a reference branch, not for merge.

Not tested

  • This merged tree in the game; AMD; other titles; a cold shader cache.

AI use

  • Claude Code, Claude Fable 5.2 and Claude Opus 5.5: wrote the new commits and their tests, made the runs on the hardware above and wrote this description. The upload and loading commits were reviewed by separate agents (Claude Opus 5.5).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5483849343 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057). Originally posted by [theaustinayers](https://github.com/theaustinayers) on 2026-11-25T02:16:27Z. --- Draft, for reference only: the tree my runs of the newer retail title of #505 use on an RTX 5090, so that others can build and run the same thing. It is not meant to be merged as it is. Most of it is other people's open PRs; my own commits on top will be split into small PRs (list below). Merged with `main` at `568e7db`. The game runs listed under **Tested** were made with the same commits on an older base (`7f7e768`, no rebuild of the shader caches needed there). This merged tree has unit and GPU tests but **has not run in the game yet**: its compute pipelines are being built now. **What is in it** Other people's work: - #1329: the committed window gets a copy in video memory (`XCL_UMA_SHADOW=1`) - #1850: `globallycoherent` on compute memory windows only when the program needs it - #1993: a copy back after a submission does not wait for the title - #1766: `XCL_GPU_PROFILE` - #1983: the GPU wait watchdog lists the waits XCL put on queues itself - #1599: a queue made with `AutoSubmitDisabled` waits for `Submit` - #929: the newer list layout's #139 Reset goes through `title_list::reset`. Without it a list that was split kept its old segments and sent them again every frame: the freeze after about 30 s in the world, garbage indirect arguments and GPU hangs - #2052: a wait an earlier signal covers does not make a signal a cycle - #1517, #1792, #1184: tiles of memory a title maps a page at a time are mapped together (142 → 3.2 µs a page in a test of 8 192 pages) - #1453, #1422 - merged into `main` since: #1747, #1791, #605 New commits, each to become its own PR or a note on the PR it changes: - Hang and freeze: `16826cb`, `3877446`, `c28d531` the counts of an ExecuteIndirect are read by a program of XCL's before the GPU runs them; `f98a1d6` #2052's rule for title fences; `0d25b89` the console's cache flushes (list #131, #132, FlushPipelineX) are UAV barriers; `dc651ea` a tile a placed buffer uses stays mapped - Loading: `70a160e`, `0764a57` on #1517 (a mapping put off goes before a CPU or queue signal, before lists that follow a CPU wait, and after 2 ms at the latest); `6112bd8` on #1792 (a page with data is told to the sparse windows before its bytes come: a look in between dropped them); `f659f75` the mapped runs and the pieces to clear are kept in order; `77be198` a thread that maps memory lets waiting submits have the sparse lock first (171 ms median wait → 0.14 ms in a test); `04c2fe7` a texture whose memory is not all there is read region by region - Uploads: `80dc4dc` small CPU writes go up in one dispatch; `73fc616`, `0b66349`, `b659291`, `f064c82` the parts of a texture that changed go up, through lists and buffers that are kept, in order across queues; `a261e72` what a file read puts into graphics memory is a known write; `55e58c3` `readable` asks the working set - Recording: `6e7040b`, `2987c19` what each recorded call looks up is kept in parts with a lock each; `680a719`, `0ba3b8c` last releases - Looks: `7c18bc4` and after it (blocks written lately, a thread walks the rest; off with `XCL_WATCH_HOT=0`). Not strict: a write to a block that was idle reaches video memory up to about 20 ms late. `a004fe7` `XCL_LOOK_AHEAD=ms` (off; known gaps, see its commit) - `414adb2` one device is opened at a time (two test threads made two and opened the memory windows for each) - `9baaa6f` a compute pipeline's driver blob reaches the disk cache although the memory store is full; `5ea55e2` `XCL_PRECOMPILE_SLICE=i/n` - `1225bb9`, `5e3c657`, `b5e8baf` on top of #1993 - Diagnostics (`XCL_ACTIVITY` call times, `XCL_LOOK_STATS`) **Tested** - NVIDIA GeForce RTX 5090 32 GB (driver 621.14), AMD Ryzen 9 9950X3D, 128 GB RAM, Windows 11 build 26300, release. - `cargo test --release -p xcl --lib -- --test-threads=4` at `4df1e6e`: 1145 passed, 4 failed, 26 ignored. The 4 are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (the driver answers E_OUTOFMEMORY to CreateComputePipelineState); they fail the same way on `main` with this card. SKIPPED: the tests that need 64-lane waves. - The same with `XCL_ADAPTER=warp` (the software adapter, as CI): 1149 passed, 0 failed, 26 ignored. The CI failure of the head before (`f7e08e6`) was one of my tests: the software device does not survive copies into a reserved buffer of 3 GiB; the test skips there now. - The upload commits and the loading commits were each reviewed by separate agents; what they confirmed is fixed in the commits named "review". - The newer retail title of #505, same commits on base `7f7e768` (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1`, compute pipelines built ahead), two runs of 300 s: - no hang, no crash, no device removal, no GPU wait released by the watchdog, no cycle break; - 30 fps in its menus and intro; the first loading screen shows frames all the way (it stood for 8 – 10 s before); - its world is reached after 86 – 104 s and shows 5 – 10 frames a second; 2 446 and 2 012 frames in all; - the picture of the world is grey (40 mesh pipelines refused, #541 / #2092; buffers in the GPU view of its 24 GB pair read as zeros, #697); - in the second run the title compiled 14 big graphics pipelines one after another from 144 s on (5 – 7 s each in the driver, "wanted at once") and showed no frame meanwhile. **Regression run** - none: a reference branch, not for merge. **Not tested** - This merged tree in the game; AMD; other titles; a cold shader cache. **AI use** - Claude Code, Claude Fable 5.2 and Claude Opus 5.5: wrote the new commits and their tests, made the runs on the hardware above and wrote this description. The upload and loading commits were reviewed by separate agents (Claude Opus 5.5). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Filip722 commented 2026-11-25 03:05:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Filip722 on 2026-11-25T03:01:12Z.


On Bazzite with an RTX 5060 Laptop GPU (8 GiB), I reproduced the fence problem and tested the per-queue correction with one 64 KiB reserved buffer. Each queue wrote 64 distinct 32-bit words to its own range. Queue A waited on a CPU gate while queue B ran.

Revision Result
f6efbc8, the parent of the per-queue change B's data reached the CPU while A was held, but A's readback had already been retired or published. The two-queue regression failed.
f862f5f, initial reference head The same two-queue regression passed. The original single-queue test on this head still failed, reading zero for its first word after it waited on the old fence.
39c2eeb, updated reference head The updated test independently confirmed B's upload fence reached 1 and all its words landed before A was released. A remained pending with its CPU range untouched. After release, both complete patterns matched. One pass, zero skips.

Cherry-pick the focused test. It makes no runtime changes. Tested with the Windows MSVC release target, Proton Experimental 11.0-20261112, NVIDIA 615.78.08 and vkd3d-proton 3.1.0 (4522cc1a8b1347f+). This was a synthetic queue-ordering check. I did not run this reference branch through the game or its full regression suite. OpenAI Codex (GPT-6.2-Sol) prepared the test, ran the comparison and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7151509335 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7151509335). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-25T03:01:12Z. --- On Bazzite with an RTX 5060 Laptop GPU (8 GiB), I reproduced the fence problem and tested the per-queue correction with one 64 KiB reserved buffer. Each queue wrote 64 distinct 32-bit words to its own range. Queue A waited on a CPU gate while queue B ran. | Revision | Result | | --- | --- | | `f6efbc8`, the parent of the per-queue change | B's data reached the CPU while A was held, but A's readback had already been retired or published. The two-queue regression failed. | | `f862f5f`, initial reference head | The same two-queue regression passed. The original single-queue test on this head still failed, reading zero for its first word after it waited on the old fence. | | `39c2eeb`, updated reference head | The updated test independently confirmed B's upload fence reached 1 and all its words landed before A was released. A remained pending with its CPU range untouched. After release, both complete patterns matched. One pass, zero skips. | [Cherry-pick the focused test](https://github.com/Filip722/xcl/commit/150c5338162ae159850e06a7980ecc6eb30239e6). It makes no runtime changes. Tested with the Windows MSVC release target, Proton Experimental 11.0-20261112, NVIDIA 615.78.08 and vkd3d-proton 3.1.0 (`4522cc1a8b1347f+`). This was a synthetic queue-ordering check. I did not run this reference branch through the game or its full regression suite. OpenAI Codex (GPT-6.2-Sol) prepared the test, ran the comparison and wrote this report.
not-rex commented 2026-11-25 04:10:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by not-rex on 2026-11-25T03:38:32Z.


RTX 3080 (10 GB, driver 610.88), this draft at f862f5f9 as is, retail world load, without the prebuilt caches the description says it needs: no watchdog, no hang and 0 failed DirectStorage requests, but the title then waits on pipeline builds.

Tree: f862f5f9 unchanged (it contains #1329, #1850, #1993, #1766, #1983, #1599). Warm caches and save from earlier HLSL-path runs (so the XCL_DIRECT_DXIL pipelines are all new here), A at 30 and 40 s, 600 s, no XCL_PSO_WAIT_MS.

XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 the same + XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512
first ListX #101 94.5 s 92.2 s
presents after #101 15, last at 98.1 s 0 (last present 88.0 s)
GPU-wait timeouts / device removal / watchdog 0 / none / none 0 / none / none
DirectStorage failed 0 of 87,455 –
end normal at 600 s, title waiting on builds ("0 running, 221 done, 57,814 queued") normal at 600 s
peak commit / local video memory 36.2 GB / 18.0 GB 33.4 GB / –

So with cold XCL_DIRECT_DXIL caches the title blocks on its first pipelines, as you'd expect from the description; I didn't get to a HUD. The 0 failed DirectStorage requests fit #1599's effect (my earlier HLSL-path runs had 10-849 per run). A run on caches prebuilt for the direct-DXIL path would be the fair comparison; at this machine's build rate that's several hours, so not tonight.

AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine through a scripted runner and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7152106281 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7152106281). Originally posted by [not-rex](https://github.com/not-rex) on 2026-11-25T03:38:32Z. --- **RTX 3080 (10 GB, driver 610.88), this draft at `f862f5f9` as is, retail world load, without the prebuilt caches the description says it needs:** no watchdog, no hang and 0 failed DirectStorage requests, but the title then waits on pipeline builds. Tree: `f862f5f9` unchanged (it contains #1329, #1850, #1993, #1766, #1983, #1599). Warm caches and save from earlier HLSL-path runs (so the `XCL_DIRECT_DXIL` pipelines are all new here), A at 30 and 40 s, 600 s, no `XCL_PSO_WAIT_MS`. | | `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1` | the same + `XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512` | |---|---|---| | first `ListX #101` | 94.5 s | 92.2 s | | presents after `#101` | 15, last at 98.1 s | 0 (last present 88.0 s) | | GPU-wait timeouts / device removal / watchdog | 0 / none / none | 0 / none / none | | DirectStorage failed | 0 of 87,455 | – | | end | normal at 600 s, title waiting on builds ("0 running, 221 done, 57,814 queued") | normal at 600 s | | peak commit / local video memory | 36.2 GB / 18.0 GB | 33.4 GB / – | So with cold `XCL_DIRECT_DXIL` caches the title blocks on its first pipelines, as you'd expect from the description; I didn't get to a HUD. The 0 failed DirectStorage requests fit #1599's effect (my earlier HLSL-path runs had 10-849 per run). A run on caches prebuilt for the direct-DXIL path would be the fair comparison; at this machine's build rate that's several hours, so not tonight. AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine through a scripted runner and wrote this report.
HKEY-Funk-Machine commented 2026-11-25 04:10:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by HKEY-Funk-Machine on 2026-11-25T04:02:30Z.


AMD RX 9070 (RDNA4) on this branch: with the caches filled first, the title reaches world loading at ~90 s, then the GPU hangs 30–40 s later. Skipping the program in flight only moves the hang to another one. XCL_UMA_SHADOW=1 removes the device at start-up here.

AMD is under Not tested in the description, so here is the RX 9070 side. Retail title of #505 (TitleID 7952987A, 1.0.2.1).

Setup: AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0, release. This PR at 8ff4b02 (runs 1–2 at f862f5f), with one local change in xgameruntime/api.rs (a start-up hang on this machine; run with XCL_NO_PC_RUNTIME=1). Every run: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=8,10,…,90 XCL_NETWORK=0 XCL_RUN_SECONDS=360, a new exe name per run, no XCL_DRED (it keeps the driver from taking cached pipelines, per #1323).

1. XCL_UMA_SHADOW=1 (at f862f5f): 2 s in, before the first frame, UMA not available to the GPU: CreateHeap (window 3, 4095 MB of video memory): … suspended (0x887A0005), then device removed: 0x887a0020 (driver internal error) and the title's 0x80000003 at +0x2474606. Without the setting, the same build opens UMA the normal way on this card (UMA import check: ok). @not-rex ran the shadow on a 10 GB RTX 3080 without this, so it is not just the card's size; I haven't looked further. Leaving the shadow off where the import check passes would avoid it.

2. Cold caches (no shadow, at f862f5f): 1 frame in 360 s. The title waited on compute pipeline builds the whole time (320 built), 34 GB peak private memory, no removal. Same as @not-rex's cold run.

3. Caches filled first. XCL_PRECOMPILE_SLICE=i/4 with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1: 2 684 compute pipelines made, 0 refused. At the default concurrency 3 of the 4 slices each passed 14–24 GB on one program and were stopped. With XCL_PIPELINE_THREADS=3 XCL_DXC_THREADS=10 and #1774's XCL_PIPELINE_MAX_KB=1536 cherry-picked into a separate build used only for the precompile (the translator unchanged), they finished without hitting the cap.

run (at 8ff4b02) XCL_SKIP_CS (with XCL_GPU_PROFILE=1) first ListX #101 dispatches (skipped) GPU hang 0x887a0006 in flight at the hang (profiler)
w1 – (profile off) 92 s 23 594 (718) 128 s –
w2 39f23deaf6a63310 ~90 s 10 276 (448) 120 s 8e0da70f49ca611c, 8×8×1, 160×90 groups, 16 KB DXIL, "RUNNING for 517 ms and not finished"
w3 39f23deaf6a63310, 8e0da70f49ca611c ~90 s 32 325 (1 210) 132 s 6da1f38b06d6c735, 64×1×1, 3 099 groups, 155 KB DXIL, "RUNNING for 1 607 ms and not finished"
  • The caches work on AMD: 37–40 driver builds per run instead of hundreds. Menus at 30 fps, 1 800 frames by ~85 s, world loading from ~90 s, about as fast as the NVIDIA runs. 34–38 GB peak private memory.
  • Every run ends in a GPU hang 30–40 s into world loading, where your runs draw the HUD. The title then hits its 0x80000003 at +0x2474606.
  • 39f23deaf6a63310 is the program DRED put the hang in on main (#675, 7150865142). On this branch, with it skipped, the profiler shows 8e0da70f49ca611c running and not finished; skipping that too, 6da1f38b06d6c735. A 720p 8×8 pass that runs for half a second is stuck, not slow. So on AMD this looks like something many programs share, not one bad program. @grahamster2 saw the same pattern on an RTX 3080 on #675.
  • Before the removal in w3, two Wait64BitValueX timeouts: memory holds 76c, want 76d.

Not tested: the test suite on this tree; #929 on top (merges cleanly; build ready, not run); programs over 1.5 MB precompiled; graphics pipelines precompiled; why these programs do not finish; other titles.

AI use: Claude Code (Claude Opus 5.5) ran the precompile and title runs, read the logs, and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7152473795 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7152473795). Originally posted by [HKEY-Funk-Machine](https://github.com/HKEY-Funk-Machine) on 2026-11-25T04:02:30Z. --- **AMD RX 9070 (RDNA4) on this branch: with the caches filled first, the title reaches world loading at ~90 s, then the GPU hangs 30–40 s later. Skipping the program in flight only moves the hang to another one. `XCL_UMA_SHADOW=1` removes the device at start-up here.** AMD is under **Not tested** in the description, so here is the RX 9070 side. Retail title of #505 (TitleID `7952987A`, 1.0.2.1). **Setup:** AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0, release. This PR at `8ff4b02` (runs 1–2 at `f862f5f`), with one local change in `xgameruntime/api.rs` (a start-up hang on this machine; run with `XCL_NO_PC_RUNTIME=1`). Every run: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=8,10,…,90 XCL_NETWORK=0 XCL_RUN_SECONDS=360`, a new exe name per run, no `XCL_DRED` (it keeps the driver from taking cached pipelines, per #1323). **1. `XCL_UMA_SHADOW=1`** (at `f862f5f`): 2 s in, before the first frame, `UMA not available to the GPU: CreateHeap (window 3, 4095 MB of video memory): … suspended (0x887A0005)`, then `device removed: 0x887a0020` (driver internal error) and the title's `0x80000003` at `+0x2474606`. Without the setting, the same build opens UMA the normal way on this card (`UMA import check: ok`). @not-rex ran the shadow on a 10 GB RTX 3080 without this, so it is not just the card's size; I haven't looked further. Leaving the shadow off where the import check passes would avoid it. **2. Cold caches** (no shadow, at `f862f5f`): 1 frame in 360 s. The title waited on compute pipeline builds the whole time (320 built), 34 GB peak private memory, no removal. Same as @not-rex's cold run. **3. Caches filled first.** `XCL_PRECOMPILE_SLICE=i/4` with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`: 2 684 compute pipelines made, 0 refused. At the default concurrency 3 of the 4 slices each passed 14–24 GB on one program and were stopped. With `XCL_PIPELINE_THREADS=3 XCL_DXC_THREADS=10` and #1774's `XCL_PIPELINE_MAX_KB=1536` cherry-picked into a separate build used only for the precompile (the translator unchanged), they finished without hitting the cap. | run (at `8ff4b02`) | `XCL_SKIP_CS` (with `XCL_GPU_PROFILE=1`) | first `ListX #101` | dispatches (skipped) | GPU hang `0x887a0006` | in flight at the hang (profiler) | |---|---|---|---|---|---| | w1 | – (profile off) | 92 s | 23 594 (718) | 128 s | – | | w2 | `39f23deaf6a63310` | ~90 s | 10 276 (448) | 120 s | `8e0da70f49ca611c`, 8×8×1, 160×90 groups, 16 KB DXIL, "RUNNING for 517 ms and not finished" | | w3 | `39f23deaf6a63310`, `8e0da70f49ca611c` | ~90 s | 32 325 (1 210) | 132 s | `6da1f38b06d6c735`, 64×1×1, 3 099 groups, 155 KB DXIL, "RUNNING for 1 607 ms and not finished" | - The caches work on AMD: 37–40 driver builds per run instead of hundreds. Menus at 30 fps, 1 800 frames by ~85 s, world loading from ~90 s, about as fast as the NVIDIA runs. 34–38 GB peak private memory. - Every run ends in a GPU hang 30–40 s into world loading, where your runs draw the HUD. The title then hits its `0x80000003` at `+0x2474606`. - `39f23deaf6a63310` is the program DRED put the hang in on `main` (#675, 7150865142). On this branch, with it skipped, the profiler shows `8e0da70f49ca611c` running and not finished; skipping that too, `6da1f38b06d6c735`. A 720p 8×8 pass that runs for half a second is stuck, not slow. So on AMD this looks like something many programs share, not one bad program. @grahamster2 saw the same pattern on an RTX 3080 on #675. - Before the removal in w3, two `Wait64BitValueX` timeouts: `memory holds 76c, want 76d`. **Not tested:** the test suite on this tree; #929 on top (merges cleanly; build ready, not run); programs over 1.5 MB precompiled; graphics pipelines precompiled; why these programs do not finish; other titles. AI use: Claude Code (Claude Opus 5.5) ran the precompile and title runs, read the logs, and wrote this comment.
Alm0stSurely commented 2026-11-25 04:19:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Alm0stSurely on 2026-11-25T04:19:38Z.


Linux/Proton comparison on RTX 5080 (620.73.04), Ryzen 9 9950X3D, EndeavourOS, 60 GiB usable RAM, Proton Experimental. One isolated release run per clean revision, same saved state and inputs, independent copies of the same partial shader-cache seed. Both used xcl.exe run <title.exe> with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=250 XCL_RUN_SECONDS=300. Same local vkd3d-proton build (4522cc1 plus a DXIL translation patch), breadcrumbs enabled on both.

Revision Furthest identifiable image and termination
main cbc296ab65a2 Loading artwork. At 62.821 s XCL reported device removal (0x887a0005); vkd3d logged a Vulkan timeline semaphore wait returning VK_TIMEOUT. The coherent window import check passed.
Reference 8ff4b02e69ec Loading artwork, then a uniform screen. The last detailed frame was at ~118 s in the 15 fps recording. At 246.685 s the process exited with status 3. No radar identified. XCL confirmed that the coherent window used a 512 MB video-memory shadow.

The reference log contains 527 compute pipeline compile starts marked driver blob absent. We did not reproduce the author's full compute prewarm, so this cannot distinguish cache readiness from a rendering or synchronization issue. No individual commit can be credited from this comparison. Assisted by Codex (GPT-6.2 Astra).

Warm replay on the same PR executable and options, with an independent copy of the preceding run's entire shader cache. Across 232 identical compute records that completed both times and switched from no driver blob to a supplied blob, median driver creation time fell from 3,003.5 ms to 1 ms. Across the full replay, 235 compute PSOs were successfully created with a supplied blob; 330 starts still lacked one. Last identifiable image was loading artwork, then a uniform screen; intro timing also differed. At 224.174 s XCL reported 0x80004005, and vkd3d logged VK_ERROR_DEVICE_LOST on queue submit. The pending NVIDIA breadcrumb (top 38, bottom 37) brackets a Dispatch(320,180,1) with shader hash 7d1e95a171b6f27b. Hashing the cached DXIL with the pinned vkd3d hash function matched XCL compute record 520a7d5cb893a9f7 (128,552 bytes). This identifies a point for comparison in another trace; a pending command alone does not establish the cause of device loss.

Independent replay of the same warm cache seed on 8ff4b02e, with the PR’s GPU timestamp profiler locally filtered to that record and group count plus one unrelated control. Both timestamp pairs resolved: the exact 520a7d5cb893a9f7 dispatch at 320×180×1 completed once in 0.3 ms. At 228 s there were zero tracked pairs in flight, lost or out of order. At 232.107 s XCL reported 0x887a0005; vkd3d logged a timeline wait returning VK_TIMEOUT, with Dispatch(10,6,1) between markers 46 and 47. Loading artwork remained the furthest identifiable image. This demonstrates that the previously pending shader can complete on the RTX 5080. Bindings and scheduling may differ across replays.

Checked the exact revision cited in #2110 (14d7a3c56cb8, clean release) on the RTX 5080/Proton setup above with the same partial warm cache seed. Latest identifiable image was loading artwork, followed by a uniform screen; no visible radar or 3D world in this run. Compute pipeline starts: 235 with a supplied driver blob, 327 without. At 116.788 s XCL logged a compute queue wait for a direct queue producer, then at 117.791 s reported 0x887a0005; vkd3d logged queue submission returning VK_ERROR_DEVICE_LOST. The pending breadcrumb spans Dispatch(40,23,1). A wait of the same form appears late in both prior warm runs, but these logs do not establish the FIFO order or a causal cycle. No 2-second activity sample exceeded the 2,000-draw threshold used for the heavy scene in #2110.

On the same 14d7a3c base with the 2570d0a sync trace and local timing around D3D12 Wait/Signal calls, the loading artwork again gave way to a uniform screen. At threshold 0x640 the compute queue waited on fence A, then signalled B. The direct queue signalled A 178.5 µs before it called Wait on B. All four calls succeeded, used the same two fence objects, and ran on one thread without overlap. This rules out a mutual FIFO wait between those two operations in this run. It does not establish GPU completion or explain the subsequent VK_ERROR_DEVICE_LOST at about 116 s. Tested with Codex (GPT-6.2 Astra).

Opening credits confirmed on Linux / RTX 5080. Tested integration 70a7e1d579d2c9083f5c3b9066a66429c3f9df21 with the #751 texture-read changes and the guard compiler fallback. Same hardware, Proton, saved state, launch flags and independently copied shader-cache seed as above. With late render-target tracing enabled, readable writing credits appeared at about 297 s of runtime. On the same executable with that trace disabled and XCL_RUN_SECONDS=420, presented frame 1700 at 326.99 s shows character-art credits. The recording later shows illustrated art-direction credits, still without an identifiable playable scene. 1,871 PresentX calls at the 420 s limit. A 300 s observation window can miss this stage. These runs do not isolate a causal commit. Tested with Codex (GPT-6.2 Astra).

Warm-cache comparison on the same integration. Reusing independent copies of the completed 420 s run’s cache, the original local driver stopped during illustrated loading. With only dxil-spirv #379 (8a1a0565) added to that driver, the recording showed “Vice City, Two Years Ago” and then “Rockstar Games Presents”. Both warm-cache runs stopped in the same compiler function before a playable scene (first exception at 113.95 s and 101.56 s respectively). One run per driver. The extra patch did not resolve this configuration’s failure, and the captures do not establish that it caused the difference in title cards. Tested with Codex (GPT-6.2 Astra).

Driver comparison on the same XCL executable and partial starting cache. With the two D3D12 DLLs shipped in Proton Experimental bleeding-edge 11.0 (2026-11-23, vkd3d-proton 3.2.0 cae8353ed7959c4), the process exited with status 3 at 0.952 s; XCL reported 0 presents. The last D3D12 log line announced ID3D12Heap1. No specific failing call or assertion was established. With our local vkd3d-proton 3.1 pair (4522cc1 plus patches), the matched 600 s run showed illustrated credits. The local pair also stopped during credits in another partial-cache run at 426.57 s in the same compiler function previously seen with a warmed cache. The earlier credit result therefore applies to the local graphics stack; the stock driver did not reach that stage here. One stock run; no claim about other Proton versions or XCL main. Tested with Codex (GPT-6.2 Astra).

RTX 5080 / stock Proton Experimental: ported the runtime changes from 70a7e1d through 4df1e6e3d4 onto the local Wine integration (#867/#1395 and safe texture reads). Release executable SHA-256 2712e014ad1fc4fbf3149e92f00b52ceb9b854b2b6fe45495a4a46be20e26bd8. The focused deferred sparse mapping test passed on the real GPU in 1.06 s. Each title run used its own copy of the same partially warm cache, direct DXIL, heap windows, UMA shadow and a 600 s cap.

  • With XCL_COHERENT_HEAPS=sparse:16 and XCL_LOOK_SKIP=1, zero presents, first exception 0xc0000005 in d3d12core.dll+0x4b2350 at 3.432 s (previous integration: same offset at 3.413 s).
  • With both variables unset on the new binary, first PresentX at 3.248 s, 1,762 presents. Capture shows illustrated loading followed by black. First exception at the same offset at 205.820 s. No verified in-world frame. One run per profile, two settings varied together. Unlike this test, the Windows reference used prebuilt compute pipelines.

Tested and reported with Codex (GPT-6.2 Astra).

Partial warm-cache replay, same executable, stock driver, settings and input sequence as the 1,762-present run above, using a copy of its entire final cache. vkd3d mapped and parsed the read-only cache. Of 38 compute records matched by record and bytecode size, built once to completion in each run, with no XCL blob supplied the first time and one supplied the second time, median logged driver creation time fell from 561.5 ms to 0 ms (integer-ms resolution). This comparison includes all cache layers. Illustrated loading remained the furthest captured screen, 1,800 presents, first exception at 100.499 s in d3d12core.dll+0x28baa6. Only 39 of 176 logged compute starts had a blob supplied on replay; this is a partial warm cache, not a full compute precompile.

Early-loading memory measurement under Proton Experimental on the RTX 5080 (620.73.04), using #2057 at 70a7e1d5 with local Wine heap/fence adaptations. We built vkd3d-proton 3.1 at 4522cc1 with dxil-spirv b540c8a2. Two synthetic triangle readbacks passed. In a separate tiled-buffer test, changing the backing of a 64 MiB buffer-only heap from DEFAULT to CUSTOM / WRITE_COMBINE / L0 moved 64 MiB of DXGI usage from local to non-local memory. GPU copies and readback at both ends matched after the fence in both cases.

In the title, one Series X run per setting, same binary (891dcef5ddcc), cold caches and 9,763 / 9,761 MiB initially free. Both used single_queue,no_upload_hvv and disabled VK_NV_optical_flow. Only the placement of new sparse buffer pools changed. At 512 sparse submissions both runs logged 21,604 mapped tiles. The nearest process-group VRAM samples were 3,000 MiB with default placement and 2,004 MiB with L0, 0.08 s before and 0.21 s after that milestone, respectively. At the fifth arena allocation the samples were 3,956 and 2,709 MiB. The number of bytes already uploaded differed at the first comparison point. First PresentX was around 3.6 s in both. Both 17.25 s captures ended with a black game window when the 5,120 MiB free-VRAM guard stopped the run. No in-world FPS or movement measurement. AI assistance: OpenAI Codex (gpt-6.2-astra), local port, tests and report.

Follow-up on the later VRAM stop (RTX 5080 / Proton Experimental). Once reserved texture pages were placed in system memory (texture A/B), the local #2057 integration reached the account picker and illustrated loading screens. It later hit the free-VRAM guard immediately after the return of two pipeline creations, with a 3,764 MiB increase in process-attributed VRAM.

We isolated one of those compute pipelines, record 56c0cd3b82a00c6e, using the 454,992-byte DXIL from that run, its compute root signature, vkd3d-proton 4522cc1 and dxil-spirv b540c8a2. Creating it alone reproduced +3,764 MiB. Its generated SPIR-V contains a private indexed table of 7,639 words. In a local diagnostic build we moved those exact words into a read-only buffer and redirected the two loads, preserving their indices and the shader's group and wave settings. Creation with this change measured +4 MiB. Both measurements used a fresh process and empty caches, with eight one-second samples before creation and eight while holding the PSO. Neither creation test dispatched the shader. A separate synthetic dispatch test using the same descriptor layout checked both reads at all 7,639 indices with two sets of contents.

With the local title-side binding and guarded driver replacement, the integration displayed the illustrated loading screens, then black. It registered the target pipeline and checked the shared descriptor heap during dispatch recording. The process sample stayed at 2,890 MiB over creation and immediately after, where the earlier run went from 2,890 to 6,654 MiB. The test reached its configured 600-second limit with no memory guard stop. The last two-second window with a presentation ended at 118.174 s. No controllable world or in-world FPS verified. The synthetic readback checks the descriptor access pattern; dispatch recording in the title does not establish GPU completion. Local experimental adaptations on #2057, separate cold runs; input confirmation occurred earlier in the modified run.

AI assistance: OpenAI Codex (gpt-6.2-astra), local ports, measurements and write-up.

Warm-cache follow-up on the same RTX 5080 integration. We repeated the 600 s run using a verified private copy of all three caches. On matching returned calls (record, stage, DXIL size and occurrence), 188 compute pipelines went from no driver blob to a supplied blob, median creation time 1,433 to 27 ms. The corresponding 75 graphics pipelines went from 1,000 to 17 ms. The 454,992-byte compute pipeline discussed above went from 6,400 to 98 ms. The last two-second interval containing a presentation ended at 120.184 s warm and 118.174 s cold. Both captures show illustrated loading followed by black through the limit. Reusing these caches speeds up creation on this build. The cause of the subsequent loss of visible progress is still open. One run per setting; the three cache layers changed together. AI assistance: OpenAI Codex (gpt-6.2-astra), comparison and write-up.

Credits recovered on the RTX 5080 / Proton Experimental integration. We restored the historical 250 ms compute bind budget. With four compiler workers the reference still went black, then exited at 211.535 s in the native D3D12 command-list submit. Its stack included the private sparse copy-back submission. The ordinary submit path already temporarily restores the list's native interface on Wine. We applied that existing guard to the private copy submit, following the AMD/Wine report on #1993. A synthetic Wine test failed before the change and passed afterward, checking the list identity observed by the submit and its restoration on return.

With the same driver, 250 ms budget, four workers and identical starting cache manifest, the corrected run resumed presenting at 206 s after the loading artwork went black. The video at 289.6 s shows a legible pink “Phil Hooker” credit. It recorded 52 later presentations before the unchanged memory guard stopped the process group at 28.01 GiB out of 32 GiB. The reference never resumed presentation after 120 s. One run on each binary. We have verified the return of credits on this integration; the actual completion of a particular title copy and a controllable 3D world remain unverified. AI assistance: OpenAI Codex (gpt-6.2-astra), local port, tests, measurements and write-up.

RTX 5080 / Proton Experimental, follow-up on the #2306 texture-level port to this #2057-based integration. On a synthetic 1024×1024, 11-mip texture, committed target pages before the first upload went from 5,636,096 bytes to zero. GPU readback checked populated levels, zero reads from absent levels, aliasing, and a second partial write preserving untouched texels. One GPU test ran on hardware, plus eight targeted CPU tests.

In Series X mode, just before the 65,536th DirectStorage request (about 92 s in both runs), XCL reported 4,350 MiB of target pages on the port versus 8,410 MiB on the baseline. DXGI local usage was 2,825 MiB in both samples. One run per side, samples at roughly two-second intervals, same input cache contents. The candidate used a private tmpfs copy of the NVIDIA cache. A small GPU calculation first reproduced the Vulkan device-creation failure outside the title and then passed with just this cache remounted in tmpfs, including with its original contents. The title also initialized the hardware device again in that setup.

The candidate reached loading artwork and then flat green/gray frames before the free-VRAM guard stopped it at 235 s of capture (5,115 MiB free, 5,120 MiB threshold). The baseline previously showed the “Phil Hooker” credit at 289.6 s. This comparison establishes lower texture page usage during loading. Open-world rendering and movement on this configuration remain unverified.

AI assistance: OpenAI Codex (gpt-6.2-astra), local integration, testing, measurements and write-up.

RTX 5080 / Proton Experimental, Series X, same #2057-based binary with the #2306 texture port. We changed only the initial used-pipelines.txt, from 563 entries to the 1,258 recorded during our earlier run that displayed the Phil Hooker credit. The other 1,207 seed files matched. XCL reached 1,024 prebuilt pipelines at 5.604 s versus 22.785 s in the control. Of the 58 compute pipeline creations between the control's last loading presentations and its first resumed presentation, five matching creations had already finished by 110 s in the candidate (matched by type, record, size and occurrence).

The capture still showed loading artwork followed by black. The free-VRAM guard stopped this run at 123 s of capture (4,122 MiB free, threshold 5,120), before the control's resumed presentation at about 210 s. One run per configuration. This verifies earlier preparation of some transition work. Whether it helps the next image or entry into the world is still open.

AI assistance: OpenAI Codex (gpt-6.2-astra), test orchestration, trace comparison and write-up.

RTX 5080 / Proton Experimental, offline follow-up for 19 compute pipelines observed during the black interval. All 19 title-generated VKB4 blobs are 112 bytes and carry the same state descriptor hash. Our #2057-based precompiler with its default node mask 0 reported zero cache loads. A local diagnostic build changing only the offline descriptor to mask 1 reported 19/19. The 1 KiB offline cap prevented a second, uncached creation on a miss. This tests the mismatch described in #1368 in the reverse direction, reading title-generated blobs offline.

Holding that binary, the 19 shader records, translations, blobs, and a single driver worker fixed, the measured pass took 152.5 s with a fresh NVIDIA cache, 168.9 s with our previous credit run’s NVIDIA cache, and 3.9 s with only the NVIDIA cache saved from the 152.5 s offline pass. One fresh process per condition. XCL reported 19 cache loads each time (successful creation and matching returned blob size). That count alone does not tell us how much driver compilation was avoided. No title frames were measured in this comparison.

AI assistance: OpenAI Codex (gpt-6.2-astra), local diagnostic, testing and write-up.

Title follow-up on the unchanged Series X integration. We prewarmed those 19 compute pipelines on a private copy of the title's starting NVIDIA cache and transferred only that directory. Two of the 1,208 starting files differed from the previous run. The last legible credit in the capture was “Open World Writing / In Game Media” at 529 s, followed by a flat gray screen, then black at the timed shutdown. XCL reached its configured 600 s limit; the resource guard stayed green. No identifiable 3D world or commanded movement was observed.

Six matched driver creations completed in both this run and the previous 1,258-key control, totaling 53.346 s versus 58.824 s of driver time. The control stopped at 123 s of capture on its free-VRAM guard, so it cannot establish what caused the later visual progress. With the earlier 563-key run, presentations resumed at 210 s versus 216 s here. One run per configuration.

AI assistance: OpenAI Codex (gpt-6.2-astra), test orchestration, trace and video checks, write-up.

Extended run on the same #2057-based integration with the #2306 texture port, RTX 5080, Proton Experimental, Series X. The binary, graphics DLLs, all 1,208 starting cache files and memory guard thresholds matched the 600 s run. We raised the title timeout to 1,200 s. The capture showed the “Producer / Rob Nelson” credit at 654 s and the “Move around / Move the camera” tutorial at 1,050 s. The tutorial remained visible for about 69 s over a featureless background.

Forward and reverse keyboard inputs were held for about 4.6 s each. The five before/during/after screenshots matched pixel-for-pixel. We also sent opposite camera inputs. The prompt disappeared during the first, and the captured scene still had no identifiable geometry. This single run cannot establish what dismissed the prompt. XCL exited at its configured time limit with code 0. No visible world duration, commanded movement in a scene, or gameplay FPS could be established. The tutorial gives a timestamp for comparing scene rendering with UI composition on this configuration.

AI assistance: OpenAI Codex (gpt-6.2-astra), local test orchestration, trace and video analysis, and write-up.

Source-to-window check on the same RTX 5080 / Proton Series X integration. We enabled only XCL_FRAME_DUMP=4 and compared the first resource selected by PresentX (960 × 540 sampled pixels from a 3840 × 2160 texture) against the recorded XCL window. After calibrating the image alignment on three loading illustrations, we matched two credit cards: “Cinematic and Face Animation” (source frame 2579, video 442 s) and “Open World Writing” (2651, 532 s). Mean absolute luma differences were 0.69 and 0.58 on a 0–255 scale. All 518,400 sampled texels in each of the last seven source images then had the same value, 0x553a3432. The free-VRAM guard ended the run before the movement tutorial.

The earlier run that reached the tutorial had created a prologue autosave. On a separate run with its complete private save state and otherwise identical settings, a file-access monitor recorded reads of the save data at 38.4 and 77.1 s. Loading artwork was still on screen when the same guard stopped this run. Whether resuming the save shortens the wait for the tutorial, and whether its background is already uniform in the source, remain open.

AI assistance: OpenAI Codex (gpt-6.2-astra), local tests, source/window comparison and write-up.

<!-- greyfinch-sync:ivall/xcl:comment:7152741210 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7152741210). Originally posted by [Alm0stSurely](https://github.com/Alm0stSurely) on 2026-11-25T04:19:38Z. --- Linux/Proton comparison on RTX 5080 (620.73.04), Ryzen 9 9950X3D, EndeavourOS, 60 GiB usable RAM, Proton Experimental. One isolated release run per clean revision, same saved state and inputs, independent copies of the same partial shader-cache seed. Both used `xcl.exe run <title.exe>` with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=250 XCL_RUN_SECONDS=300`. Same local vkd3d-proton build (4522cc1 plus a DXIL translation patch), breadcrumbs enabled on both. | Revision | Furthest identifiable image and termination | | --- | --- | | main `cbc296ab65a2` | Loading artwork. At 62.821 s XCL reported device removal (`0x887a0005`); vkd3d logged a Vulkan timeline semaphore wait returning `VK_TIMEOUT`. The coherent window import check passed. | | Reference `8ff4b02e69ec` | Loading artwork, then a uniform screen. The last detailed frame was at ~118 s in the 15 fps recording. At 246.685 s the process exited with status 3. No radar identified. XCL confirmed that the coherent window used a 512 MB video-memory shadow. | The reference log contains 527 compute pipeline compile starts marked `driver blob absent`. We did not reproduce the author's full compute prewarm, so this cannot distinguish cache readiness from a rendering or synchronization issue. No individual commit can be credited from this comparison. Assisted by Codex (GPT-6.2 Astra). Warm replay on the same PR executable and options, with an independent copy of the preceding run's entire shader cache. Across 232 identical compute records that completed both times and switched from no driver blob to a supplied blob, median driver creation time fell from 3,003.5 ms to 1 ms. Across the full replay, 235 compute PSOs were successfully created with a supplied blob; 330 starts still lacked one. Last identifiable image was loading artwork, then a uniform screen; intro timing also differed. At 224.174 s XCL reported `0x80004005`, and vkd3d logged `VK_ERROR_DEVICE_LOST` on queue submit. The pending NVIDIA breadcrumb (top 38, bottom 37) brackets a `Dispatch(320,180,1)` with shader hash `7d1e95a171b6f27b`. Hashing the cached DXIL with the pinned vkd3d hash function matched XCL compute record `520a7d5cb893a9f7` (128,552 bytes). This identifies a point for comparison in another trace; a pending command alone does not establish the cause of device loss. Independent replay of the same warm cache seed on `8ff4b02e`, with the PR’s GPU timestamp profiler locally filtered to that record and group count plus one unrelated control. Both timestamp pairs resolved: the exact `520a7d5cb893a9f7` dispatch at `320×180×1` completed once in **0.3 ms**. At 228 s there were zero tracked pairs in flight, lost or out of order. At 232.107 s XCL reported `0x887a0005`; vkd3d logged a timeline wait returning `VK_TIMEOUT`, with `Dispatch(10,6,1)` between markers 46 and 47. Loading artwork remained the furthest identifiable image. This demonstrates that the previously pending shader can complete on the RTX 5080. Bindings and scheduling may differ across replays. Checked the exact revision cited in #2110 (`14d7a3c56cb8`, clean release) on the RTX 5080/Proton setup above with the same partial warm cache seed. Latest identifiable image was loading artwork, followed by a uniform screen; no visible radar or 3D world in this run. Compute pipeline starts: 235 with a supplied driver blob, 327 without. At 116.788 s XCL logged a compute queue wait for a direct queue producer, then at 117.791 s reported `0x887a0005`; vkd3d logged queue submission returning `VK_ERROR_DEVICE_LOST`. The pending breadcrumb spans `Dispatch(40,23,1)`. A wait of the same form appears late in both prior warm runs, but these logs do not establish the FIFO order or a causal cycle. No 2-second activity sample exceeded the 2,000-draw threshold used for the heavy scene in #2110. On the same `14d7a3c` base with the `2570d0a` sync trace and local timing around D3D12 Wait/Signal calls, the loading artwork again gave way to a uniform screen. At threshold `0x640` the compute queue waited on fence A, then signalled B. The direct queue signalled A **178.5 µs before** it called Wait on B. All four calls succeeded, used the same two fence objects, and ran on one thread without overlap. This rules out a mutual FIFO wait between those two operations in this run. It does not establish GPU completion or explain the subsequent `VK_ERROR_DEVICE_LOST` at about 116 s. Tested with Codex (GPT-6.2 Astra). **Opening credits confirmed on Linux / RTX 5080.** Tested integration `70a7e1d579d2c9083f5c3b9066a66429c3f9df21` with the #751 texture-read changes and the [guard compiler fallback](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7154503482). Same hardware, Proton, saved state, launch flags and independently copied shader-cache seed as above. With late render-target tracing enabled, readable writing credits appeared at about 297 s of runtime. On the same executable with that trace disabled and `XCL_RUN_SECONDS=420`, presented frame 1700 at 326.99 s shows character-art credits. The recording later shows illustrated art-direction credits, still without an identifiable playable scene. 1,871 PresentX calls at the 420 s limit. A 300 s observation window can miss this stage. These runs do not isolate a causal commit. Tested with Codex (GPT-6.2 Astra). **Warm-cache comparison on the same integration.** Reusing independent copies of the completed 420 s run’s cache, the original local driver stopped during illustrated loading. With only dxil-spirv #379 (`8a1a0565`) added to that driver, the recording showed “Vice City, Two Years Ago” and then “Rockstar Games Presents”. Both warm-cache runs stopped in the same compiler function before a playable scene (first exception at 113.95 s and 101.56 s respectively). One run per driver. The extra patch did not resolve this configuration’s failure, and the captures do not establish that it caused the difference in title cards. Tested with Codex (GPT-6.2 Astra). **Driver comparison on the same XCL executable and partial starting cache.** With the two D3D12 DLLs shipped in Proton Experimental bleeding-edge 11.0 (2026-11-23, vkd3d-proton 3.2.0 `cae8353ed7959c4`), the process exited with status 3 at 0.952 s; XCL reported 0 presents. The last D3D12 log line announced `ID3D12Heap1`. No specific failing call or assertion was established. With our local vkd3d-proton 3.1 pair (`4522cc1` plus patches), the matched 600 s run showed illustrated credits. The local pair also stopped during credits in another partial-cache run at 426.57 s in the same compiler function previously seen with a warmed cache. The earlier credit result therefore applies to the local graphics stack; the stock driver did not reach that stage here. One stock run; no claim about other Proton versions or XCL main. Tested with Codex (GPT-6.2 Astra). RTX 5080 / stock Proton Experimental: ported the runtime changes from 70a7e1d through 4df1e6e3d40a011501c046148b6aa470437aa2eb onto the local Wine integration (#867/#1395 and safe texture reads). Release executable SHA-256 2712e014ad1fc4fbf3149e92f00b52ceb9b854b2b6fe45495a4a46be20e26bd8. The focused deferred sparse mapping test passed on the real GPU in 1.06 s. Each title run used its own copy of the same partially warm cache, direct DXIL, heap windows, UMA shadow and a 600 s cap. - With XCL_COHERENT_HEAPS=sparse:16 and XCL_LOOK_SKIP=1, zero presents, first exception 0xc0000005 in d3d12core.dll+0x4b2350 at 3.432 s (previous integration: same offset at 3.413 s). - With both variables unset on the new binary, first PresentX at 3.248 s, 1,762 presents. Capture shows illustrated loading followed by black. First exception at the same offset at 205.820 s. No verified in-world frame. One run per profile, two settings varied together. Unlike this test, the Windows reference used prebuilt compute pipelines. Tested and reported with Codex (GPT-6.2 Astra). Partial warm-cache replay, same executable, stock driver, settings and input sequence as the 1,762-present run above, using a copy of its entire final cache. vkd3d mapped and parsed the read-only cache. Of 38 compute records matched by record and bytecode size, built once to completion in each run, with no XCL blob supplied the first time and one supplied the second time, median logged driver creation time fell from 561.5 ms to 0 ms (integer-ms resolution). This comparison includes all cache layers. Illustrated loading remained the furthest captured screen, 1,800 presents, first exception at 100.499 s in d3d12core.dll+0x28baa6. Only 39 of 176 logged compute starts had a blob supplied on replay; this is a partial warm cache, not a full compute precompile. Early-loading memory measurement under Proton Experimental on the RTX 5080 (620.73.04), using #2057 at 70a7e1d5 with local Wine heap/fence adaptations. We built vkd3d-proton 3.1 at 4522cc1 with dxil-spirv b540c8a2. Two synthetic triangle readbacks passed. In a separate tiled-buffer test, changing the backing of a 64 MiB buffer-only heap from DEFAULT to CUSTOM / WRITE_COMBINE / L0 moved 64 MiB of DXGI usage from local to non-local memory. GPU copies and readback at both ends matched after the fence in both cases. In the title, one Series X run per setting, same binary (891dcef5ddcc), cold caches and 9,763 / 9,761 MiB initially free. Both used single_queue,no_upload_hvv and disabled VK_NV_optical_flow. Only the placement of new sparse buffer pools changed. At 512 sparse submissions both runs logged 21,604 mapped tiles. The nearest process-group VRAM samples were 3,000 MiB with default placement and 2,004 MiB with L0, 0.08 s before and 0.21 s after that milestone, respectively. At the fifth arena allocation the samples were 3,956 and 2,709 MiB. The number of bytes already uploaded differed at the first comparison point. First PresentX was around 3.6 s in both. Both 17.25 s captures ended with a black game window when the 5,120 MiB free-VRAM guard stopped the run. No in-world FPS or movement measurement. AI assistance: OpenAI Codex (gpt-6.2-astra), local port, tests and report. **Follow-up on the later VRAM stop (RTX 5080 / Proton Experimental).** Once reserved texture pages were placed in system memory ([texture A/B](https://github.com/xcl-dev/xcl/pull/1702#issuecomment-7203495218)), the local #2057 integration reached the account picker and illustrated loading screens. It later hit the free-VRAM guard immediately after the return of two pipeline creations, with a 3,764 MiB increase in process-attributed VRAM. We isolated one of those compute pipelines, record `56c0cd3b82a00c6e`, using the 454,992-byte DXIL from that run, its compute root signature, vkd3d-proton 4522cc1 and dxil-spirv b540c8a2. Creating it alone reproduced **+3,764 MiB**. Its generated SPIR-V contains a private indexed table of 7,639 words. In a local diagnostic build we moved those exact words into a read-only buffer and redirected the two loads, preserving their indices and the shader's group and wave settings. Creation with this change measured **+4 MiB**. Both measurements used a fresh process and empty caches, with eight one-second samples before creation and eight while holding the PSO. Neither creation test dispatched the shader. A separate synthetic dispatch test using the same descriptor layout checked both reads at all 7,639 indices with two sets of contents. With the local title-side binding and guarded driver replacement, the integration displayed the illustrated loading screens, then black. It registered the target pipeline and checked the shared descriptor heap during dispatch recording. The process sample stayed at 2,890 MiB over creation and immediately after, where the earlier run went from 2,890 to 6,654 MiB. The test reached its configured 600-second limit with no memory guard stop. The last two-second window with a presentation ended at 118.174 s. No controllable world or in-world FPS verified. The synthetic readback checks the descriptor access pattern; dispatch recording in the title does not establish GPU completion. Local experimental adaptations on #2057, separate cold runs; input confirmation occurred earlier in the modified run. AI assistance: OpenAI Codex (gpt-6.2-astra), local ports, measurements and write-up. **Warm-cache follow-up on the same RTX 5080 integration.** We repeated the 600 s run using a verified private copy of all three caches. On matching returned calls (record, stage, DXIL size and occurrence), 188 compute pipelines went from no driver blob to a supplied blob, median creation time 1,433 to 27 ms. The corresponding 75 graphics pipelines went from 1,000 to 17 ms. The 454,992-byte compute pipeline discussed above went from 6,400 to 98 ms. The last two-second interval containing a presentation ended at 120.184 s warm and 118.174 s cold. Both captures show illustrated loading followed by black through the limit. Reusing these caches speeds up creation on this build. The cause of the subsequent loss of visible progress is still open. One run per setting; the three cache layers changed together. AI assistance: OpenAI Codex (gpt-6.2-astra), comparison and write-up. **Credits recovered on the RTX 5080 / Proton Experimental integration.** We restored the historical 250 ms compute bind budget. With four compiler workers the reference still went black, then exited at 211.535 s in the native D3D12 command-list submit. Its stack included the private sparse copy-back submission. The ordinary submit path already temporarily restores the list's native interface on Wine. We applied that existing guard to the private copy submit, following the [AMD/Wine report on #1993](https://github.com/xcl-dev/xcl/pull/1993#issuecomment-7171137667). A synthetic Wine test failed before the change and passed afterward, checking the list identity observed by the submit and its restoration on return. With the same driver, 250 ms budget, four workers and identical starting cache manifest, the corrected run resumed presenting at 206 s after the loading artwork went black. The video at 289.6 s shows a legible pink “Phil Hooker” credit. It recorded 52 later presentations before the unchanged memory guard stopped the process group at 28.01 GiB out of 32 GiB. The reference never resumed presentation after 120 s. One run on each binary. We have verified the return of credits on this integration; the actual completion of a particular title copy and a controllable 3D world remain unverified. AI assistance: OpenAI Codex (gpt-6.2-astra), local port, tests, measurements and write-up. **RTX 5080 / Proton Experimental, follow-up on the #2306 texture-level port to this #2057-based integration.** On a synthetic 1024×1024, 11-mip texture, committed target pages before the first upload went from 5,636,096 bytes to zero. GPU readback checked populated levels, zero reads from absent levels, aliasing, and a second partial write preserving untouched texels. One GPU test ran on hardware, plus eight targeted CPU tests. In Series X mode, just before the 65,536th DirectStorage request (about 92 s in both runs), XCL reported 4,350 MiB of target pages on the port versus 8,410 MiB on the baseline. DXGI local usage was 2,825 MiB in both samples. One run per side, samples at roughly two-second intervals, same input cache contents. The candidate used a private tmpfs copy of the NVIDIA cache. A small GPU calculation first reproduced the Vulkan device-creation failure outside the title and then passed with just this cache remounted in tmpfs, including with its original contents. The title also initialized the hardware device again in that setup. The candidate reached loading artwork and then flat green/gray frames before the free-VRAM guard stopped it at 235 s of capture (5,115 MiB free, 5,120 MiB threshold). The baseline previously showed the “Phil Hooker” credit at 289.6 s. This comparison establishes lower texture page usage during loading. Open-world rendering and movement on this configuration remain unverified. AI assistance: OpenAI Codex (gpt-6.2-astra), local integration, testing, measurements and write-up. RTX 5080 / Proton Experimental, Series X, same #2057-based binary with the #2306 texture port. We changed only the initial used-pipelines.txt, from 563 entries to the 1,258 recorded during our earlier run that displayed the Phil Hooker credit. The other 1,207 seed files matched. XCL reached 1,024 prebuilt pipelines at 5.604 s versus 22.785 s in the control. Of the 58 compute pipeline creations between the control's last loading presentations and its first resumed presentation, five matching creations had already finished by 110 s in the candidate (matched by type, record, size and occurrence). The capture still showed loading artwork followed by black. The free-VRAM guard stopped this run at 123 s of capture (4,122 MiB free, threshold 5,120), before the control's resumed presentation at about 210 s. One run per configuration. This verifies earlier preparation of some transition work. Whether it helps the next image or entry into the world is still open. AI assistance: OpenAI Codex (gpt-6.2-astra), test orchestration, trace comparison and write-up. RTX 5080 / Proton Experimental, offline follow-up for 19 compute pipelines observed during the black interval. All 19 title-generated VKB4 blobs are 112 bytes and carry the same state descriptor hash. Our #2057-based precompiler with its default node mask 0 reported zero cache loads. A local diagnostic build changing only the offline descriptor to mask 1 reported 19/19. The 1 KiB offline cap prevented a second, uncached creation on a miss. This tests the mismatch described in [#1368](https://github.com/xcl-dev/xcl/pull/1368) in the reverse direction, reading title-generated blobs offline. Holding that binary, the 19 shader records, translations, blobs, and a single driver worker fixed, the measured pass took 152.5 s with a fresh NVIDIA cache, 168.9 s with our previous credit run’s NVIDIA cache, and 3.9 s with only the NVIDIA cache saved from the 152.5 s offline pass. One fresh process per condition. XCL reported 19 cache loads each time (successful creation and matching returned blob size). That count alone does not tell us how much driver compilation was avoided. No title frames were measured in this comparison. AI assistance: OpenAI Codex (gpt-6.2-astra), local diagnostic, testing and write-up. Title follow-up on the unchanged Series X integration. We prewarmed those 19 compute pipelines on a private copy of the title's starting NVIDIA cache and transferred only that directory. Two of the 1,208 starting files differed from the previous run. The last legible credit in the capture was “Open World Writing / In Game Media” at 529 s, followed by a flat gray screen, then black at the timed shutdown. XCL reached its configured 600 s limit; the resource guard stayed green. No identifiable 3D world or commanded movement was observed. Six matched driver creations completed in both this run and the previous 1,258-key control, totaling 53.346 s versus 58.824 s of driver time. The control stopped at 123 s of capture on its free-VRAM guard, so it cannot establish what caused the later visual progress. With the earlier 563-key run, presentations resumed at 210 s versus 216 s here. One run per configuration. AI assistance: OpenAI Codex (gpt-6.2-astra), test orchestration, trace and video checks, write-up. Extended run on the same #2057-based integration with the #2306 texture port, RTX 5080, Proton Experimental, Series X. The binary, graphics DLLs, all 1,208 starting cache files and memory guard thresholds matched the 600 s run. We raised the title timeout to 1,200 s. The capture showed the “Producer / Rob Nelson” credit at 654 s and the “Move around / Move the camera” tutorial at 1,050 s. The tutorial remained visible for about 69 s over a featureless background. Forward and reverse keyboard inputs were held for about 4.6 s each. The five before/during/after screenshots matched pixel-for-pixel. We also sent opposite camera inputs. The prompt disappeared during the first, and the captured scene still had no identifiable geometry. This single run cannot establish what dismissed the prompt. XCL exited at its configured time limit with code 0. No visible world duration, commanded movement in a scene, or gameplay FPS could be established. The tutorial gives a timestamp for comparing scene rendering with UI composition on this configuration. AI assistance: OpenAI Codex (gpt-6.2-astra), local test orchestration, trace and video analysis, and write-up. Source-to-window check on the same RTX 5080 / Proton Series X integration. We enabled only XCL_FRAME_DUMP=4 and compared the first resource selected by PresentX (960 × 540 sampled pixels from a 3840 × 2160 texture) against the recorded XCL window. After calibrating the image alignment on three loading illustrations, we matched two credit cards: “Cinematic and Face Animation” (source frame 2579, video 442 s) and “Open World Writing” (2651, 532 s). Mean absolute luma differences were 0.69 and 0.58 on a 0–255 scale. All 518,400 sampled texels in each of the last seven source images then had the same value, 0x553a3432. The free-VRAM guard ended the run before the movement tutorial. The earlier run that reached the tutorial had created a prologue autosave. On a separate run with its complete private save state and otherwise identical settings, a file-access monitor recorded reads of the save data at 38.4 and 77.1 s. Loading artwork was still on screen when the same guard stopped this run. Whether resuming the save shortens the wait for the tutorial, and whether its background is already uniform in the source, remain open. AI assistance: OpenAI Codex (gpt-6.2-astra), local tests, source/window comparison and write-up.
DavidM1911 commented 2026-11-25 05:08:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T04:41:55Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main (multiple files: gpu/dxil/kernel.rs, gpu/recomp/*, hle/d3d12x/*, hle/dstorage.rs) — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7153082518 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7153082518). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:41:55Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** (multiple files: `gpu/dxil/kernel.rs`, `gpu/recomp/*`, `hle/d3d12x/*`, `hle/dstorage.rs`) — needs a rebase before it can be tested.
HKEY-Funk-Machine commented 2026-11-25 06:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by HKEY-Funk-Machine on 2026-11-25T05:19:00Z.


AMD RX 9070 follow-up: 0d25b89 (cache flushes as UAV barriers) gets this card further into the world load: 3 of 4 runs, against 0 of 6 without it, and once to the prologue's first title card.

Follow-up to my 7152473795 above. Same machine, warm caches, same settings: 8ff4b02 with 0d25b89 cherry-picked on top (its runtime part; the test hunk conflicted with the test module at 8ff4b02 and I left it out). One local change in xgameruntime/api.rs (start-up hang here; XCL_NO_PC_RUNTIME=1).

XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=360, nothing refused, the same exe name for every run (warm driver cache).

runs reach world loading (first ListX #101) dispatches before the end end
8ff4b02 6 4 of 6, at ~90 s 10 000–32 000 0x887a0006 at 120–154 s, ~30 s into the world load
8ff4b02 + 0d25b89 4 3 of 4, at 139–144 s ~30 000–33 000 in those three 0x887a0006 at 172–184 s in those three; the fourth hung at 108 s before world loading (2 048 dispatches, nothing skipped)
  • With 0d25b89 the menus hold 30 fps to ~3 000 frames (~1 800 without it), and the world load runs 30–45 s before the GPU stops, about 40 s more than without it.
  • In one of the four runs the prologue's first title card was on screen before the hang. In the other two that reached world loading it wasn't, although they did about as much work.
  • The hang is still there, so something else stops the GPU after that. On main, @madaraXor's RX 6700 XT got past it with 39f23deaf6a63310 and b78fa10b425b8e54 refused (#675 7152834098); I haven't combined that with this commit yet.

So on AMD this commit is worth its own PR. I'll test it there if you split it out.

Not tested: 0d25b89's unit test; this PR's new head 41303e4 (it changes the translator, so these caches would be cold); combined with the #675 refusals or #929; more runs.

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

<!-- greyfinch-sync:ivall/xcl:comment:7153653511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7153653511). Originally posted by [HKEY-Funk-Machine](https://github.com/HKEY-Funk-Machine) on 2026-11-25T05:19:00Z. --- **AMD RX 9070 follow-up: `0d25b89` (cache flushes as UAV barriers) gets this card further into the world load: 3 of 4 runs, against 0 of 6 without it, and once to the prologue's first title card.** Follow-up to my 7152473795 above. Same machine, warm caches, same settings: `8ff4b02` with `0d25b89` cherry-picked on top (its runtime part; the test hunk conflicted with the test module at `8ff4b02` and I left it out). One local change in `xgameruntime/api.rs` (start-up hang here; `XCL_NO_PC_RUNTIME=1`). `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=360`, nothing refused, the same exe name for every run (warm driver cache). | | runs | reach world loading (first `ListX #101`) | dispatches before the end | end | |---|---|---|---|---| | `8ff4b02` | 6 | 4 of 6, at ~90 s | 10 000–32 000 | `0x887a0006` at 120–154 s, ~30 s into the world load | | `8ff4b02` + `0d25b89` | 4 | **3 of 4**, at 139–144 s | ~30 000–33 000 in those three | `0x887a0006` at **172–184 s** in those three; the fourth hung at 108 s before world loading (2 048 dispatches, nothing skipped) | - With `0d25b89` the menus hold 30 fps to ~3 000 frames (~1 800 without it), and the world load runs 30–45 s before the GPU stops, about 40 s more than without it. - In one of the four runs the prologue's first title card was on screen before the hang. In the other two that reached world loading it wasn't, although they did about as much work. - The hang is still there, so something else stops the GPU after that. On `main`, @madaraXor's RX 6700 XT got past it with `39f23deaf6a63310` and `b78fa10b425b8e54` refused (#675 7152834098); I haven't combined that with this commit yet. So on AMD this commit is worth its own PR. I'll test it there if you split it out. **Not tested:** `0d25b89`'s unit test; this PR's new head `41303e4` (it changes the translator, so these caches would be cold); combined with the #675 refusals or #929; more runs. AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs, and wrote this comment.
ettehn commented 2026-11-25 06:05:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ettehn on 2026-11-25T05:37:47Z.


Independent Windows unit-test results on clean 41303e41661f0dc741737f8a59d328892fdd772c (Windows 11 25H2 build 26200.9974, Ryzen 9 8945HX, Rust 1.97.1 MSVC, debug):

cargo test --offline -j 2 -p xcl --lib filter Passed Failed Ignored
auto_submit_disabled 2 0 0
a_destination_page_rewritten_after_enqueue 1 0 0
cache_flushes_are_uav_barriers 1 0 0

All three commands used -- --test-threads=1. The page-list test exercised the late reread and confirmed that the destination received all 256 bytes while the old page retained its sentinel. The queue tests covered explicit submit, the automatic-submit control, and an enqueue blocked until Submit or Close.

I also applied just 0d25b89 to main at 6020a33. The only patch conflict was the test insertion context in list_x.rs. After relocating that test and adding a slot-table check for old/new slot 69, new slot 71, and slots 131/132, the cache_flush filter passed 2/2.

These are targeted unit tests. GPU execution, a retail run, and the full suite are untested here.

Verification assisted by OpenAI Codex (GPT-6).

Follow-up: DirectStorage on current main with both fixes. On the same Windows setup, I applied #1405 at bb27ed6 and #1599 at 5b1518f together to main at 6020a33. cargo test --offline -j 2 -p xcl --lib hle::dstorage:: -- --test-threads=1 reported 33 passed, 0 failed, 0 ignored in each of two runs (XCL_DSTORAGE_PARALLEL_DECOMPRESS=0 and =1). XCL_SAMPLE_BCPACK was unset, so these runs did not cover retail BCPack streams.

The updated #1405 test exercised both cases: a persistent page list was reread at execution, while a stack-backed list kept its enqueue-time snapshot even after it was rewritten to name another allocated page. The 41303e4 tests above cover the persistent-list case. That revision lacks the newer stack-list check, and applying bb27ed6 directly to it conflicts in dstorage.rs. This follow-up used synthetic requests only.

Windows follow-up on f7e08e6. I compared the clean head with a local adaptation of #751 (copy non-coherent texture reads) and #1527 (unregister tracked textures before the last release). The adaptation keeps this head’s delayed-release path.

On the same Windows/Rust setup, cargo test --locked --offline -j 2 -p xcl --lib <filter> -- --test-threads=1 passed 7/7 on each tree. This covered DirectStorage auto-submit and page-list reread, cache-flush barriers, and texture uploads (missing pages, written-page tracking, and buffer growth). The candidate also passed 5/5 focused tests for safe reads, concurrent decommit, tracked release, and upload batching. Both Release builds succeeded and their three shader translation source IDs matched.

Coverage is CPU-only. Retail execution, GPU behavior, and cache hits remain untested. Verification assisted by OpenAI Codex (GPT-6).

<!-- greyfinch-sync:ivall/xcl:comment:7153977066 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7153977066). Originally posted by [ettehn](https://github.com/ettehn) on 2026-11-25T05:37:47Z. --- Independent Windows unit-test results on clean `41303e41661f0dc741737f8a59d328892fdd772c` (Windows 11 25H2 build 26200.9974, Ryzen 9 8945HX, Rust 1.97.1 MSVC, debug): | `cargo test --offline -j 2 -p xcl --lib` filter | Passed | Failed | Ignored | | --- | ---: | ---: | ---: | | `auto_submit_disabled` | 2 | 0 | 0 | | `a_destination_page_rewritten_after_enqueue` | 1 | 0 | 0 | | `cache_flushes_are_uav_barriers` | 1 | 0 | 0 | All three commands used `-- --test-threads=1`. The page-list test exercised the late reread and confirmed that the destination received all 256 bytes while the old page retained its sentinel. The queue tests covered explicit submit, the automatic-submit control, and an enqueue blocked until Submit or Close. I also applied just `0d25b89` to `main` at `6020a33`. The only patch conflict was the test insertion context in `list_x.rs`. After relocating that test and adding a slot-table check for old/new slot 69, new slot 71, and slots 131/132, the `cache_flush` filter passed 2/2. These are targeted unit tests. GPU execution, a retail run, and the full suite are untested here. Verification assisted by OpenAI Codex (GPT-6). **Follow-up: DirectStorage on current `main` with both fixes.** On the same Windows setup, I applied #1405 at `bb27ed6` and #1599 at `5b1518f` together to `main` at `6020a33`. `cargo test --offline -j 2 -p xcl --lib hle::dstorage:: -- --test-threads=1` reported **33 passed, 0 failed, 0 ignored** in each of two runs (`XCL_DSTORAGE_PARALLEL_DECOMPRESS=0` and `=1`). `XCL_SAMPLE_BCPACK` was unset, so these runs did not cover retail BCPack streams. The updated #1405 test exercised both cases: a persistent page list was reread at execution, while a stack-backed list kept its enqueue-time snapshot even after it was rewritten to name another allocated page. The `41303e4` tests above cover the persistent-list case. That revision lacks the newer stack-list check, and applying `bb27ed6` directly to it conflicts in `dstorage.rs`. This follow-up used synthetic requests only. **Windows follow-up on `f7e08e6`.** I compared the clean head with a local adaptation of #751 (copy non-coherent texture reads) and #1527 (unregister tracked textures before the last release). The adaptation keeps this head’s delayed-release path. On the same Windows/Rust setup, `cargo test --locked --offline -j 2 -p xcl --lib <filter> -- --test-threads=1` passed **7/7 on each tree**. This covered DirectStorage auto-submit and page-list reread, cache-flush barriers, and texture uploads (missing pages, written-page tracking, and buffer growth). The candidate also passed **5/5** focused tests for safe reads, concurrent decommit, tracked release, and upload batching. Both Release builds succeeded and their three shader translation source IDs matched. Coverage is CPU-only. Retail execution, GPU behavior, and cache hits remain untested. Verification assisted by OpenAI Codex (GPT-6).
Alm0stSurely commented 2026-11-25 06:06:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Alm0stSurely on 2026-11-25T05:44:41Z.


Retail-run follow-up to the cache-flush unit test above. On RTX 5080 / 620.73.04, Arch Linux, Ryzen 9 9950X3D, Proton Experimental and patched vkd3d-proton 3.1 (4522cc1), I compared 14d7a3c + #751 (59f8e7c) with the same build plus just 0d25b89. I relocated the upstream test to fit that base and added one log at the first eligible range flush. cache_flushes_are_uav_barriers passed under Proton.

The control's report recorded 9 calls to stub #131 and 5 to #132. The patched run took the nonempty range-flush path on a direct or compute list at 0.752 s. Both captures reached the loading illustration, followed by a uniform screen. Both ended with VK_ERROR_DEVICE_LOST on queue submission / 0x887a0005 (control 119.571 s, patched 115.432 s). One run per build. This confirms these handlers are exercised here; adding them alone did not advance the visible stage on this setup.

Same 300 s launch limit, separate copies of the same partial cache seed, XCL_DIRECT_DXIL=1, XCL_HEAP_WINDOWS=1, XCL_UMA_SHADOW=1, XCL_PSO_WAIT_MS=250, VKD3D_CONFIG=ignore_shared_fence. AI assistance: Codex (GPT-6.2 Astra).

Updated integration run on the same RTX 5080: 41303e41661f0dc741737f8a59d328892fdd772c + #751, same launch settings and initial cache files. The older guarded base lost the device at 119.571 s. The updated build reached its 300 s test limit, with 1,702 PresentX calls and no logged device removal. Presents resumed around 226 s (14 across the five 2 s windows ending at 226–234 s). The capture remained uniform during that burst; no HUD or 3D scene was confirmed. GPU fences were still pending during shutdown. One run, multiple integration changes, partial caches.

At 92.226 s the ExecuteIndirect guard reported that its program did not compile. I independently passed the unmodified string returned by indirect_guard::program() to Proton's d3dcompiler_47!D3DCompile (main, cs_5_0, flags 0), outside the title. Result: 0x80004005, E5005: Method 'Load3' is not defined on type 'RWByteAddressBuffer'. Substituting three scalar loads gave the same diagnostic for Load. This identifies why the guard was unavailable on this setup; the cause of the uniform output remains open. Same Codex (GPT-6.2 Astra) assistance.

<!-- greyfinch-sync:ivall/xcl:comment:7154097279 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7154097279). Originally posted by [Alm0stSurely](https://github.com/Alm0stSurely) on 2026-11-25T05:44:41Z. --- Retail-run follow-up to the cache-flush unit test above. On RTX 5080 / 620.73.04, Arch Linux, Ryzen 9 9950X3D, Proton Experimental and patched vkd3d-proton 3.1 (`4522cc1`), I compared `14d7a3c` + #751 (`59f8e7c`) with the same build plus just `0d25b89`. I relocated the upstream test to fit that base and added one log at the first eligible range flush. `cache_flushes_are_uav_barriers` passed under Proton. The control's report recorded 9 calls to stub #131 and 5 to #132. The patched run took the nonempty range-flush path on a direct or compute list at 0.752 s. Both captures reached the loading illustration, followed by a uniform screen. Both ended with `VK_ERROR_DEVICE_LOST` on queue submission / `0x887a0005` (control 119.571 s, patched 115.432 s). One run per build. This confirms these handlers are exercised here; adding them alone did not advance the visible stage on this setup. Same 300 s launch limit, separate copies of the same partial cache seed, `XCL_DIRECT_DXIL=1`, `XCL_HEAP_WINDOWS=1`, `XCL_UMA_SHADOW=1`, `XCL_PSO_WAIT_MS=250`, `VKD3D_CONFIG=ignore_shared_fence`. AI assistance: Codex (GPT-6.2 Astra). **Updated integration run on the same RTX 5080:** `41303e41661f0dc741737f8a59d328892fdd772c` + #751, same launch settings and initial cache files. The older guarded base lost the device at 119.571 s. The updated build reached its 300 s test limit, with 1,702 PresentX calls and no logged device removal. Presents resumed around 226 s (14 across the five 2 s windows ending at 226–234 s). The capture remained uniform during that burst; no HUD or 3D scene was confirmed. GPU fences were still pending during shutdown. One run, multiple integration changes, partial caches. At 92.226 s the `ExecuteIndirect` guard reported that its program did not compile. I independently passed the unmodified string returned by `indirect_guard::program()` to Proton's `d3dcompiler_47!D3DCompile` (`main`, `cs_5_0`, flags 0), outside the title. Result: `0x80004005`, `E5005: Method 'Load3' is not defined on type 'RWByteAddressBuffer'`. Substituting three scalar loads gave the same diagnostic for `Load`. This identifies why the guard was unavailable on this setup; the cause of the uniform output remains open. Same Codex (GPT-6.2 Astra) assistance.
Anon64 commented 2026-11-25 06:06:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T05:46:57Z.


A run of this branch on a 12 GB card: it reaches the world here too, slower.

Setup: RTX 3060 12 GB (581.80, wave32), Ryzen (24 cores / 32 threads), 64 GB RAM, Windows 11 26200. Head 41303e4, release. XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_NETWORK=0, A pressed every 4 s.

Caches: xcl shaders <pack> --precompile --only cs --pipelines with your XCL_PRECOMPILE_SLICE=i/12 in 12 processes: all 2,689 compute pipelines built, 0 errors, 0 refused, in 23 min (slowest slice 1,373 s); the NVIDIA cache grew 8.1 GB. Then, in the title:

  • Run 1 (300 s): all 231 huge compute builds came from the driver cache (driver blob supplied, 50 s in all, none over 1 s). Presents stop at ~86 s, and the title waits on graphics pipelines built cold: 3–4 s each, 81 in the run. No crash, no device removal, no GPU-wait timeout.
  • Run 2 (450 s, same caches plus what run 1 built): graphics builds fall from 101 in the first 100 s to 25, 7, 1, 2 in the following 100 s windows. Presents come back at ~200 s and go on until ~338 s at 1–8 per 2 s (about 2–3 fps), with up to 3,205 draws and 15,764 dispatches per 2 s. Then presents stop with nothing logged: no wait timeout, no crash, hardly any builds. Peak commit 39.3 GB, no device removal.

On main this card stops at a GPU wait chain (q0 / q1 waiting on q2, see #1123). With this branch no GPU-wait timeout was logged in either run, so the per-queue copy-back fences (1225bb9, 5e3c657) look like they matter here.

Also noticed: some flicker in the intro sequence that the user of this machine did not see on main. I'd guess the XCL_WATCH_HOT part ("a write to a block that was idle reaches video memory up to about 20 ms late"), but I haven't run with XCL_WATCH_HOT=0 yet.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

Update, two more runs on the same caches:

  • Run 3 (XCL_WATCH_HOT=0): crashed at 93.3 s in title_textures::subresources (memcpy read at 0xce8bf8000). That is the detile race of #1359 / #751, which main has too, so one crash does not tie it to the setting.
  • Run 4 (default XCL_WATCH_HOT, 540 s): presents at 3–8 per 2 s from ~60 to ~104 s, a gap, then without a break from ~358 s to 458 s. At 458.3 s the device is removed (0x887a0005, "The GPU device instance has been suspended"), followed by the title's +0x2474606 int3 of #1508. 169 graphics pipelines were built cold in the run, peak commit 39.4 GB. This is the first device removal with this branch on this card; I have no DRED for it (XCL_DRED was not set).
  • Run 5 (run 4 again with XCL_DRED=1): presents from ~60 s until just before 238.3 s, then the same device removal (0x887a0005). DRED reports a page fault at GPU VA 0x0, with no allocation there and none recently freed, so a shader or command read or wrote through a null GPU address rather than timing out. The log has no breadcrumbs for it.
<!-- greyfinch-sync:ivall/xcl:comment:7154133293 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7154133293). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-25T05:46:57Z. --- A run of this branch on a 12 GB card: it reaches the world here too, slower. **Setup:** RTX 3060 12 GB (581.80, wave32), Ryzen (24 cores / 32 threads), 64 GB RAM, Windows 11 26200. Head `41303e4`, release. `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_NETWORK=0`, A pressed every 4 s. **Caches:** `xcl shaders <pack> --precompile --only cs --pipelines` with your `XCL_PRECOMPILE_SLICE=i/12` in 12 processes: all 2,689 compute pipelines built, 0 errors, 0 refused, in **23 min** (slowest slice 1,373 s); the NVIDIA cache grew 8.1 GB. Then, in the title: - **Run 1 (300 s):** all 231 huge compute builds came from the driver cache (`driver blob supplied`, 50 s in all, none over 1 s). Presents stop at ~86 s, and the title waits on graphics pipelines built cold: 3–4 s each, 81 in the run. No crash, no device removal, no GPU-wait timeout. - **Run 2 (450 s, same caches plus what run 1 built):** graphics builds fall from 101 in the first 100 s to 25, 7, 1, 2 in the following 100 s windows. **Presents come back at ~200 s and go on until ~338 s at 1–8 per 2 s** (about 2–3 fps), with up to 3,205 draws and 15,764 dispatches per 2 s. Then presents stop with nothing logged: no wait timeout, no crash, hardly any builds. Peak commit 39.3 GB, no device removal. On `main` this card stops at a GPU wait chain (q0 / q1 waiting on q2, see #1123). With this branch no GPU-wait timeout was logged in either run, so the per-queue copy-back fences (`1225bb9`, `5e3c657`) look like they matter here. **Also noticed:** some flicker in the intro sequence that the user of this machine did not see on `main`. I'd guess the `XCL_WATCH_HOT` part ("a write to a block that was idle reaches video memory up to about 20 ms late"), but I haven't run with `XCL_WATCH_HOT=0` yet. Written with Claude Code (Claude Opus 5.5) from runs on this machine. **Update, two more runs on the same caches:** - **Run 3** (`XCL_WATCH_HOT=0`): crashed at 93.3 s in `title_textures::subresources` (memcpy read at `0xce8bf8000`). That is the detile race of #1359 / #751, which `main` has too, so one crash does not tie it to the setting. - **Run 4** (default `XCL_WATCH_HOT`, 540 s): presents at 3–8 per 2 s from ~60 to ~104 s, a gap, then **without a break from ~358 s to 458 s**. At **458.3 s the device is removed (`0x887a0005`, "The GPU device instance has been suspended")**, followed by the title's `+0x2474606` int3 of #1508. 169 graphics pipelines were built cold in the run, peak commit 39.4 GB. This is the first device removal with this branch on this card; I have no DRED for it (`XCL_DRED` was not set). - **Run 5** (run 4 again with `XCL_DRED=1`): presents from ~60 s until just before **238.3 s**, then the same device removal (`0x887a0005`). DRED reports a **page fault at GPU VA `0x0`, with no allocation there and none recently freed**, so a shader or command read or wrote through a null GPU address rather than timing out. The log has no breadcrumbs for it.
Alm0stSurely commented 2026-11-25 07:05:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Alm0stSurely on 2026-11-25T06:09:38Z.


Tested a fix for the Proton ExecuteIndirect guard compilation failure on 41303e41661f0dc741737f8a59d328892fdd772c: keep D3DCompile as the first choice, then use XCL's DXC compiler with cs_6_0 if it returns no bytecode. The HLSL stays identical.

On RTX 5080 (620.73.04), Arch Linux / Proton Experimental, the existing draw-argument GPU test failed at expect("checked") on the unmodified head. With the patch both an_execute_indirect_with_garbage_counts_draws_nothing and an_execute_indirect_with_garbage_counts_runs_no_groups passed (no skips, DXC 1.9.2609.5). The first reads back the guarded draw arguments. The second executes indirect dispatches and verifies how many groups ran.

Matched 300 s retail replay with #751 and the same partial cache seed and settings as the previous report: the guard compilation warning disappeared, 1,748 PresentX calls, exit 0. The capture still showed loading artwork followed by a uniform screen. No out-of-range count was reported in this run. No full-suite or native Windows run.

Patch against this integration head
diff --git a/crates/xcl/src/hle/d3d12x/indirect_guard.rs b/crates/xcl/src/hle/d3d12x/indirect_guard.rs
index d76321e..57e8777 100644
--- a/crates/xcl/src/hle/d3d12x/indirect_guard.rs
+++ b/crates/xcl/src/hle/d3d12x/indirect_guard.rs
@@ -210,11 +210,17 @@ unsafe fn guard_of(list: &ID3D12GraphicsCommandList) -> Option<Arc<Guard>> {
     }
 }
 
-unsafe fn make(dev: &ID3D12Device) -> Result<Guard, String> {
-    let cs = real::compile(&program(), "cs_5_0");
-    if cs.is_empty() {
-        return Err("its program does not compile".into());
+fn compile_compute(src: &str) -> Result<Vec<u8>, String> {
+    let cs = real::compile(src, "cs_5_0");
+    if !cs.is_empty() {
+        return Ok(cs);
     }
+    crate::gpu::recomp::dxc::compile(src, "main", "cs_6_0", &[])
+        .map_err(|e| format!("compute shader compilation failed with D3DCompile and DXC: {e}"))
+}
+
+unsafe fn make(dev: &ID3D12Device) -> Result<Guard, String> {
+    let cs = compile_compute(&program())?;
     let root = |ty, anonymous| D3D12_ROOT_PARAMETER { ParameterType: ty, Anonymous: anonymous, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL };
     let uav = |k| root(D3D12_ROOT_PARAMETER_TYPE_UAV, D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: k, RegisterSpace: 0 } });
     let params = [
@@ -507,8 +513,7 @@ void main() { c.InterlockedAdd(0, 1u); }
         unsafe {
             let _one = ONE.lock().unwrap_or_else(|e| e.into_inner());
             let Some(dev) = device() else { return };
-            let cs = real::compile(src, "cs_5_0");
-            assert!(!cs.is_empty());
+            let cs = compile_compute(src).expect("compile the dispatch counter");
             let param = D3D12_ROOT_PARAMETER {
                 ParameterType: D3D12_ROOT_PARAMETER_TYPE_UAV,
                 Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 0, RegisterSpace: 0 } },

AI assistance: Codex (GPT-6.2 Astra) wrote the fallback, ran the builds and tests, and checked the capture.

<!-- greyfinch-sync:ivall/xcl:comment:7154503482 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7154503482). Originally posted by [Alm0stSurely](https://github.com/Alm0stSurely) on 2026-11-25T06:09:38Z. --- Tested a fix for the Proton `ExecuteIndirect` guard compilation failure on `41303e41661f0dc741737f8a59d328892fdd772c`: keep `D3DCompile` as the first choice, then use XCL's DXC compiler with `cs_6_0` if it returns no bytecode. The HLSL stays identical. On RTX 5080 (620.73.04), Arch Linux / Proton Experimental, the existing draw-argument GPU test failed at `expect("checked")` on the unmodified head. With the patch both `an_execute_indirect_with_garbage_counts_draws_nothing` and `an_execute_indirect_with_garbage_counts_runs_no_groups` passed (no skips, DXC 1.9.2609.5). The first reads back the guarded draw arguments. The second executes indirect dispatches and verifies how many groups ran. Matched 300 s retail replay with #751 and the same partial cache seed and settings as the previous report: the guard compilation warning disappeared, 1,748 PresentX calls, exit 0. The capture still showed loading artwork followed by a uniform screen. No out-of-range count was reported in this run. No full-suite or native Windows run. <details><summary>Patch against this integration head</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/indirect_guard.rs b/crates/xcl/src/hle/d3d12x/indirect_guard.rs index d76321e..57e8777 100644 --- a/crates/xcl/src/hle/d3d12x/indirect_guard.rs +++ b/crates/xcl/src/hle/d3d12x/indirect_guard.rs @@ -210,11 +210,17 @@ unsafe fn guard_of(list: &ID3D12GraphicsCommandList) -> Option<Arc<Guard>> { } } -unsafe fn make(dev: &ID3D12Device) -> Result<Guard, String> { - let cs = real::compile(&program(), "cs_5_0"); - if cs.is_empty() { - return Err("its program does not compile".into()); +fn compile_compute(src: &str) -> Result<Vec<u8>, String> { + let cs = real::compile(src, "cs_5_0"); + if !cs.is_empty() { + return Ok(cs); } + crate::gpu::recomp::dxc::compile(src, "main", "cs_6_0", &[]) + .map_err(|e| format!("compute shader compilation failed with D3DCompile and DXC: {e}")) +} + +unsafe fn make(dev: &ID3D12Device) -> Result<Guard, String> { + let cs = compile_compute(&program())?; let root = |ty, anonymous| D3D12_ROOT_PARAMETER { ParameterType: ty, Anonymous: anonymous, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL }; let uav = |k| root(D3D12_ROOT_PARAMETER_TYPE_UAV, D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: k, RegisterSpace: 0 } }); let params = [ @@ -507,8 +513,7 @@ void main() { c.InterlockedAdd(0, 1u); } unsafe { let _one = ONE.lock().unwrap_or_else(|e| e.into_inner()); let Some(dev) = device() else { return }; - let cs = real::compile(src, "cs_5_0"); - assert!(!cs.is_empty()); + let cs = compile_compute(src).expect("compile the dispatch counter"); let param = D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_UAV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 0, RegisterSpace: 0 } }, ``` </details> AI assistance: Codex (GPT-6.2 Astra) wrote the fallback, ran the builds and tests, and checked the capture.
joeypercia commented 2026-11-25 08:08:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-25T07:08:05Z.


RTX 4070 Ti 12 GB on this branch: on driver 616.56 the first world-load run blue-screened the whole PC (bugcheck 0x13A, KERNEL_MODE_HEAP_CORRUPTION); on 621.40 the same runs end in a device removal instead. With caches filled it reaches the world, which is flat grey, then the device goes at 119–135 s.

Setup: RTX 4070 Ti 12 GB (32-lane waves), Ryzen 7 7800X3D, 32 GB RAM + 64–96 GB page file, Windows 11 Pro 26200, Rust 1.100.0, release. Heads 41303e4 and f7e08e6, unchanged. XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_NETWORK=0, scripted A presses, XCL_FRAME_DUMP=90.

  • Caches: your XCL_PRECOMPILE_SLICE=i/4 (4 processes, XCL_DXC_THREADS=3) built all 2,689 compute pipelines in 21 min, 0 errors, 0 refused, free commit never under 54 GB. After the driver update all of them had to be built again (same 21 min): the old driver's blobs are not reused.
  • Driver 616.56, one run (41303e4): 444 of 450 compute builds from the cache; 2,700 frames by 127 s at 10–17 fps after the presses; at ~211 s the PC blue-screened, bugcheck 0x13A (0x12, …), no dump written. Free commit was 26 GB at the time. One occurrence, so I can't say it always happens, but anyone on a pre-620 NVIDIA driver may want to update before running this branch.
  • Driver 621.40, 5 runs:
    • First run (graphics pipelines cold): about 230 graphics builds between 90 and 375 s (~1 per second) on the loading artwork, then 0x887a0005 at 375 s.
    • Warm rerun (41303e4): 447 of 469 builds from the cache; the loading artwork fades out to a flat dark-grey frame (the in-world grey you describe), ~2.5 fps, 0x887a0005 at 173 s.
    • f7e08e6, three runs: 0x887a0005 at 127, 135 and 119 s, each just as the loading artwork fades. Local video memory before the removal: 19.4 GB with XCL_UMA_SHADOW=1; without it the peak is 14.8 GB but the removal comes at 119 s all the same. No nvlddmkm event in the System log for these removals (there is one for each 0x887a0006 hang below), and GetDeviceRemovedReason gives 0x887a0005 itself. With XCL_GPU_PROFILE=1, the op still running 0.8 s before one of them was CS 1b5466f261a70cde (8x8x1, split wave64, 160x90 groups), the slow program already listed on #505; one sample.
  • #541 on 41303e4: its 40 AS-slot mesh pipelines are translated instead of refused, but this tree never runs a two-pass pipeline (they reach execute_indirect's PC path with the title's root signature): XCL_GPU_PROFILE shows ExecuteIndirect with a PC pipeline … RUNNING for 7774 ms, then 0x887a0006 (2 of 2 runs, before the world). With #2092 merged on top as well, two-pass ExecuteIndirect(DispatchMesh) runs (past #16,384) and the first run had no hang; its warm rerun hung (0x887a0006) at 128 s as the load faded, with nothing named. #2092 does not merge cleanly on f7e08e6 (the sharded list state in bind.rs), so I have not run it there.

So on a 12 GB card this branch gets into the world, but the run ends at world load in the same way @mgrein's RTX 4070 runs in #1773 do.

Not tested: more than one run of the 616.56 crash; f7e08e6 with #541 + #2092; XCL_WATCH_HOT=0; graphics pipelines across a third warm run.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on this machine, read the logs and frame dumps, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7155524756 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7155524756). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-25T07:08:05Z. --- **RTX 4070 Ti 12 GB on this branch: on driver 616.56 the first world-load run blue-screened the whole PC (bugcheck `0x13A`, `KERNEL_MODE_HEAP_CORRUPTION`); on 621.40 the same runs end in a device removal instead. With caches filled it reaches the world, which is flat grey, then the device goes at 119–135 s.** **Setup:** RTX 4070 Ti 12 GB (32-lane waves), Ryzen 7 7800X3D, 32 GB RAM + 64–96 GB page file, Windows 11 Pro 26200, Rust 1.100.0, release. Heads `41303e4` and `f7e08e6`, unchanged. `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_NETWORK=0`, scripted A presses, `XCL_FRAME_DUMP=90`. - **Caches:** your `XCL_PRECOMPILE_SLICE=i/4` (4 processes, `XCL_DXC_THREADS=3`) built all 2,689 compute pipelines in 21 min, 0 errors, 0 refused, free commit never under 54 GB. After the driver update all of them had to be built again (same 21 min): the old driver's blobs are not reused. - **Driver 616.56, one run (`41303e4`):** 444 of 450 compute builds from the cache; 2,700 frames by 127 s at 10–17 fps after the presses; at ~211 s the PC blue-screened, bugcheck `0x13A` (`0x12, …`), no dump written. Free commit was 26 GB at the time. One occurrence, so I can't say it always happens, but anyone on a pre-620 NVIDIA driver may want to update before running this branch. - **Driver 621.40, 5 runs:** - First run (graphics pipelines cold): about 230 graphics builds between 90 and 375 s (~1 per second) on the loading artwork, then `0x887a0005` at 375 s. - Warm rerun (`41303e4`): 447 of 469 builds from the cache; the loading artwork fades out to a **flat dark-grey frame** (the in-world grey you describe), ~2.5 fps, `0x887a0005` at 173 s. - `f7e08e6`, three runs: `0x887a0005` at 127, 135 and 119 s, each just as the loading artwork fades. Local video memory before the removal: **19.4 GB** with `XCL_UMA_SHADOW=1`; without it the peak is **14.8 GB** but the removal comes at 119 s all the same. No `nvlddmkm` event in the System log for these removals (there is one for each `0x887a0006` hang below), and `GetDeviceRemovedReason` gives `0x887a0005` itself. With `XCL_GPU_PROFILE=1`, the op still running 0.8 s before one of them was `CS 1b5466f261a70cde` (8x8x1, split wave64, 160x90 groups), the slow program already listed on #505; one sample. - **#541 on `41303e4`:** its 40 AS-slot mesh pipelines are translated instead of refused, but this tree never runs a two-pass pipeline (they reach `execute_indirect`'s PC path with the title's root signature): `XCL_GPU_PROFILE` shows `ExecuteIndirect with a PC pipeline … RUNNING for 7774 ms`, then `0x887a0006` (2 of 2 runs, before the world). With #2092 merged on top as well, two-pass `ExecuteIndirect(DispatchMesh)` runs (past #16,384) and the first run had no hang; its warm rerun hung (`0x887a0006`) at 128 s as the load faded, with nothing named. #2092 does not merge cleanly on `f7e08e6` (the sharded list state in `bind.rs`), so I have not run it there. So on a 12 GB card this branch gets into the world, but the run ends at world load in the same way @mgrein's RTX 4070 runs in #1773 do. **Not tested:** more than one run of the 616.56 crash; `f7e08e6` with #541 + #2092; `XCL_WATCH_HOT=0`; graphics pipelines across a third warm run. AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on this machine, read the logs and frame dumps, and wrote this report.
tiagonleal commented 2026-11-25 08:08:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T07:27:50Z.


RTX 5070 Ti 16 GB / 32 GB RAM: this tree reaches the world of the Newer Retail Game in 67–94 s. Free physical memory then runs out 15–30 s later in every run where the world keeps rendering.

Setup

  • NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM (31.4 GB visible; about 21.6 GB free with no game running), Windows 11 Pro 10.0.26300, Rust 1.100.0, release.
  • Tree: this PR at f7e08e6 plus two local commits that are not published anywhere. Both are off unless their variable is set:
    • XCL_EXP_WAIT_SUBMITTED=1: the GPU-wait watchdog does not release on the CPU a wait whose Signal is already submitted. It was on in every game run below, but it never acted: 0 holds were logged, and nothing was released on the CPU.
    • XCL_EXP_APU_MAP1=1: ApuMapVirtualAddress is taken in its one-argument form. It was on in every game run; it handled 13–14 calls per run in runs 2–4 and none in run 1.
  • No other change: the translator and everything else are as in f7e08e6. The translator sources and TRANSLATOR_VERSION (10) are identical to 41303e4.
  • Tests on this tree: cargo test --release -p xcl --lib -- d3d12x::list_x d3d12x::fence_x d3d12x::sparse hle::acphal gpu::fence.
    • With --test-threads=1: 68 passed, 0 failed, 1 ignored.
    • Run in parallel, the test process hangs. Six sync/GPU tests report "running for over 60 seconds" with about 1 s of CPU, and I killed it at 120 s. Pure f7e08e6 hangs the same way:
      • list_x::tests::cross_queue_cycle_and_same_queue_fifo_do_not_deadlock
      • cross_queue_wait64_before_signal_does_not_deadlock_submit_thread
      • mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares
      • write_buffer_immediate_on_open_existing_heap_visible_to_cpu
      • sparse::tests::a_copy_back_does_not_wait_for_the_title_queue
      • small_runs_go_up_in_dispatches_and_leave_what_lies_between
    • At 41303e4 the same filter passed in parallel (67 passed, 0 failed, 1 ignored).

Caches

  • Compute pipelines were precompiled with this PR's tool: xcl shaders <pack> --precompile --only cs --pipelines, first with --used-only (the used list came from earlier runs), with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1.
    • One process, no XCL_PRECOMPILE_SLICE, XCL_DXC_THREADS=4, XCL_PIPELINE_THREADS 1 and then 2.
    • 64 min in total, 1,321 driver blobs. These cover all 912 compute programs of the used set, plus about 409 of the other 1,777.
    • 0 refused, 0 DXC errors. Peak working set 5.9 GB (private 1.8 GB), minimum free RAM 14.8 GB, peak system commit 19.2 GB.
    • With one pipeline thread the pass was bound by the driver compile (one core busy).
    • The slowest driver compiles took 95, 82 and 73 s, for 3.3, 1.7 and 1.5 MB of DXIL.
  • In the game the compute cache applies: 912–922 compute pipelines came from the driver's blob of an earlier run, and 27–37 were compiled.
  • Graphics pipelines are not covered. --precompile only runs DXC on VS/PS, and --pipelines builds compute pipelines only, so the graphics cache warms up only in-game. The window title showed compiling shaders: 4 running … 36255 pipelines queued. Graphics PSOs compiled in-game, at 2–3.7 s each, gated:
    run graphics PSOs compiled in-game driver-cache files after the run
    (before the runs) – 1,399
    run 3 111 1,583
    run 4 130 1,614

Runs

  • xcl.exe run <title>, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_ACTIVITY=1, A pressed at 30 s, plus the two local switches above. No XCL_DRED, no XCL_PSO_WAIT_MS.
  • A memory guard ran next to the game. It kills xcl.exe when free physical memory drops below 1.0 GB; that is what ended runs 1, 2 and 4.
  • "World" below is the first ID3D12GraphicsCommandList10::#101 call.
run settings world presents / 10 s after it end memory at the end
1 XCL_UMA_SHADOW=1 66.8 s 195 (60–70 s), 34, 29 guard at 82 s, free RAM 0.45 GB process 31.0 GB committed, working set 17.3 GB; video memory 16.9 GB local + 0.5 GB non-local
2 no XCL_UMA_SHADOW 93.8 s 92 (90–100 s) guard at 101 s, free RAM 0.88 GB 29.9 GB committed, working set 18.5 GB; 14.3 GB local + 4.6 GB non-local
3 no shadow, XCL_GPU_PROFILE=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 74.2 s 92, 104, then 0 from 86 s to 300 s ran to 300 s (exit 0) 31.7 GB committed, working set 17.8 GB flat, free RAM 2.7–3.2 GB flat
4 as run 3 80.6 s 46, 7, 1 guard at about 108 s, free RAM 0.97 GB 32.3 GB private, working set 19.4 GB; 15.5 GB dedicated video memory
  • Menus ran at 30 fps (300 presents per 10 s from 20 to 60 s) in every run. The first present came at 4–6 s.
  • No run had a device removal, a crash, a Wait64BitValueX time-out, a watchdog release, or an nvlddmkm / Display event.
  • DirectStorage: 0 failed requests in all runs (72,268 / 87,811 / 88,004 / 95,717 requests in runs 1–4).
  • From the world on, free RAM falls by about 1.5–3 GB every 8 s.
  • In run 3, from 86 s the title makes no more submits, and the GPU engine of the process goes idle while graphics compiles continue. The memory plateau in run 3 comes from that stop. Run 4, with a warmer graphics cache, went on rendering, with 21,407 dispatches in 90–100 s, until memory ran out.
  • CPU cost per submit (log, average of 1,024 ExecuteCommandLists): 10.4 ms (run 1, textures 7.3 ms), 13.2 ms (run 2, textures 11.8 ms) and 10.4 ms (run 4).

Log lines from run 1 (UMA shadow) just before the guard stopped it:

[   82.047] activity (2 s): 26 presents, 104 submits, 284 draws, 67 dispatches, 52 frame-event waits (0 timed out), 26 frame statistics (0 not flipped); DirectStorage 6501 requests, 235 MB, 0 failed
[   82.048] memory: 30972 MB committed by the process; video memory 16935 MB local, 482 MB non-local; target pages 8656 MB (pools 9088 MB); arenas 304 MB in use, 304 MB made; sparse pools 1792 MB (1784 MB mapped)

and from run 2 (no shadow):

[   94.045] memory: 29874 MB committed by the process; video memory 14293 MB local, 4578 MB non-local; target pages 9647 MB (pools 10304 MB); arenas 304 MB in use, 304 MB made; sparse pools 1984 MB (1960 MB mapped)

What fits and what does not on 32 GB / 16 GB

  • The compute precompile fits easily: under 6 GB working set with 1–2 pipeline threads.
  • The world does not fit with the default coherent window, with or without XCL_UMA_SHADOW. With XCL_UMA_SHADOW=1 local video memory reaches the card's 16 GB.
  • XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 did not change the outcome once the world kept rendering (run 4).
  • The process working set at the point of failure is 17–19.5 GB. The system uses about 10 GB with no game.

Not tested

  • This tree without the two local switches. The watchdog switch never acted in these runs, but the runs are not "the PR as it is".
  • Letting Windows page instead of stopping at 1.0 GB free: runs 1, 2 and 4 are guard cut-offs, not crashes, so I do not know how far the world would go while paging (system commit was about 50 GB of a 95 GB limit in run 4).
  • More than 4 runs, runs longer than 300 s in the world, AMD, other titles, a cold compute cache.
  • A warm graphics cache from many earlier runs, as the description's runs had.

AI use

  • Claude Code: built the tree and the two local switches, ran the precompile and the runs under a memory guard, and wrote this report from the logs.

Run and written with Claude Code (Claude Fable 5.2 and Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7155888027 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7155888027). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T07:27:50Z. --- **RTX 5070 Ti 16 GB / 32 GB RAM: this tree reaches the world of the Newer Retail Game in 67–94 s. Free physical memory then runs out 15–30 s later in every run where the world keeps rendering.** **Setup** - NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM (31.4 GB visible; about 21.6 GB free with no game running), Windows 11 Pro 10.0.26300, Rust 1.100.0, release. - Tree: this PR at `f7e08e6` plus two local commits that are not published anywhere. Both are off unless their variable is set: - `XCL_EXP_WAIT_SUBMITTED=1`: the GPU-wait watchdog does not release on the CPU a wait whose `Signal` is already submitted. It was on in every game run below, but it never acted: 0 holds were logged, and nothing was released on the CPU. - `XCL_EXP_APU_MAP1=1`: `ApuMapVirtualAddress` is taken in its one-argument form. It was on in every game run; it handled 13–14 calls per run in runs 2–4 and none in run 1. - No other change: the translator and everything else are as in `f7e08e6`. The translator sources and `TRANSLATOR_VERSION` (10) are identical to `41303e4`. - Tests on this tree: `cargo test --release -p xcl --lib -- d3d12x::list_x d3d12x::fence_x d3d12x::sparse hle::acphal gpu::fence`. - With `--test-threads=1`: 68 passed, 0 failed, 1 ignored. - Run in parallel, the test process hangs. Six sync/GPU tests report "running for over 60 seconds" with about 1 s of CPU, and I killed it at 120 s. Pure `f7e08e6` hangs the same way: - `list_x::tests::cross_queue_cycle_and_same_queue_fifo_do_not_deadlock` - `cross_queue_wait64_before_signal_does_not_deadlock_submit_thread` - `mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` - `write_buffer_immediate_on_open_existing_heap_visible_to_cpu` - `sparse::tests::a_copy_back_does_not_wait_for_the_title_queue` - `small_runs_go_up_in_dispatches_and_leave_what_lies_between` - At `41303e4` the same filter passed in parallel (67 passed, 0 failed, 1 ignored). **Caches** - Compute pipelines were precompiled with this PR's tool: `xcl shaders <pack> --precompile --only cs --pipelines`, first with `--used-only` (the used list came from earlier runs), with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`. - One process, no `XCL_PRECOMPILE_SLICE`, `XCL_DXC_THREADS=4`, `XCL_PIPELINE_THREADS` 1 and then 2. - **64 min in total, 1,321 driver blobs.** These cover all 912 compute programs of the used set, plus about 409 of the other 1,777. - 0 refused, 0 DXC errors. Peak working set 5.9 GB (private 1.8 GB), minimum free RAM 14.8 GB, peak system commit 19.2 GB. - With one pipeline thread the pass was bound by the driver compile (one core busy). - The slowest driver compiles took 95, 82 and 73 s, for 3.3, 1.7 and 1.5 MB of DXIL. - In the game the compute cache applies: 912–922 compute pipelines came from the driver's blob of an earlier run, and 27–37 were compiled. - **Graphics pipelines are not covered.** `--precompile` only runs DXC on VS/PS, and `--pipelines` builds compute pipelines only, so the graphics cache warms up only in-game. The window title showed `compiling shaders: 4 running … 36255 pipelines queued`. Graphics PSOs compiled in-game, at 2–3.7 s each, gated: | run | graphics PSOs compiled in-game | driver-cache files after the run | |---|---|---| | (before the runs) | – | 1,399 | | run 3 | 111 | 1,583 | | run 4 | 130 | 1,614 | **Runs** - `xcl.exe run <title>`, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_ACTIVITY=1`, A pressed at 30 s, plus the two local switches above. No `XCL_DRED`, no `XCL_PSO_WAIT_MS`. - A memory guard ran next to the game. It kills `xcl.exe` when free physical memory drops below 1.0 GB; that is what ended runs 1, 2 and 4. - "World" below is the first `ID3D12GraphicsCommandList10::#101` call. | run | settings | world | presents / 10 s after it | end | memory at the end | |---|---|---|---|---|---| | 1 | `XCL_UMA_SHADOW=1` | 66.8 s | 195 (60–70 s), 34, 29 | guard at 82 s, free RAM 0.45 GB | process 31.0 GB committed, working set 17.3 GB; video memory 16.9 GB local + 0.5 GB non-local | | 2 | no `XCL_UMA_SHADOW` | 93.8 s | 92 (90–100 s) | guard at 101 s, free RAM 0.88 GB | 29.9 GB committed, working set 18.5 GB; 14.3 GB local + 4.6 GB non-local | | 3 | no shadow, `XCL_GPU_PROFILE=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512` | 74.2 s | 92, 104, then 0 from 86 s to 300 s | ran to 300 s (exit 0) | 31.7 GB committed, working set 17.8 GB flat, free RAM 2.7–3.2 GB flat | | 4 | as run 3 | 80.6 s | 46, 7, 1 | guard at about 108 s, free RAM 0.97 GB | 32.3 GB private, working set 19.4 GB; 15.5 GB dedicated video memory | - Menus ran at 30 fps (300 presents per 10 s from 20 to 60 s) in every run. The first present came at 4–6 s. - No run had a device removal, a crash, a `Wait64BitValueX` time-out, a watchdog release, or an nvlddmkm / Display event. - DirectStorage: 0 failed requests in all runs (72,268 / 87,811 / 88,004 / 95,717 requests in runs 1–4). - From the world on, free RAM falls by about 1.5–3 GB every 8 s. - In run 3, from 86 s the title makes no more submits, and the GPU engine of the process goes idle while graphics compiles continue. The memory plateau in run 3 comes from that stop. Run 4, with a warmer graphics cache, went on rendering, with 21,407 dispatches in 90–100 s, until memory ran out. - CPU cost per submit (log, average of 1,024 `ExecuteCommandLists`): 10.4 ms (run 1, textures 7.3 ms), 13.2 ms (run 2, textures 11.8 ms) and 10.4 ms (run 4). Log lines from run 1 (UMA shadow) just before the guard stopped it: ``` [ 82.047] activity (2 s): 26 presents, 104 submits, 284 draws, 67 dispatches, 52 frame-event waits (0 timed out), 26 frame statistics (0 not flipped); DirectStorage 6501 requests, 235 MB, 0 failed [ 82.048] memory: 30972 MB committed by the process; video memory 16935 MB local, 482 MB non-local; target pages 8656 MB (pools 9088 MB); arenas 304 MB in use, 304 MB made; sparse pools 1792 MB (1784 MB mapped) ``` and from run 2 (no shadow): ``` [ 94.045] memory: 29874 MB committed by the process; video memory 14293 MB local, 4578 MB non-local; target pages 9647 MB (pools 10304 MB); arenas 304 MB in use, 304 MB made; sparse pools 1984 MB (1960 MB mapped) ``` **What fits and what does not on 32 GB / 16 GB** - The compute precompile fits easily: under 6 GB working set with 1–2 pipeline threads. - The world does not fit with the default coherent window, with or without `XCL_UMA_SHADOW`. With `XCL_UMA_SHADOW=1` local video memory reaches the card's 16 GB. - `XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512` did not change the outcome once the world kept rendering (run 4). - The process working set at the point of failure is 17–19.5 GB. The system uses about 10 GB with no game. **Not tested** - This tree without the two local switches. The watchdog switch never acted in these runs, but the runs are not "the PR as it is". - Letting Windows page instead of stopping at 1.0 GB free: runs 1, 2 and 4 are guard cut-offs, not crashes, so I do not know how far the world would go while paging (system commit was about 50 GB of a 95 GB limit in run 4). - More than 4 runs, runs longer than 300 s in the world, AMD, other titles, a cold compute cache. - A warm graphics cache from many earlier runs, as the description's runs had. **AI use** - Claude Code: built the tree and the two local switches, ran the precompile and the runs under a memory guard, and wrote this report from the logs. Run and written with Claude Code (Claude Fable 5.2 and Claude Opus 5.5).
Filip722 commented 2026-11-25 08:08:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Filip722 on 2026-11-25T07:34:23Z.


I tested the published world-render revision 14d7a3c56cb816a5b2babf3e42b7fbdc8e4d5f44 on an RTX 5060 Laptop GPU (8 GB) under Proton. Shrinking the coherent window changed which heaps the title could use before it produced a visible frame.

Both offline Series X runs used the same release executable, separate copies of the same partial shader caches, one compiler worker, background pipeline preload disabled, and the three reference settings XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1. The runtime confirmed that the coherent window had a copy in video memory in each run.

Coherent window Coherent usage at 64 through 1,024 draws Native present-source samples Stop
1,536 MiB 1,255 MiB Frames 20, 116, 212 and 308 all black External guard at 3,538 MiB free VRAM
1,344 MiB 1,236 MiB The same four frames plus frame 404 all black Same guard at 3,554 MiB free VRAM

The smaller window additionally refused a 19 MiB graphics heap while reporting 107 MiB free. The allocator keeps 96 MiB for XCL, leaving about 11 MiB available to that request. The 1,536 MiB run reported only the three larger refusals. This reserve matters when sizing the window from observed usage. The allocation check is here.

Each native sample read 0 of 518,400 pixels above black. All 8 and 13 respective window captures were black. Both runs stopped on the rapid-allocation threshold, with zero process-group swap. These samples establish early allocation and presentation behavior. World entry remains unverified here.

Bazzite 44.20261011.0, Intel Core 7 240H, 16 GB system RAM, NVIDIA 615.78.08, Proton Experimental 11.0-20261112, vkd3d-proton 3.1.0 (4522cc1a8b1347f+). OpenAI Codex (GPT-6.2-Sol, high) built the reference, ran the comparison and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7156011330 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156011330). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-25T07:34:23Z. --- I tested the published world-render revision `14d7a3c56cb816a5b2babf3e42b7fbdc8e4d5f44` on an RTX 5060 Laptop GPU (8 GB) under Proton. Shrinking the coherent window changed which heaps the title could use before it produced a visible frame. Both offline Series X runs used the same release executable, separate copies of the same partial shader caches, one compiler worker, background pipeline preload disabled, and the three reference settings `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1`. The runtime confirmed that the coherent window had a copy in video memory in each run. | Coherent window | Coherent usage at 64 through 1,024 draws | Native present-source samples | Stop | | --- | --- | --- | --- | | 1,536 MiB | 1,255 MiB | Frames 20, 116, 212 and 308 all black | External guard at 3,538 MiB free VRAM | | 1,344 MiB | 1,236 MiB | The same four frames plus frame 404 all black | Same guard at 3,554 MiB free VRAM | The smaller window additionally refused a 19 MiB graphics heap while reporting 107 MiB free. The allocator keeps 96 MiB for XCL, leaving about 11 MiB available to that request. The 1,536 MiB run reported only the three larger refusals. This reserve matters when sizing the window from observed usage. The [allocation check is here](https://github.com/theaustinayers/xcl/blob/14d7a3c56cb816a5b2babf3e42b7fbdc8e4d5f44/crates/xcl/src/hle/kernelx.rs#L328). Each native sample read 0 of 518,400 pixels above black. All 8 and 13 respective window captures were black. Both runs stopped on the rapid-allocation threshold, with zero process-group swap. These samples establish early allocation and presentation behavior. World entry remains unverified here. Bazzite 44.20261011.0, Intel Core 7 240H, 16 GB system RAM, NVIDIA 615.78.08, Proton Experimental 11.0-20261112, vkd3d-proton 3.1.0 (`4522cc1a8b1347f+`). OpenAI Codex (GPT-6.2-Sol, high) built the reference, ran the comparison and prepared this report.
imnicho commented 2026-11-25 09:08:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by imnicho on 2026-11-25T08:08:36Z.


RTX 5080 16 GB on this branch at 41303e4: the intro cinematic's overlay is drawn, no stalled wait, and on a 16 GB card it is video memory that ends the runs

A 16 GB NVIDIA card on Windows, which the reports here do not have yet.

Setup. RTX 5080 16 GB (driver 610.47, 32-lane waves), i7-7700K (4 cores / 8 threads), 16 GB RAM, Windows 10 22H2, release. The retail title of #505 (my own copy), XCL_NETWORK=0, scripted pad, binds waiting (no XCL_PSO_WAIT_MS). XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_HUGE_PSO_CONCURRENCY=2. TdrDelay is 8 s on this PC.

Tree (local, not pushed): this branch at 41303e4 + #2067 at 9b35718 + #684 + #266 + #1515 + #495 + #1405 at bb27ed6 + #751. #684 and #266 are there because the title does not get past its world set-up on this PC without them. Conflicts, for whoever merges the same: #2067 has eight blocks in kernel.rs, emit.rs, lower_dxil.rs and recomp/mod.rs, each #1850's line against #2067's replacement of it (I took #2067's side; its four coherence tests pass on that tree here); #1405 has one block in dstorage.rs, this branch's earlier form of that change against the PR's !dest_on_stack form (I took the PR's).

1. Caches without running the title. xcl shaders <pack> --precompile --only cs --pipelines --used-only in two processes (XCL_PRECOMPILE_SLICE=0/2 and 1/2), with a used-pipelines.txt from earlier runs: 926 compute pipelines in 69 minutes, 0 refused, 3 to 4 GB of RAM a process. In the run after it 936 of 962 compute pipelines came from kept blobs. What it does not cover are the graphics shaders: the first run compiled about 690 of them through DXC (median 66 KB of DXIL, the largest 730 KB, 8 to 10 a minute on this CPU with the title's 39 GB committed on 16 GB of RAM) and the title showed no frame from 147 s to 863 s. Thread dumps in that stretch: the title's thread in pso_async::resolve_wait under bind::execute_indirect, two xcl-dxc threads in dxcompiler.dll.

2. Series X profile

run world's set-up frames after it dispatches after it (skipped) waits released by the watchdog end
first (graphics shaders cold), 1,500 s 148.5 s 249 462,587 (0) 0 running at the limit; 21.4 GB local video memory against a budget of 15.1 GB, 39.5 GB committed
second (caches warm), 900 s 132.6 s 167 507,480 (0) 0 0x887a0005 at 415.9 s, as local video memory went from 19.8 to 20.7 GB in a burst of 512x512 3D placed resources; no System event 4101
  • In the world: 0.4 presents a second in the first run once the shaders were through, 0.6 in the second (at most 4 in 2 s).
  • On screen: the loading artwork is right; then the intro cinematic, whose 2D overlay (its text) is drawn while the scene behind it is a uniform grey. That matches your description.
  • No Wait64BitValueX timed out in either run. On f862f5f (+ the same PRs without #2067 and #751) one 900 s run had one at 483 s (memory held an older value than the one waited for) and ended at 819.7 s in an access violation in tiling::Chain::detile_level under title_textures::subresources, which is what #751 guards.

3. Series S profile (device_type = "lockhart"), one run of 900 s. It needs #495: without it the title stops at its own int3 at 51 s and 73 s (two runs on f862f5f). With it: set-up at 200.8 s, three compute pipelines that the list did not have built in 86, 86 and 281 s, 18.1 GB local video memory against a budget of 15.0 GB, and 0x887a0006 at 726 s (System event 4101) after sparse: the queue has not reached fence value … after 5 s twice.

4. Without XCL_UMA_SHADOW on this card (on f862f5f): about 2.6 s of console GPU time a world frame and a device removal within minutes; the per-program numbers are in https://github.com/xcl-dev/xcl/pull/1850#issuecomment-7153993165 . With the shadow it is about 0.12 s a frame.

So on a 16 GB card the shadow takes away the GPU-time problem, and its 4 GB put the title 5 to 6 GB over the video memory budget in the Series X profile and 3 GB over in the Series S profile.

Not tested

  • This branch as it is: the tree above has seven other PRs in it.
  • AMD, Intel. Each row is one run.

AI use: Claude Code with Claude Fable 5.2 built the tree, ran the title and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7156657950 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156657950). Originally posted by [imnicho](https://github.com/imnicho) on 2026-11-25T08:08:36Z. --- **RTX 5080 16 GB on this branch at `41303e4`: the intro cinematic's overlay is drawn, no stalled wait, and on a 16 GB card it is video memory that ends the runs** A 16 GB NVIDIA card on Windows, which the reports here do not have yet. **Setup.** RTX 5080 16 GB (driver 610.47, 32-lane waves), i7-7700K (4 cores / 8 threads), 16 GB RAM, Windows 10 22H2, release. The retail title of #505 (my own copy), `XCL_NETWORK=0`, scripted pad, binds waiting (no `XCL_PSO_WAIT_MS`). `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_HUGE_PSO_CONCURRENCY=2`. `TdrDelay` is 8 s on this PC. **Tree** (local, not pushed): this branch at `41303e4` + #2067 at `9b35718` + #684 + #266 + #1515 + #495 + #1405 at `bb27ed6` + #751. #684 and #266 are there because the title does not get past its world set-up on this PC without them. Conflicts, for whoever merges the same: #2067 has eight blocks in `kernel.rs`, `emit.rs`, `lower_dxil.rs` and `recomp/mod.rs`, each #1850's line against #2067's replacement of it (I took #2067's side; its four coherence tests pass on that tree here); #1405 has one block in `dstorage.rs`, this branch's earlier form of that change against the PR's `!dest_on_stack` form (I took the PR's). **1. Caches without running the title.** `xcl shaders <pack> --precompile --only cs --pipelines --used-only` in two processes (`XCL_PRECOMPILE_SLICE=0/2` and `1/2`), with a `used-pipelines.txt` from earlier runs: 926 compute pipelines in 69 minutes, 0 refused, 3 to 4 GB of RAM a process. In the run after it 936 of 962 compute pipelines came from kept blobs. What it does not cover are the graphics shaders: the first run compiled about 690 of them through DXC (median 66 KB of DXIL, the largest 730 KB, 8 to 10 a minute on this CPU with the title's 39 GB committed on 16 GB of RAM) and the title showed no frame from 147 s to 863 s. Thread dumps in that stretch: the title's thread in `pso_async::resolve_wait` under `bind::execute_indirect`, two `xcl-dxc` threads in `dxcompiler.dll`. **2. Series X profile** | run | world's set-up | frames after it | dispatches after it (skipped) | waits released by the watchdog | end | |---|---|---|---|---|---| | first (graphics shaders cold), 1,500 s | 148.5 s | 249 | 462,587 (0) | 0 | running at the limit; 21.4 GB local video memory against a budget of 15.1 GB, 39.5 GB committed | | second (caches warm), 900 s | 132.6 s | 167 | 507,480 (0) | 0 | `0x887a0005` at 415.9 s, as local video memory went from 19.8 to 20.7 GB in a burst of 512x512 3D placed resources; no System event 4101 | - In the world: 0.4 presents a second in the first run once the shaders were through, 0.6 in the second (at most 4 in 2 s). - On screen: the loading artwork is right; then the intro cinematic, whose 2D overlay (its text) is drawn while the scene behind it is a uniform grey. That matches your description. - No `Wait64BitValueX timed out` in either run. On `f862f5f` (+ the same PRs without #2067 and #751) one 900 s run had one at 483 s (memory held an older value than the one waited for) and ended at 819.7 s in an access violation in `tiling::Chain::detile_level` under `title_textures::subresources`, which is what #751 guards. **3. Series S profile** (`device_type = "lockhart"`), one run of 900 s. It needs #495: without it the title stops at its own `int3` at 51 s and 73 s (two runs on `f862f5f`). With it: set-up at 200.8 s, three compute pipelines that the list did not have built in 86, 86 and 281 s, 18.1 GB local video memory against a budget of 15.0 GB, and `0x887a0006` at 726 s (System event 4101) after `sparse: the queue has not reached fence value … after 5 s` twice. **4. Without `XCL_UMA_SHADOW`** on this card (on `f862f5f`): about 2.6 s of console GPU time a world frame and a device removal within minutes; the per-program numbers are in https://github.com/xcl-dev/xcl/pull/1850#issuecomment-7153993165 . With the shadow it is about 0.12 s a frame. So on a 16 GB card the shadow takes away the GPU-time problem, and its 4 GB put the title 5 to 6 GB over the video memory budget in the Series X profile and 3 GB over in the Series S profile. **Not tested** - This branch as it is: the tree above has seven other PRs in it. - AMD, Intel. Each row is one run. AI use: Claude Code with Claude Fable 5.2 built the tree, ran the title and wrote this.
Eterst commented 2026-11-25 09:08:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Eterst on 2026-11-25T08:23:27Z.


RTX 4070 SUPER 12 GB / 32 GB RAM on this branch: the intro's opening credits are reached. Measured: XCL_WATCH_HOT causes the black-frame flicker, XCL_UMA_SHADOW is what avoids the early device removal here, #751 is needed on this tree, and NVIDIA's own shader cache file was 7.6 GB of the RAM.

Setup

  • RTX 4070 SUPER 12 GB (driver 616.92, 32-lane waves), Ryzen 7 5700X, 32 GB RAM (page file 67 GB), Windows 10 22H2 19045, Rust 1.100.0, release.
  • The retail title of #505 (my own copy), XCL_NETWORK=0, scripted pad presses.
  • Tree: this PR at 41303e4 plus #800, #1514, #758 + #759 (xcl pipelines), #1592 + #1794 (DRED) and #751 (from the run after the crash below on), plus local diagnostics (GPU culprit markers, a present log) and a local, unpublished per-frame cap on pipeline waits (XCL_PSO_FRAME_WAIT_MS=100, all of the title's threads together). No translator changes on top of this PR, so its shader cache keys are the PR's.
  • Caches filled first: xcl shaders … --precompile --only cs --pipelines built all 2,689 compute pipelines (0 errors), then xcl pipelines built the 6,749 pipelines of the journal (0 failed); only 3 new driver builds in a run after that.
  • Settings unless said otherwise: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_PSO_WAIT_MS=50 XCL_PSO_FRAME_WAIT_MS=100 XCL_COHERENT_MB=2048.

1. The flicker is XCL_WATCH_HOT. With XCL_FRAME_DUMP=2, frames 700–1500 (the loading screen), counting dumps with none of the 518,400 sampled texels lit:

XCL_WATCH_HOT fully black dumps
default (on) 66 of 299 (irregular, every 2–8 frames)
0 2 of 279

All presents came from one queue, alternating two back buffers. The cost of XCL_WATCH_HOT=0 is speed: one write-watch sweep took 101 s (26.2 M dirty pages) and the world ran at about half the present rate.

2. XCL_UMA_SHADOW=1 is what keeps the device here. Without it (and with the default 4095 MB window) the coherent window is opened in place (UMA import check: ok) and the device was removed at 109.8 s (5 prod=qNone waits at 98.3 s, no watchdog release, 4 of 306 lists in flight). With it, no run was removed before 249 s.

3. #751 is needed on this tree. A 313 s run ended with an access violation in gpu::tiling::Chain::detile_level ← title_textures::subresources on a subresources_on worker, reading a page the title had unmapped 3 ms earlier (XCL's page log). With #751 applied (one conflict with this branch's submit_cost timing, resolved by keeping both), it did not come back in the 7 runs after it.

4. RAM: NVIDIA's DX shader cache file was mapped fully resident. A watcher that catches new mapped regions found the 8 GB mapped block in the process to be the driver's cache file for xcl.exe (%LOCALAPPDATA%\NVIDIA\DXCache\33cba93bc29925ed.nvph, mapped by NvMemMapStoragex.dll while the device is created). Measured with QueryWorkingSetEx, 7.62 of its 8 GB were in the working set from the first seconds to the end of the run. The two cache files for xcl.exe had grown to 12 GB with the pipeline precompiles above. With the two files moved away (the driver starts a new one), at the same point of the run:

resident (working set) RAM free the run
cache files 8 + 4 GB 22.4 GB at 140 s 0.4 GB → stopped by my RAM guard at 189 s –
moved away 15.1 GB at 200 s 9.2 GB went on to 313 s

The new cache file was 0.75 GB after that run. Capping NVIDIA's "Shader Cache Size" for xcl.exe keeps it there; XCL's own driver blobs still supply the pipelines. A smaller coherent window helped too: XCL_COHERENT_MB=2048 instead of 4095 took 4.5 GB of commit and 2.5 GB of video memory off at ~100 s, at the cost of a slower start (the title's 2.2 GB GPU heap then lives outside the window).

5. What still ends the runs: a device removal at 250–265 s (in the intro's opening credits), in 4 of the 5 runs that got that far: 259.4 s, 255.1 s (XCL_WATCH_HOT=0), 265.0 s (XCL_COHERENT_MB=1024, video memory 11.2 GB), 249.9 s. The fifth (before #751, with the new NVIDIA cache file) ran to 313 s and ended on the crash in point 3. No GPU-wait watchdog release in any of them. The culprit markers showed 4–5 lists stuck at the same CopyResource into a 2560x1440 format-28 title texture on title pages; with that copy skipped (a local diagnostic), the removal still came at 249.9 s, with no list in flight. DXGI local video memory ended at 11.2–12.7 GB; the sparse pools grow steadily (0.3 → 3.8 GB) through the run. RAM had 8–13 GB free.

Not tested: this PR's newer heads (f7e08e6, 4df1e6e); AMD; the tree without the PRs added above; more than one run per row in the tables.

AI use: Claude Code (Claude Opus 5.5) made the runs on this machine, wrote the diagnostics and wrote this report, posted with my OK.

<!-- greyfinch-sync:ivall/xcl:comment:7156966403 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156966403). Originally posted by [Eterst](https://github.com/Eterst) on 2026-11-25T08:23:27Z. --- **RTX 4070 SUPER 12 GB / 32 GB RAM on this branch: the intro's opening credits are reached. Measured: `XCL_WATCH_HOT` causes the black-frame flicker, `XCL_UMA_SHADOW` is what avoids the early device removal here, #751 is needed on this tree, and NVIDIA's own shader cache file was 7.6 GB of the RAM.** **Setup** - RTX 4070 SUPER 12 GB (driver 616.92, 32-lane waves), Ryzen 7 5700X, 32 GB RAM (page file 67 GB), Windows 10 22H2 19045, Rust 1.100.0, release. - The retail title of #505 (my own copy), `XCL_NETWORK=0`, scripted pad presses. - Tree: this PR at `41303e4` plus #800, #1514, #758 + #759 (`xcl pipelines`), #1592 + #1794 (DRED) and #751 (from the run after the crash below on), plus local diagnostics (GPU culprit markers, a present log) and a local, unpublished per-frame cap on pipeline waits (`XCL_PSO_FRAME_WAIT_MS=100`, all of the title's threads together). No translator changes on top of this PR, so its shader cache keys are the PR's. - Caches filled first: `xcl shaders … --precompile --only cs --pipelines` built all 2,689 compute pipelines (0 errors), then `xcl pipelines` built the 6,749 pipelines of the journal (0 failed); only 3 new driver builds in a run after that. - Settings unless said otherwise: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_PSO_WAIT_MS=50 XCL_PSO_FRAME_WAIT_MS=100 XCL_COHERENT_MB=2048`. **1. The flicker is `XCL_WATCH_HOT`.** With `XCL_FRAME_DUMP=2`, frames 700–1500 (the loading screen), counting dumps with none of the 518,400 sampled texels lit: | `XCL_WATCH_HOT` | fully black dumps | |---|---| | default (on) | **66 of 299** (irregular, every 2–8 frames) | | `0` | **2 of 279** | All presents came from one queue, alternating two back buffers. The cost of `XCL_WATCH_HOT=0` is speed: one write-watch sweep took 101 s (26.2 M dirty pages) and the world ran at about half the present rate. **2. `XCL_UMA_SHADOW=1` is what keeps the device here.** Without it (and with the default 4095 MB window) the coherent window is opened in place (`UMA import check: ok`) and the device was removed at **109.8 s** (5 `prod=qNone` waits at 98.3 s, no watchdog release, 4 of 306 lists in flight). With it, no run was removed before 249 s. **3. #751 is needed on this tree.** A 313 s run ended with an access violation in `gpu::tiling::Chain::detile_level` ← `title_textures::subresources` on a `subresources_on` worker, reading a page the title had unmapped 3 ms earlier (XCL's page log). With #751 applied (one conflict with this branch's `submit_cost` timing, resolved by keeping both), it did not come back in the 7 runs after it. **4. RAM: NVIDIA's DX shader cache file was mapped fully resident.** A watcher that catches new mapped regions found the 8 GB mapped block in the process to be the driver's cache file for `xcl.exe` (`%LOCALAPPDATA%\NVIDIA\DXCache\33cba93bc29925ed.nvph`, mapped by `NvMemMapStoragex.dll` while the device is created). Measured with `QueryWorkingSetEx`, 7.62 of its 8 GB were in the working set from the first seconds to the end of the run. The two cache files for `xcl.exe` had grown to 12 GB with the pipeline precompiles above. With the two files moved away (the driver starts a new one), at the same point of the run: | | resident (working set) | RAM free | the run | |---|---|---|---| | cache files 8 + 4 GB | 22.4 GB at 140 s | 0.4 GB → stopped by my RAM guard at 189 s | – | | moved away | 15.1 GB at 200 s | 9.2 GB | went on to 313 s | The new cache file was 0.75 GB after that run. Capping NVIDIA's "Shader Cache Size" for `xcl.exe` keeps it there; XCL's own driver blobs still supply the pipelines. A smaller coherent window helped too: `XCL_COHERENT_MB=2048` instead of 4095 took 4.5 GB of commit and 2.5 GB of video memory off at ~100 s, at the cost of a slower start (the title's 2.2 GB GPU heap then lives outside the window). **5. What still ends the runs: a device removal at 250–265 s** (in the intro's opening credits), in 4 of the 5 runs that got that far: 259.4 s, 255.1 s (`XCL_WATCH_HOT=0`), 265.0 s (`XCL_COHERENT_MB=1024`, video memory 11.2 GB), 249.9 s. The fifth (before #751, with the new NVIDIA cache file) ran to 313 s and ended on the crash in point 3. No GPU-wait watchdog release in any of them. The culprit markers showed 4–5 lists stuck at the same `CopyResource` into a 2560x1440 format-28 title texture on title pages; with that copy skipped (a local diagnostic), the removal still came at 249.9 s, with no list in flight. DXGI local video memory ended at 11.2–12.7 GB; the sparse pools grow steadily (0.3 → 3.8 GB) through the run. RAM had 8–13 GB free. **Not tested:** this PR's newer heads (`f7e08e6`, `4df1e6e`); AMD; the tree without the PRs added above; more than one run per row in the tables. **AI use:** Claude Code (Claude Opus 5.5) made the runs on this machine, wrote the diagnostics and wrote this report, posted with my OK.
Rednaxeh commented 2026-11-25 09:08:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Rednaxeh on 2026-11-25T08:29:53Z.


AMD RDNA3 (RX 7800 XT 16 GB) on head f7e08e6: the branch runs on AMD without XCL_UMA_SHADOW, which kills the device at once; the world stays a black window because the AMD driver compiles the title's own compute pipelines at 12–40 s each, on the title's thread.

Setup

  • AMD Radeon RX 7800 XT 16 GB (driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB RAM, Windows 11 Pro 26300, release build of f7e08e6 (merge of main 568e7db), Rust 1.100.0 MSVC, DXC 1.9.2602.17. The newer retail title of #505, offline (XCL_NETWORK=0), Series X profile.
  • Switches as in the description: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, first with XCL_UMA_SHADOW=1, then without.

1. XCL_UMA_SHADOW=1 removes the device on AMD before the title's device exists
With the switch open_uma does not try OpenExistingHeapFromAddress (which works on this card: main logs "UMA opened") and creates the coherent window as a 4095 MB heap of video memory instead; the driver removes the device inside that CreateHeap:

[0.367] D3D12.X: UMA not available to the GPU: CreateHeap (window 3, 4095 MB of video memory): ... (0x887A0005)
[1.293] D3D12 device removed: 0x887a0020 (internal driver error)
[1.297] unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606

Smoke (60 s): exit 0x80000003, 1 device removal, 2 crashes. So on AMD the switch has to stay off; the description could say it is for GPUs without OpenExistingHeapFromAddress.

2. Without it: smoke 60 s like main

xcl-smoke v1
commit: f7e08e6c1eb801215dd045cf46dd35631dca0d2c
gpu: AMD  Radeon RX 7800 XT
title: 0da1204f
seconds: 60
exit: 0x0
frames shown: 1261 (PresentX 1261)
presents per 2 s (last 3): 0 0 6
device removals: 0
crashes: 0
peak commit: 24598 MB

(main 568e7db this morning, HLSL path, defaults: 1220 frames, 26716 MB.)

3. Two 300 s runs (XCL_PSO_TRACE=1 XCL_RUN_SECONDS=300, A at the start screen): menus and loading, then a black window to the end

  • Run 1 (driver cache cold for the direct DXIL form): 1486 frames; run 2: 1451 frames. No device removal, no crash, 0 draws and 0 dispatches skipped. Draws stop growing at 12 768 (run 1, 93 s) / 12 243 (run 2, 78 s), dispatches at 8 192: from there on the title waits for CreateComputePipelineState on its own thread.
  • No program is refused in these runs: with the compact direct DXIL form (main e591a8c) the 22.8 MB (HLSL) / 3.9 MB (direct, yesterday) ActivateProbes record 56c0cd3b82a00c6e is 417 468 B; the biggest DXIL of the two runs is 1 254 828 B. The other giant, ActivateRays 95cc13288a27a96e, was not asked for within the 300 s here; on main it was (see 4): 3 345 980 B, not in the compact form, and its compile never returned.
  • The AMD driver takes 12–40 s per such program, 15–67 ms per KB of DXIL, serially on the title's thread: run 2 has 23 compiles over 10 s (290–330 KB programs at 12–14 s each, one after the other from 93 s to the end; 1.25 MB in 39.9 s; 1.10 MB in 16.6 s; 770 KB in 25.5 s; 56c0cd3b82a00c6e in 27.8 s). Driver compile time per 30 s bucket in run 2: 33, 26, 56, 97, 54, 26, 27, 26, 40, 25 s.
  • The slow programs of run 2 are almost all records run 1 never created (21 of 23): the title asks for different pipelines each run, so a warm run does not get past them; 1035 of 1242 compiles in run 2 still had no driver blob (207 had one, from the 128+ kept in run 1).
  • 40 mesh pipelines refused ("MS in the AS slot without a translation"), as on NVIDIA.

So on RDNA3 this tree reaches where main reaches: the hang and freeze fixes cannot be judged here, because the world never starts rendering within 300 s. The obstacle is the AMD driver's compile time for 300 KB–1.3 MB direct-DXIL compute programs created synchronously by the title, not a gate of XCL's (these compiles are the title's own, synchronous ones; the background gate of #1774 / #1924 is not involved).

4. Control: main 568e7db, same switches, same 300 s run
1532 frames, no device removal, no crash; draws stop at 13 889 (81 s), dispatches at 8 192; the same chain of 270–330 KB compute programs at 12–14 s each on the title's thread from 174 s to the end; 40 mesh pipelines refused. ActivateRays 95cc13288a27a96e (3 345 980 B direct DXIL, not compact) started in the driver at 113.8 s and had not returned at 300 s. On RDNA3 this branch and main behave the same within 300 s.

Not tested

  • The commits from 16826cb on in the world (not reached); NVIDIA; cold HLSL path on this branch; a run longer than 300 s.

AI use: Claude Code (Claude Fable 5.1) read the logs and wrote this report; the runs were mine.

<!-- greyfinch-sync:ivall/xcl:comment:7157097107 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157097107). Originally posted by [Rednaxeh](https://github.com/Rednaxeh) on 2026-11-25T08:29:53Z. --- **AMD RDNA3 (RX 7800 XT 16 GB) on head `f7e08e6`: the branch runs on AMD without `XCL_UMA_SHADOW`, which kills the device at once; the world stays a black window because the AMD driver compiles the title's own compute pipelines at 12–40 s each, on the title's thread.** **Setup** - AMD Radeon RX 7800 XT 16 GB (driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB RAM, Windows 11 Pro 26300, release build of `f7e08e6` (merge of `main` 568e7db), Rust 1.100.0 MSVC, DXC 1.9.2602.17. The newer retail title of #505, offline (`XCL_NETWORK=0`), Series X profile. - Switches as in the description: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`, first with `XCL_UMA_SHADOW=1`, then without. **1. `XCL_UMA_SHADOW=1` removes the device on AMD before the title's device exists** With the switch `open_uma` does not try `OpenExistingHeapFromAddress` (which works on this card: `main` logs "UMA opened") and creates the coherent window as a 4095 MB heap of video memory instead; the driver removes the device inside that `CreateHeap`: ``` [0.367] D3D12.X: UMA not available to the GPU: CreateHeap (window 3, 4095 MB of video memory): ... (0x887A0005) [1.293] D3D12 device removed: 0x887a0020 (internal driver error) [1.297] unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606 ``` Smoke (60 s): `exit 0x80000003`, 1 device removal, 2 crashes. So on AMD the switch has to stay off; the description could say it is for GPUs without `OpenExistingHeapFromAddress`. **2. Without it: smoke 60 s like `main`** ``` xcl-smoke v1 commit: f7e08e6c1eb801215dd045cf46dd35631dca0d2c gpu: AMD Radeon RX 7800 XT title: 0da1204f seconds: 60 exit: 0x0 frames shown: 1261 (PresentX 1261) presents per 2 s (last 3): 0 0 6 device removals: 0 crashes: 0 peak commit: 24598 MB ``` (`main` 568e7db this morning, HLSL path, defaults: 1220 frames, 26716 MB.) **3. Two 300 s runs (`XCL_PSO_TRACE=1 XCL_RUN_SECONDS=300`, A at the start screen): menus and loading, then a black window to the end** - Run 1 (driver cache cold for the direct DXIL form): 1486 frames; run 2: 1451 frames. No device removal, no crash, 0 draws and 0 dispatches skipped. Draws stop growing at 12 768 (run 1, 93 s) / 12 243 (run 2, 78 s), dispatches at 8 192: from there on the title waits for `CreateComputePipelineState` on its own thread. - **No program is refused in these runs**: with the compact direct DXIL form (`main` e591a8c) the 22.8 MB (HLSL) / 3.9 MB (direct, yesterday) `ActivateProbes` record `56c0cd3b82a00c6e` is 417 468 B; the biggest DXIL of the two runs is 1 254 828 B. The other giant, `ActivateRays` `95cc13288a27a96e`, was not asked for within the 300 s here; on `main` it was (see 4): 3 345 980 B, not in the compact form, and its compile never returned. - **The AMD driver takes 12–40 s per such program**, 15–67 ms per KB of DXIL, serially on the title's thread: run 2 has 23 compiles over 10 s (290–330 KB programs at 12–14 s each, one after the other from 93 s to the end; 1.25 MB in 39.9 s; 1.10 MB in 16.6 s; 770 KB in 25.5 s; `56c0cd3b82a00c6e` in 27.8 s). Driver compile time per 30 s bucket in run 2: 33, 26, 56, 97, 54, 26, 27, 26, 40, 25 s. - The slow programs of run 2 are almost all records run 1 never created (21 of 23): the title asks for different pipelines each run, so a warm run does not get past them; 1035 of 1242 compiles in run 2 still had no driver blob (207 had one, from the 128+ kept in run 1). - 40 mesh pipelines refused ("MS in the AS slot without a translation"), as on NVIDIA. So on RDNA3 this tree reaches where `main` reaches: the hang and freeze fixes cannot be judged here, because the world never starts rendering within 300 s. The obstacle is the AMD driver's compile time for 300 KB–1.3 MB direct-DXIL compute programs created synchronously by the title, not a gate of XCL's (these compiles are the title's own, synchronous ones; the background gate of #1774 / #1924 is not involved). **4. Control: `main` 568e7db, same switches, same 300 s run** 1532 frames, no device removal, no crash; draws stop at 13 889 (81 s), dispatches at 8 192; the same chain of 270–330 KB compute programs at 12–14 s each on the title's thread from 174 s to the end; 40 mesh pipelines refused. `ActivateRays` `95cc13288a27a96e` (3 345 980 B direct DXIL, not compact) started in the driver at 113.8 s and had not returned at 300 s. On RDNA3 this branch and `main` behave the same within 300 s. **Not tested** - The commits from `16826cb` on in the world (not reached); NVIDIA; cold HLSL path on this branch; a run longer than 300 s. AI use: Claude Code (Claude Fable 5.1) read the logs and wrote this report; the runs were mine.
frenziedcoder commented 2026-11-25 09:08:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by frenziedcoder on 2026-11-25T08:33:12Z.


RTX 5080 16 GB / 64 GB RAM, Windows, this branch unchanged: 4df1e6e with XCL_UMA_SHADOW=1 plays the intro's overlay for ~100 s at 4–6 fps over a grey scene, then the device is removed (DRED: page fault at GPU VA 0x0). f7e08e6 and 41303e4 without the shadow lose the device as the loading artwork fades.

@imnicho's 5080 report above is of 41303e4 plus seven other PRs, so these are the branch heads as they are, on a machine where RAM is not the limit.

Setup

  • NVIDIA GeForce RTX 5080 16 GB (driver 617.14, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB RAM, Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0, release. No local changes.
  • The newer retail title of #505, XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, A pressed every 4 s from 20 to 120 s, XCL_FRAME_DUMP=30. A guard kills the run above 15,900 MiB of GPU memory (nvidia-smi) or below 2–8 GB of free RAM. It never fired.
  • Caches: xcl shaders <pack> --precompile --only cs --pipelines with XCL_PRECOMPILE_SLICE=i/4, XCL_DXC_THREADS=3: all 2,689 compute pipelines, 0 errors, 0 refused, in 35.6 min (CPU-bound, 8 cores / 16 threads), min free RAM 32 GB. In the game, compute pipelines came from the driver cache; graphics pipelines were built in the game (134 in the first, cold run).

Runs

run head shadow first ListX #101 presents after it end
W1, graphics cold f7e08e6 off 70.1 s 23 (GPU idle ~74–386 s while 124 graphics PSOs build) 0x887a0005 at 405.8 s
W2, warm, XCL_DRED=1 f7e08e6 off 58.9 s 221, ~1 per 2 s from 72 s, GPU 100 % 0x887a0005 at 115.7 s, DRED page fault at VA 0x0
W3, warm, DRED 41303e4 off 69.6 s 38, ~1 per 2 s 0x887a0005 at 84.8 s, DRED page fault at VA 0x0
W4, warm, DRED, 600 s 4df1e6e on 49.2 s 739: 8–13 per 2 s from 266 to 366 s presents stop at 366 s (256 submits / 12,875 dispatches until the end); 0x887a0005 at 578.0 s, DRED page fault at VA 0x0
  • Every removal is followed by the title's int3 at +0x2474606 (#1508). DRED lists no allocation at VA 0x0 and none recently freed. No System event 4101, no WHEA. 0 GPU waits released on the CPU, 0 skipped draws or dispatches in all four runs.
  • Without the shadow (W1–W3), the frame before the removal is the loading artwork, the next one blank: the removal comes as it fades, as in @joeypercia's 4070 Ti runs of f7e08e6.
  • With the shadow (W4) the frames from 266 to 366 s are the intro's 2D overlay over a uniform grey scene, as @imnicho describes. Local video memory per XCL's log went from 20.0 GB at 250 s to 21.4 GB at 378 s; nvidia-smi stayed at 15.8 of 16 GB the whole time. Peak process commit 41.3 GB, min free RAM 16 GB, so 64 GB of RAM leaves room (@tiagonleal's 32 GB ran out). Video memory is the limit on 16 GB.

Not tested: more than one run per row; 4df1e6e without the shadow; NVIDIA drivers ≥ 620 (617.14 here: no blue screen in these four runs); AMD.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine, read the logs and wrote this report; I checked it.

<!-- greyfinch-sync:ivall/xcl:comment:7157174178 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157174178). Originally posted by [frenziedcoder](https://github.com/frenziedcoder) on 2026-11-25T08:33:12Z. --- **RTX 5080 16 GB / 64 GB RAM, Windows, this branch unchanged: `4df1e6e` with `XCL_UMA_SHADOW=1` plays the intro's overlay for ~100 s at 4–6 fps over a grey scene, then the device is removed (DRED: page fault at GPU VA `0x0`). `f7e08e6` and `41303e4` without the shadow lose the device as the loading artwork fades.** @imnicho's 5080 report above is of `41303e4` plus seven other PRs, so these are the branch heads as they are, on a machine where RAM is not the limit. **Setup** - NVIDIA GeForce RTX 5080 16 GB (driver 617.14, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB RAM, Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0, release. No local changes. - The newer retail title of #505, `XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`, A pressed every 4 s from 20 to 120 s, `XCL_FRAME_DUMP=30`. A guard kills the run above 15,900 MiB of GPU memory (nvidia-smi) or below 2–8 GB of free RAM. It never fired. - **Caches:** `xcl shaders <pack> --precompile --only cs --pipelines` with `XCL_PRECOMPILE_SLICE=i/4`, `XCL_DXC_THREADS=3`: all 2,689 compute pipelines, 0 errors, 0 refused, in 35.6 min (CPU-bound, 8 cores / 16 threads), min free RAM 32 GB. In the game, compute pipelines came from the driver cache; graphics pipelines were built in the game (134 in the first, cold run). **Runs** | run | head | shadow | first ListX #101 | presents after it | end | |---|---|---|---|---|---| | W1, graphics cold | `f7e08e6` | off | 70.1 s | 23 (GPU idle ~74–386 s while 124 graphics PSOs build) | `0x887a0005` at 405.8 s | | W2, warm, `XCL_DRED=1` | `f7e08e6` | off | 58.9 s | 221, ~1 per 2 s from 72 s, GPU 100 % | `0x887a0005` at 115.7 s, DRED page fault at VA `0x0` | | W3, warm, DRED | `41303e4` | off | 69.6 s | 38, ~1 per 2 s | `0x887a0005` at 84.8 s, DRED page fault at VA `0x0` | | W4, warm, DRED, 600 s | `4df1e6e` | **on** | **49.2 s** | **739**: 8–13 per 2 s from 266 to 366 s | presents stop at 366 s (256 submits / 12,875 dispatches until the end); `0x887a0005` at 578.0 s, DRED page fault at VA `0x0` | - Every removal is followed by the title's int3 at `+0x2474606` (#1508). DRED lists no allocation at VA `0x0` and none recently freed. No System event 4101, no WHEA. 0 GPU waits released on the CPU, 0 skipped draws or dispatches in all four runs. - Without the shadow (W1–W3), the frame before the removal is the loading artwork, the next one blank: the removal comes as it fades, as in @joeypercia's 4070 Ti runs of `f7e08e6`. - With the shadow (W4) the frames from 266 to 366 s are the intro's 2D overlay over a uniform grey scene, as @imnicho describes. Local video memory per XCL's log went from 20.0 GB at 250 s to 21.4 GB at 378 s; nvidia-smi stayed at 15.8 of 16 GB the whole time. Peak process commit 41.3 GB, min free RAM 16 GB, so 64 GB of RAM leaves room (@tiagonleal's 32 GB ran out). Video memory is the limit on 16 GB. **Not tested:** more than one run per row; `4df1e6e` without the shadow; NVIDIA drivers ≥ 620 (617.14 here: no blue screen in these four runs); AMD. *AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine, read the logs and wrote this report; I checked it.*
upipibi commented 2026-11-25 09:08:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T08:13:33Z.


@tiagonleal Reproduced on an RTX 3070 (Ampere, driver 616.56, Windows 11) with your filter: cargo test --release -p xcl --lib -- d3d12x::list_x d3d12x::fence_x d3d12x::sparse hle::acphal gpu::fence, default threads, each run capped at 180 s. The trees were run in turn, every run holding the GPU alone:

tree runs hung (cap hit) tests still running after 60 s
main 568e7db 3 0 (58 passed, 0 failed each) –
f7e08e6 (the head of your report) 3 3 sparse::a_copy_back_does_not_wait_for_the_title_queue (3/3), sparse::small_runs_go_up_in_dispatches_and_leave_what_lies_between (3/3), list_x::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares (2/3), cross_queue_cycle_and_same_queue_fifo_do_not_deadlock, rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang, write_buffer_immediate_on_open_existing_heap_visible_to_cpu (1/3 each)
41303e4 3 3 sparse::a_copy_back_does_not_wait_for_the_title_queue (3/3), list_x::cross_queue_wait64_before_signal_does_not_deadlock_submit_thread (3/3), cross_queue_cycle_and_same_queue_fifo_do_not_deadlock, mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares, rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang (2/3 each), write_buffer_immediate_on_open_existing_heap_visible_to_cpu (1/3)
4df1e6e (current head) 3 3 sparse::a_copy_back_does_not_wait_for_the_title_queue, sparse::a_mapping_put_off_is_sent_without_a_submit, sparse::small_runs_go_up_in_dispatches_and_leave_what_lies_between, list_x::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares (3/3 each), cross_queue_cycle_and_same_queue_fifo_do_not_deadlock, write_buffer_immediate_on_open_existing_heap_visible_to_cpu (2/3), cross_queue_wait64_before_signal_does_not_deadlock_submit_thread, rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang (1/3)

Run 1 on 4df1e6e overlapped a build on this machine; runs 2 and 3 had the machine to themselves and hung the same way.

One difference from your report: 41303e4 hangs here too. This machine has 32 logical CPUs, so the default harness ran 32 test threads against 16 on yours. That isn't the explanation: with --test-threads=16, 41303e4 hung in 1 of 2 runs, and the other run finished with 1 failure (hle::acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failure). main wasn't checked at 16 threads.

Cause: #1993's change, as carried here in cbba2d9d, with its new test running in parallel. A first-parent bisect of the first-parent commits after the branch's main merge-base f5c5bdf up to 41303e4 (f5c5bdf checked clean first, 2 of 2) named cbba2d9d. Checked against its parent, 3 runs each: 4de1452d 0 of 3 hung; cbba2d9d 2 of 3 hung; cbba2d9d with a_copy_back_does_not_wait_for_the_title_queue skipped, 0 of 3; that test alone, 0 of 3. So it takes the new test running in parallel with the other queue tests in one process. Details and a possible cause are on #1993: https://github.com/xcl-dev/xcl/pull/1993#issuecomment-7158303042

AI-assisted (Claude Code). Synthetic tests only.

<!-- greyfinch-sync:ivall/xcl:comment:7156765026 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156765026). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T08:13:33Z. --- @tiagonleal Reproduced on an RTX 3070 (Ampere, driver 616.56, Windows 11) with your filter: `cargo test --release -p xcl --lib -- d3d12x::list_x d3d12x::fence_x d3d12x::sparse hle::acphal gpu::fence`, default threads, each run capped at 180 s. The trees were run in turn, every run holding the GPU alone: | tree | runs | hung (cap hit) | tests still running after 60 s | |---|---|---|---| | `main` `568e7db` | 3 | 0 (58 passed, 0 failed each) | – | | `f7e08e6` (the head of your report) | 3 | 3 | `sparse::a_copy_back_does_not_wait_for_the_title_queue` (3/3), `sparse::small_runs_go_up_in_dispatches_and_leave_what_lies_between` (3/3), `list_x::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` (2/3), `cross_queue_cycle_and_same_queue_fifo_do_not_deadlock`, `rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang`, `write_buffer_immediate_on_open_existing_heap_visible_to_cpu` (1/3 each) | | `41303e4` | 3 | 3 | `sparse::a_copy_back_does_not_wait_for_the_title_queue` (3/3), `list_x::cross_queue_wait64_before_signal_does_not_deadlock_submit_thread` (3/3), `cross_queue_cycle_and_same_queue_fifo_do_not_deadlock`, `mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares`, `rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang` (2/3 each), `write_buffer_immediate_on_open_existing_heap_visible_to_cpu` (1/3) | | `4df1e6e` (current head) | 3 | 3 | `sparse::a_copy_back_does_not_wait_for_the_title_queue`, `sparse::a_mapping_put_off_is_sent_without_a_submit`, `sparse::small_runs_go_up_in_dispatches_and_leave_what_lies_between`, `list_x::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` (3/3 each), `cross_queue_cycle_and_same_queue_fifo_do_not_deadlock`, `write_buffer_immediate_on_open_existing_heap_visible_to_cpu` (2/3), `cross_queue_wait64_before_signal_does_not_deadlock_submit_thread`, `rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang` (1/3) | Run 1 on `4df1e6e` overlapped a build on this machine; runs 2 and 3 had the machine to themselves and hung the same way. One difference from your report: **`41303e4` hangs here too**. This machine has 32 logical CPUs, so the default harness ran 32 test threads against 16 on yours. That isn't the explanation: with `--test-threads=16`, `41303e4` hung in 1 of 2 runs, and the other run finished with 1 failure (`hle::acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failure`). `main` wasn't checked at 16 threads. **Cause: #1993's change, as carried here in `cbba2d9d`, with its new test running in parallel.** A first-parent bisect of the first-parent commits after the branch's `main` merge-base `f5c5bdf` up to `41303e4` (`f5c5bdf` checked clean first, 2 of 2) named `cbba2d9d`. Checked against its parent, 3 runs each: `4de1452d` 0 of 3 hung; `cbba2d9d` 2 of 3 hung; `cbba2d9d` with `a_copy_back_does_not_wait_for_the_title_queue` skipped, 0 of 3; that test alone, 0 of 3. So it takes the new test running in parallel with the other queue tests in one process. Details and a possible cause are on #1993: https://github.com/xcl-dev/xcl/pull/1993#issuecomment-7158303042 AI-assisted (Claude Code). Synthetic tests only.
dhillonjagdeep650-boop commented 2026-11-25 09:08:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by dhillonjagdeep650-boop on 2026-11-25T08:59:13Z.


Two tests of 4df1e6e stop in their helper in a debug build, before they test anything: pieces_hold_the_texels_of_their_levels and gpu_parts_of_a_texture_go_up_and_the_rest_stays panic with attempt to multiply with overflow in some_ranges (texture_upload.rs, n = n * 1103515245 + 12345).

With n = n.wrapping_mul(1103515245).wrapping_add(12345) both pass, so the uploads they check are fine here.

Tested

  • RTX 3080 Ti 12 GB (driver 617.42), Ryzen 7 5800X, Windows 11 Pro 26300.9974, rustc 1.98.1 msvc, DXC 1.8.2502.11, debug
  • 4df1e6e merged into a local tree that also has 741cb5a, #2131 and two local diagnostic commits (748753d); the helper is the same line in 4df1e6e
  • cargo test -p xcl --locked --lib -- --test-threads=2: 1149 passed, 2 failed (the two above), 26 ignored
  • ... --lib -- hle::d3d12x::texture_upload --test-threads=1 with the wrapping helper: 7 passed, 0 failed, 3 of 3 runs

Not tested

  • 4df1e6e on its own; the integration tests; release

AI use: Claude Code with Claude Opus 5.5 ran the tests, made the one-line experiment and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7157724407 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157724407). Originally posted by [dhillonjagdeep650-boop](https://github.com/dhillonjagdeep650-boop) on 2026-11-25T08:59:13Z. --- Two tests of `4df1e6e` stop in their helper in a debug build, before they test anything: `pieces_hold_the_texels_of_their_levels` and `gpu_parts_of_a_texture_go_up_and_the_rest_stays` panic with `attempt to multiply with overflow` in `some_ranges` (`texture_upload.rs`, `n = n * 1103515245 + 12345`). With `n = n.wrapping_mul(1103515245).wrapping_add(12345)` both pass, so the uploads they check are fine here. **Tested** - RTX 3080 Ti 12 GB (driver 617.42), Ryzen 7 5800X, Windows 11 Pro 26300.9974, rustc 1.98.1 msvc, DXC 1.8.2502.11, debug - `4df1e6e` merged into a local tree that also has `741cb5a`, #2131 and two local diagnostic commits (`748753d`); the helper is the same line in `4df1e6e` - `cargo test -p xcl --locked --lib -- --test-threads=2`: 1149 passed, 2 failed (the two above), 26 ignored - `... --lib -- hle::d3d12x::texture_upload --test-threads=1` with the wrapping helper: 7 passed, 0 failed, 3 of 3 runs **Not tested** - `4df1e6e` on its own; the integration tests; release AI use: Claude Code with Claude Opus 5.5 ran the tests, made the one-line experiment and wrote this.
CharlyRien commented 2026-11-25 09:08:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CharlyRien on 2026-11-25T08:59:56Z.


A data point for the grey scene behind the HUD: on another tree, the two causes this description names (#541 / #2092 and #697), taken together, are enough to get the retail title's world geometry into the depth target and the G-buffer. Numbers and limits: https://github.com/xcl-dev/xcl/issues/697#issuecomment-7155524209

Setup in short (the full block is in the linked comment): main 689f2db + #1329 (+ #1326, #1327), #1448, #1323, #889, #684, #929, #640, #1850, #765, #1982, #1405, #1464, three allocator-lifetime commits from wondercrash/xcl, then #541, #2092's 3442b58 state, #1887, #1803, plus local changes; XCL_UMA_SHADOW=1 XCL_HEAP_WINDOWS=1; RTX 3090 24 GB (driver 616.56), Windows 11 22631; one clean run and one partial run.

What had to be there, beyond #541 + #2092 + #1803 as they are:

  • the two-pass compute pass gets #1803's heap addresses (the mesh programs load a V# from the view heap by index; first register stays 16);
  • the buffers the title places in the GPU view of its 24 GB pair are readable by translated shaders: buffer views created by address (device #70), and root views, in the two-pass stages too. I did it with local copies in a sparse window, refilled from the CPU view every present – an experiment, not a design (about 75 000 copies, 1.4 GB).

With both: 115 of 241 indirect mesh draws arrive with groups, 861 of 1 003 two-pass record headers carry real meshlet counts, and the main depth target is 91 – 100 % away from its clear value, with a character and the scene visible in the dumps. With either one alone nothing is rasterised (the culling that feeds the mesh draws reads its object lists from the GPU view too).

Not there yet: the scene's HDR colour target stays black and the presented frame is still close to uniform; the device is still removed about two minutes into the world (#1452).

AI use: Claude Code (Claude Fable 5.2 coordinating, Claude Opus 5.5 for the ports and the runs) did this and drafted the comment.

<!-- greyfinch-sync:ivall/xcl:comment:7157738964 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157738964). Originally posted by [CharlyRien](https://github.com/CharlyRien) on 2026-11-25T08:59:56Z. --- **A data point for the grey scene behind the HUD: on another tree, the two causes this description names (#541 / #2092 and #697), taken together, are enough to get the retail title's world geometry into the depth target and the G-buffer.** Numbers and limits: https://github.com/xcl-dev/xcl/issues/697#issuecomment-7155524209 Setup in short (the full block is in the linked comment): `main` `689f2db` + #1329 (+ #1326, #1327), #1448, #1323, #889, #684, #929, #640, #1850, #765, #1982, #1405, #1464, three allocator-lifetime commits from `wondercrash/xcl`, then #541, #2092's `3442b58` state, #1887, #1803, plus local changes; `XCL_UMA_SHADOW=1 XCL_HEAP_WINDOWS=1`; RTX 3090 24 GB (driver 616.56), Windows 11 22631; one clean run and one partial run. What had to be there, beyond #541 + #2092 + #1803 as they are: - the two-pass compute pass gets #1803's heap addresses (the mesh programs load a V# from the view heap by index; first register stays 16); - the buffers the title places in the GPU view of its 24 GB pair are readable by translated shaders: buffer views created by address (device #70), and root views, in the two-pass stages too. I did it with local copies in a sparse window, refilled from the CPU view every present – an experiment, not a design (about 75 000 copies, 1.4 GB). With both: 115 of 241 indirect mesh draws arrive with groups, 861 of 1 003 two-pass record headers carry real meshlet counts, and the main depth target is 91 – 100 % away from its clear value, with a character and the scene visible in the dumps. With either one alone nothing is rasterised (the culling that feeds the mesh draws reads its object lists from the GPU view too). Not there yet: the scene's HDR colour target stays black and the presented frame is still close to uniform; the device is still removed about two minutes into the world (#1452). **AI use**: Claude Code (Claude Fable 5.2 coordinating, Claude Opus 5.5 for the ports and the runs) did this and drafted the comment.
kole07139 commented 2026-11-25 10:10:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kole07139 on 2026-11-25T09:59:39Z.


RTX 3070 8 GB / 32 GB RAM, Windows, 4df1e6e unchanged: the whole compute pack precompiles in 46 min at 9.2 GB. In the title, presents stop at 102–124 s in all six runs; one of them ends in DXGI_ERROR_DEVICE_HUNG. In every run whose log has one, the stop comes within 2 s of the first mid-list Wait64 split.

After that stop, the title and XCL are both waiting and nothing runs:

  • no present, submit or DirectStorage request;
  • no GPU-wait timeout;
  • in thread dumps at 140, 200 and 300 s every thread is idle or blocked in a wait, the same in all three.

8ff4b02, on the same machine and settings, kept presenting up to 128–264 s.

This is an 8 GB card on Windows. The stop is at about the time @frenziedcoder's RTX 5080 loses the device on this head.

Setup

  • Hardware and software:
    • RTX 3070 8 GB, NVIDIA 617.42, 32-lane waves;
    • i9-9900K, 32 GB RAM (commit limit 38.3 GB);
    • Windows 11 Pro N 26200, Rust 1.99.0, release.
  • The retail title of #505, run from an SSD copy.
  • Settings, as in the description: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1, plus XCL_NETWORK=0 XCL_ACTIVITY=1.
  • 480 s per run (XCL_RUN_SECONDS), with A pressed every 5 s from 15 s.
  • Caches: xcl shaders <pack> --precompile --only cs --pipelines with XCL_PRECOMPILE_SLICE=i/3, 3 processes, into a fresh XCL_DXIL_CACHE. The six runs came one after another on that cache.

Precompile (2 689 compute programs)

head result time peak commit, 3 processes lowest free commit
4df1e6e 2 689 made, 0 errors, 0 refused 46 min 9.2 GB 13.0 GB
8ff4b02 2 689 made, 0 errors, 0 refused 41 min 14.5 GB 4.1 GB

Title runs on 4df1e6e

run extra settings first mid-list split ¹ last presents end
1 – – 104 s device removed 0x887a0006 at 104.9 s
2 – 104.8 s 102–104 s alive until 480 s, no present after the stop
3 – 120.4 s 120 s the same
4 XCL_DRED=1 118.0 s 118 s the same
5 XCL_DRED=1 XCL_WATCH_HOT=0 122.8 s 124 s the same
6 as run 5 + XCL_THREAD_DUMP_AT=140,200,300 116.4 s 116 s the same

¹ D3D12.X: split command list (type 2) around mid-list Wait after Write64 (#1). Run 1 has none before its removal.

For comparison, 8ff4b02 on the same cache method:

run last presents end
1 128 s alive until 480 s
2 240 s alive until 480 s
3 264 s (first mid-list split at 266.6 s) alive until 480 s

In runs 2 and 3 it presented 2–7 frames per second from ~40–60 s on.

What the stop looks like

  • Before the stop: 30 fps in the menus, and 2 s windows at 25–30 fps between 90 s and 116 s.
  • The last seconds:
    1. A burst of dispatches comes with few or no presents: 3 619 in 2 s in run 2, 7 689 in run 3, 8 520 in run 5.
    2. Then the mid-list split.
    3. Then Wait64BitValueX … bridged to GPU queue.Wait (… wait-before-signal, after_write64=false).
      • In runs 2, 5 and 6 one of these is on queue 0 for the same address, 0x704180158, with prod=qNone. In run 4 they are on 0x70417fe58 / 0x70417fe10 / 0x70417fee8, also prod=qNone.
      • In run 5 four queues also wait on 0x704180268–0x7041802a8 >= 0x8e1 with prod=qSome(1).
    4. Within ~2 s presents, submits and DirectStorage requests all go to 0 and stay there. In run 6 the last 2 s window with DirectStorage work is at 118 s: 1 139 requests, 0 failed.
  • Nothing reports a timeout: no GPU queue.Wait … did not complete within 5000 ms, no watchdog release and no device removal (except run 1). Audio keeps decoding. A few graphics pipelines are still built after the stop.
  • Thread dumps (run 6, 140 / 200 / 300 s, 146–152 threads):
    • Every XCL thread is idle, with the same stack in all three dumps:
      • xcl-pso-* and xcl-dxc-* waiting for work;
      • xcl-dstorage ×17 in QueueInner::run waiting on its channel;
      • xcl-sync-watchdog in its condvar wait (no armed GPU waits);
      • xcl-fences, xcl-copy-* and xcl-sparse-readback waiting.
    • Every title thread waits in KERNELBASE (WaitForSingleObject-style) at the same game address in all three dumps:
      • 15 workers at +0x221c3c2;
      • the title's main thread, under xcl::loader::main_thread, at +0x56a0d < +0x23cf735 < +0x8126a7 ….
    • No thread is running code in any dump.
    • So the title waits for something that never comes, and XCL is not working on anything.
    • I have not found which handle the main thread waits on.
  • On screen (I watched runs 4 and 5):
    • After the opening intro, during the world-loading screen, images flicker.
    • In run 4 whole images appeared and disappeared.
    • With XCL_WATCH_HOT=0 (run 5) it is much less: thin horizontal stripes at the top and bottom of the screen.
    • Then a steady black screen.
    • So @Eterst's XCL_WATCH_HOT finding holds here too, but XCL_WATCH_HOT=0 does not move the stop.
  • Compute is not what waits. In runs 2 and 3, 183 and 223 compute pipelines came from blobs, with 2 and 0 built cold. Graphics pipelines are still built cold at first: run 3 built 24, 13 "wanted at once", 75 s in total.
  • Memory:
    • Peak process commit 32.1–35.4 GB.
    • XCL's memory: line reports 17.5–18.4 GB of local video memory on this 8 GB card (14.9 GB on 8ff4b02), so the driver is presumably paging. I have not measured whether that matters for the stop.
  • Without this branch: on the same machine (main 6c89285 + #1448 + #1660 + #1798, HLSL path, compute precompiled the same way), two runs ended in 0x887a0005 at 228 s and 131 s.

Not tested

  • XCL_DRED=1 on a run that loses the device. Run 1, the one removal, was without it.
  • Which handle the title's main thread waits on.
  • What the queue waits on 0x704180158 are for.
  • A VRAM budget or a smaller texture pool.
  • The unit and GPU tests on this tree.
  • Other cards.

AI use: Claude Code (Claude Opus 5.5) built the tree, ran the precompile and the runs, read the logs and thread dumps (XCL frames symbolized with the build's PDB) and wrote this report. I watched runs 4 and 5 and checked the report before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7159078757 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159078757). Originally posted by [kole07139](https://github.com/kole07139) on 2026-11-25T09:59:39Z. --- **RTX 3070 8 GB / 32 GB RAM, Windows, `4df1e6e` unchanged: the whole compute pack precompiles in 46 min at 9.2 GB. In the title, presents stop at 102–124 s in all six runs; one of them ends in `DXGI_ERROR_DEVICE_HUNG`. In every run whose log has one, the stop comes within 2 s of the first mid-list `Wait64` split.** **After that stop, the title and XCL are both waiting and nothing runs:** - no present, submit or DirectStorage request; - no GPU-wait timeout; - in thread dumps at 140, 200 and 300 s every thread is idle or blocked in a wait, the same in all three. `8ff4b02`, on the same machine and settings, kept presenting up to 128–264 s. This is an 8 GB card on Windows. The stop is at about the time @frenziedcoder's RTX 5080 loses the device on this head. **Setup** - Hardware and software: - RTX 3070 8 GB, NVIDIA 617.42, 32-lane waves; - i9-9900K, 32 GB RAM (commit limit 38.3 GB); - Windows 11 Pro N 26200, Rust 1.99.0, release. - The retail title of #505, run from an SSD copy. - Settings, as in the description: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1`, plus `XCL_NETWORK=0 XCL_ACTIVITY=1`. - 480 s per run (`XCL_RUN_SECONDS`), with A pressed every 5 s from 15 s. - **Caches:** `xcl shaders <pack> --precompile --only cs --pipelines` with `XCL_PRECOMPILE_SLICE=i/3`, 3 processes, into a fresh `XCL_DXIL_CACHE`. The six runs came one after another on that cache. **Precompile** (2 689 compute programs) | head | result | time | peak commit, 3 processes | lowest free commit | |---|---|---|---|---| | `4df1e6e` | 2 689 made, 0 errors, 0 refused | 46 min | 9.2 GB | 13.0 GB | | `8ff4b02` | 2 689 made, 0 errors, 0 refused | 41 min | 14.5 GB | 4.1 GB | **Title runs on `4df1e6e`** | run | extra settings | first mid-list split ¹ | last presents | end | |---|---|---|---|---| | 1 | – | – | 104 s | device removed `0x887a0006` at 104.9 s | | 2 | – | 104.8 s | 102–104 s | alive until 480 s, no present after the stop | | 3 | – | 120.4 s | 120 s | the same | | 4 | `XCL_DRED=1` | 118.0 s | 118 s | the same | | 5 | `XCL_DRED=1 XCL_WATCH_HOT=0` | 122.8 s | 124 s | the same | | 6 | as run 5 + `XCL_THREAD_DUMP_AT=140,200,300` | 116.4 s | 116 s | the same | ¹ `D3D12.X: split command list (type 2) around mid-list Wait after Write64 (#1)`. Run 1 has none before its removal. For comparison, `8ff4b02` on the same cache method: | run | last presents | end | |---|---|---| | 1 | 128 s | alive until 480 s | | 2 | 240 s | alive until 480 s | | 3 | 264 s (first mid-list split at 266.6 s) | alive until 480 s | In runs 2 and 3 it presented 2–7 frames per second from ~40–60 s on. **What the stop looks like** - **Before the stop:** 30 fps in the menus, and 2 s windows at 25–30 fps between 90 s and 116 s. - **The last seconds:** 1. A burst of dispatches comes with few or no presents: 3 619 in 2 s in run 2, 7 689 in run 3, 8 520 in run 5. 2. Then the mid-list split. 3. Then `Wait64BitValueX … bridged to GPU queue.Wait (… wait-before-signal, after_write64=false)`. - In runs 2, 5 and 6 one of these is on queue 0 for the same address, `0x704180158`, with `prod=qNone`. In run 4 they are on `0x70417fe58` / `0x70417fe10` / `0x70417fee8`, also `prod=qNone`. - In run 5 four queues also wait on `0x704180268`–`0x7041802a8 >= 0x8e1` with `prod=qSome(1)`. 4. Within ~2 s presents, submits and DirectStorage requests all go to 0 and stay there. In run 6 the last 2 s window with DirectStorage work is at 118 s: 1 139 requests, 0 failed. - **Nothing reports a timeout:** no `GPU queue.Wait … did not complete within 5000 ms`, no watchdog release and no device removal (except run 1). Audio keeps decoding. A few graphics pipelines are still built after the stop. - **Thread dumps (run 6, 140 / 200 / 300 s, 146–152 threads):** - Every XCL thread is idle, with the same stack in all three dumps: - `xcl-pso-*` and `xcl-dxc-*` waiting for work; - `xcl-dstorage` ×17 in `QueueInner::run` waiting on its channel; - `xcl-sync-watchdog` in its condvar wait (no armed GPU waits); - `xcl-fences`, `xcl-copy-*` and `xcl-sparse-readback` waiting. - Every title thread waits in `KERNELBASE` (`WaitForSingleObject`-style) at the same game address in all three dumps: - 15 workers at `+0x221c3c2`; - the title's main thread, under `xcl::loader::main_thread`, at `+0x56a0d < +0x23cf735 < +0x8126a7 …`. - No thread is running code in any dump. - So the title waits for something that never comes, and XCL is not working on anything. - I have not found which handle the main thread waits on. - **On screen (I watched runs 4 and 5):** - After the opening intro, during the world-loading screen, images flicker. - In run 4 whole images appeared and disappeared. - With `XCL_WATCH_HOT=0` (run 5) it is much less: thin horizontal stripes at the top and bottom of the screen. - Then a steady black screen. - So @Eterst's `XCL_WATCH_HOT` finding holds here too, but `XCL_WATCH_HOT=0` does not move the stop. - **Compute is not what waits.** In runs 2 and 3, 183 and 223 compute pipelines came from blobs, with 2 and 0 built cold. Graphics pipelines are still built cold at first: run 3 built 24, 13 "wanted at once", 75 s in total. - **Memory:** - Peak process commit 32.1–35.4 GB. - XCL's `memory:` line reports 17.5–18.4 GB of local video memory on this 8 GB card (14.9 GB on `8ff4b02`), so the driver is presumably paging. I have not measured whether that matters for the stop. - **Without this branch:** on the same machine (`main` `6c89285` + #1448 + #1660 + #1798, HLSL path, compute precompiled the same way), two runs ended in `0x887a0005` at 228 s and 131 s. **Not tested** - `XCL_DRED=1` on a run that loses the device. Run 1, the one removal, was without it. - Which handle the title's main thread waits on. - What the queue waits on `0x704180158` are for. - A VRAM budget or a smaller texture pool. - The unit and GPU tests on this tree. - Other cards. **AI use:** Claude Code (Claude Opus 5.5) built the tree, ran the precompile and the runs, read the logs and thread dumps (XCL frames symbolized with the build's PDB) and wrote this report. I watched runs 4 and 5 and checked the report before posting.
MrEjecutor commented 2026-11-25 10:10:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MrEjecutor on 2026-11-25T10:00:42Z.


Test of 41303e4 on a mid-range Blackwell card: the caches fill cleanly, but world loading stops presenting at 80–90 s in 3 of 3 runs

Setup: RTX 5060 Ti 16 GB (32-lane waves), driver 621.24, Intel Core Ultra 5 225F (10 cores), 32 GB RAM, Windows 11 build 26200, Rust 1.100.0, release build of this head. The newer retail title of #505, my own copy, default console type.

Caches: 8 processes with XCL_PRECOMPILE_SLICE=0/8 … 7/8 and the run's switches built all 2,689 compute pipelines, 0 refused, in 218 minutes (on a shared machine, at idle priority). In the runs, the pipelines came from the driver cache.

Runs: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1, XCL_RUN_SECONDS=300, scripted A presses.

run XCL_UMA_SHADOW last present video memory, local (end) committed (end)
1 1 90 s 18.1 GB 34.5 GB
2 1 84 s 18.3 GB 34.7 GB
3 unset 80 s 14.3 GB 30.8 GB
  • All three show the menus at a steady 30 fps, then the loading art. In each, the last 2-second interval with presents, or the one right after it, has about 7,500–8,800 dispatches (against tens to a few hundred before); after that, no presents and almost no submits until the 300 s limit. The process stays alive; I see no crash and no release by the GPU wait watchdog in the log.
  • Just before the stop, the log has Wait64BitValueX … bridged to GPU queue.Wait (…, prod=qNone…; wait-before-signal) on queues 0 and 1, which looks like the Wait64BitValueX item still open in your description.
  • Runs 1 and 2 went past the card's 16 GB of video memory with the copy in video memory, so I ran without it: less memory, the same stop. So on this card the stop does not come from that copy.
  • DirectStorage: 87,500–88,800 requests per run, 0 failed.
  • Edit, after @kole07139's RTX 3070 report: the same marker here. In all three runs, the first D3D12.X: split command list (type 2) around mid-list Wait after Write64 (#1) comes right at the stop: at 89.8 s, 84.6 s and 79.6 s, against last presents at 90, 84 and 80 s. None of my runs ended in a device removal.

So on this card the world is never reached, and I have no frame rate in the world to compare with your 5090.

Not tested: the Series S profile; presses other than A and down; the test suite on this tree.

AI use: Claude Code (Claude Opus 5.5) built this tree, ran it on my machine and wrote this; checked by mrejecutor. No game data attached.

<!-- greyfinch-sync:ivall/xcl:comment:7159102474 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159102474). Originally posted by [MrEjecutor](https://github.com/MrEjecutor) on 2026-11-25T10:00:42Z. --- **Test of `41303e4` on a mid-range Blackwell card: the caches fill cleanly, but world loading stops presenting at 80–90 s in 3 of 3 runs** **Setup:** RTX 5060 Ti 16 GB (32-lane waves), driver 621.24, Intel Core Ultra 5 225F (10 cores), 32 GB RAM, Windows 11 build 26200, Rust 1.100.0, release build of this head. The newer retail title of #505, my own copy, default console type. **Caches:** 8 processes with `XCL_PRECOMPILE_SLICE=0/8` … `7/8` and the run's switches built all **2,689 compute pipelines, 0 refused**, in 218 minutes (on a shared machine, at idle priority). In the runs, the pipelines came from the driver cache. **Runs:** `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1`, `XCL_RUN_SECONDS=300`, scripted A presses. | run | `XCL_UMA_SHADOW` | last present | video memory, local (end) | committed (end) | |---|---|---|---|---| | 1 | 1 | 90 s | 18.1 GB | 34.5 GB | | 2 | 1 | 84 s | 18.3 GB | 34.7 GB | | 3 | unset | 80 s | 14.3 GB | 30.8 GB | - All three show the menus at a steady 30 fps, then the loading art. In each, the last 2-second interval with presents, or the one right after it, has about 7,500–8,800 dispatches (against tens to a few hundred before); after that, no presents and almost no submits until the 300 s limit. The process stays alive; I see no crash and no release by the GPU wait watchdog in the log. - Just before the stop, the log has `Wait64BitValueX … bridged to GPU queue.Wait (…, prod=qNone…; wait-before-signal)` on queues 0 and 1, which looks like the `Wait64BitValueX` item still open in your description. - Runs 1 and 2 went past the card's 16 GB of video memory with the copy in video memory, so I ran without it: less memory, the same stop. So on this card the stop does not come from that copy. - DirectStorage: 87,500–88,800 requests per run, 0 failed. - **Edit, after @kole07139's RTX 3070 report:** the same marker here. In all three runs, the first `D3D12.X: split command list (type 2) around mid-list Wait after Write64 (#1)` comes right at the stop: at 89.8 s, 84.6 s and 79.6 s, against last presents at 90, 84 and 80 s. None of my runs ended in a device removal. So on this card the world is never reached, and I have no frame rate in the world to compare with your 5090. Not tested: the Series S profile; presses other than A and down; the test suite on this tree. AI use: Claude Code (Claude Opus 5.5) built this tree, ran it on my machine and wrote this; checked by mrejecutor. No game data attached.
ShyVortex commented 2026-11-25 11:09:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ShyVortex on 2026-11-25T10:19:00Z.


Test report on 4df1e6e (this branch's head), for the "other hardware" and "cold shader cache" points under Not tested.

Setup: NVIDIA GeForce RTX 3080 Ti Laptop 16 GB (driver 32.0.16.2140), Intel i7-12700H, 32 GB RAM, Windows 11 build 26300, release build. Env: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_NETWORK=0. Retail 1.0.2.1. Two runs, Enter pressed through the menus: one with a cold cache (25 min), one with a warm cache (20 min).

Result:

  • Menus at 30 fps.
  • Presents stop at ~2100 frames, at 102 s (cold) and 95 s (warm), right where the world load starts.
  • No crash and no device removal in either run; both were stopped at the time limit.
  • Plain main 568e7db stops at the same point (~2400 frames, 117 s).
  • Before this, main 1ec4c98 hit the game's watchdog crash (#846) here; that's gone.

Why it stops presenting: after that point, a title thread compiles huge compute pipelines one at a time:

D3D12.X: driver compile start #1538: compute PSO, 814656 B DXIL, record 9ee3ab86b929f4d0, driver blob absent
D3D12.X: driver compile finish #1538: compute PSO, 814656 B DXIL, 12735 ms, huge, ungated here (a title thread's, cached, or gated by its caller)
  • Each takes 12–15 s on this GPU (730–850 KB of DXIL).
  • The disk cache works: 151 compiles in the warm run were "driver blob supplied".
  • None of the warm run's 25 huge records appeared in the cold run. Each run gets further through the backlog; it doesn't look like a hang.

Other observations:

  • The cold run logged ExecuteIndirect of CS … – out of range, not run (30 out of range so far), with float-looking group counts (e.g. 0x43960000 x 0x447a0000 x 0x1). The warm run logged none.
  • coherent 3998/4095 MB in every run.

Not tested: AMD; a run long enough to get through all the huge compiles.

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs on the hardware above, read the logs and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7159528123 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159528123). Originally posted by [ShyVortex](https://github.com/ShyVortex) on 2026-11-25T10:19:00Z. --- Test report on `4df1e6e` (this branch's head), for the "other hardware" and "cold shader cache" points under **Not tested**. **Setup:** NVIDIA GeForce RTX 3080 Ti Laptop 16 GB (driver 32.0.16.2140), Intel i7-12700H, 32 GB RAM, Windows 11 build 26300, release build. Env: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_NETWORK=0`. Retail 1.0.2.1. Two runs, Enter pressed through the menus: one with a cold cache (25 min), one with a warm cache (20 min). **Result:** - Menus at 30 fps. - Presents stop at ~2100 frames, at 102 s (cold) and 95 s (warm), right where the world load starts. - No crash and no device removal in either run; both were stopped at the time limit. - Plain `main` `568e7db` stops at the same point (~2400 frames, 117 s). - Before this, `main` `1ec4c98` hit the game's watchdog crash (#846) here; that's gone. **Why it stops presenting:** after that point, a title thread compiles huge compute pipelines one at a time: ``` D3D12.X: driver compile start #1538: compute PSO, 814656 B DXIL, record 9ee3ab86b929f4d0, driver blob absent D3D12.X: driver compile finish #1538: compute PSO, 814656 B DXIL, 12735 ms, huge, ungated here (a title thread's, cached, or gated by its caller) ``` - Each takes 12–15 s on this GPU (730–850 KB of DXIL). - The disk cache works: 151 compiles in the warm run were "driver blob supplied". - None of the warm run's 25 huge records appeared in the cold run. Each run gets further through the backlog; it doesn't look like a hang. **Other observations:** - The cold run logged `ExecuteIndirect of CS … – out of range, not run (30 out of range so far)`, with float-looking group counts (e.g. `0x43960000 x 0x447a0000 x 0x1`). The warm run logged none. - `coherent 3998/4095 MB` in every run. **Not tested:** AMD; a run long enough to get through all the huge compiles. **AI use:** Claude Code (Claude Opus 5.5) ran the builds and runs on the hardware above, read the logs and wrote this report.
kole07139 commented 2026-11-25 11:09:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kole07139 on 2026-11-25T10:43:40Z.


Follow-up to my report above, same RTX 3070 8 GB machine and caches, 4df1e6e: the stop at ~110 s happens with XCL_UMA_SHADOW=1 only.

  • With the shadow, the stop is the title waiting on the CPU, with every queue and fence caught up.
  • Without the shadow, the title goes on into the prologue cutscene: audio and subtitles play, but the scene is a flat violet background (the colour of the menus' backdrop).

@vakaobr, this may concern #1329's shadow. @theaustinayers.

1. What is pending at the stop, with the shadow.

  • I added a local diagnostic, about 15 lines: when XCL_THREAD_DUMP_AT dumps the threads, XCL also logs the four summaries the GPU-wait watchdog prints at a time-out (fence_x::pending_summary, internal_waits_summary, progress_summary, edges_summary).

  • With XCL_UMA_SHADOW=1 (presents stop at 110 s), the result at 135, 200 and 300 s:

    sync state at 135 s: pending title ID3D12Fences: none
    sync state at 135 s: XCL's own queue waits unmet: none
    sync state at 135 s: queues behind: no queue is behind
    sync state at 135 s: armed GPU waits 0, wait edges: 0 waits:
    

    It is the same at 200 s and 300 s.

  • So every queue has finished all it was given, and no title fence lags its signals or waits.

  • Together with the thread dumps of the report above (every title and XCL thread blocked in a wait), the title is waiting on the CPU for something that is not a D3D12 fence, and it never comes.

2. The same tree without XCL_UMA_SHADOW. Same caches, settings and inputs, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_WATCH_HOT=0 XCL_DRED=1 (the shadow run with the diagnostic had the same plus XCL_UMA_SHADOW=1), two runs.

run stop near 100 s after it end
shadow on (6 runs, report above, + 1 with the diagnostic) yes, for good no present, submit or DirectStorage request until 480 s alive
shadow off, 1 yes, 100–170 s, the same caught-up state at 135 s resumes at ~172 s: 1 present per 2–4 s, DirectStorage busy, GPU-wait releases every ~10 s from 209 s 0x887a0005 at 363 s
shadow off, 2 no 1 present per 4–6 s up to 270 s, GPU-wait releases from 121 s (0x70417fef8, 0x70417fe68; producer one submit behind) alive, no present after 270 s
  • In run 2 I watched the screen. For the first time here, the prologue cutscene of the world played: audio, and subtitles, a little irregular and sometimes stuttering, but the picture was only a violet background.
  • Local video memory peaks at ~16 GB without the shadow, against 17.5–18.4 GB with it.
  • Without the shadow, the releases are the cross-queue waits of #1452: a waiter and its producer one value apart, released after 5 s.

3. Why the shadow could leave the title waiting: a reading of the code, not measured.

  • sparse::readback_after_execute copies back, after each submit, the ranges a title list wrote through explicit memory operations (Write32/64, FillMemoryWith32BitValueX, CopyMemoryToMemoryX). #1329's description adds Map and PC copies into console buffers.
  • I did not find a copy back of what shaders write through UAVs into the shadowed coherent window. On the console that memory is one memory, so the CPU sees it at once.
  • If the title polls a value a compute or pixel shader writes there, such as streaming or visibility feedback or a counter, it would never see it with the shadow. That would fit what I measured:
    • a wait with nothing pending on the GPU;
    • no recovery with the shadow;
    • progress without it.
  • I have not confirmed which memory the title waits on.

Not tested

  • Which handle or address the title's main thread waits on.
  • A shadow with UAV ranges read back.
  • More runs without the shadow (two here).
  • Other cards.

AI use: Claude Code (Claude Opus 5.5) wrote the diagnostic, ran the runs, read the logs and the code, and wrote this comment. I watched the runs and checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7160090884 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160090884). Originally posted by [kole07139](https://github.com/kole07139) on 2026-11-25T10:43:40Z. --- **Follow-up to [my report above](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159078757), same RTX 3070 8 GB machine and caches, `4df1e6e`: the stop at ~110 s happens with `XCL_UMA_SHADOW=1` only.** - With the shadow, the stop is the title waiting on the CPU, with every queue and fence caught up. - Without the shadow, the title goes on into the prologue cutscene: audio and subtitles play, but the scene is a flat violet background (the colour of the menus' backdrop). @vakaobr, this may concern #1329's shadow. @theaustinayers. **1. What is pending at the stop, with the shadow.** - I added a local diagnostic, about 15 lines: when `XCL_THREAD_DUMP_AT` dumps the threads, XCL also logs the four summaries the GPU-wait watchdog prints at a time-out (`fence_x::pending_summary`, `internal_waits_summary`, `progress_summary`, `edges_summary`). - With `XCL_UMA_SHADOW=1` (presents stop at 110 s), the result at 135, 200 and 300 s: ``` sync state at 135 s: pending title ID3D12Fences: none sync state at 135 s: XCL's own queue waits unmet: none sync state at 135 s: queues behind: no queue is behind sync state at 135 s: armed GPU waits 0, wait edges: 0 waits: ``` It is the same at 200 s and 300 s. - So every queue has finished all it was given, and no title fence lags its signals or waits. - Together with the thread dumps of the report above (every title and XCL thread blocked in a wait), the title is waiting on the CPU for something that is not a D3D12 fence, and it never comes. **2. The same tree without `XCL_UMA_SHADOW`.** Same caches, settings and inputs, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_WATCH_HOT=0 XCL_DRED=1` (the shadow run with the diagnostic had the same plus `XCL_UMA_SHADOW=1`), two runs. | run | stop near 100 s | after it | end | |---|---|---|---| | shadow on (6 runs, report above, + 1 with the diagnostic) | yes, for good | no present, submit or DirectStorage request until 480 s | alive | | shadow off, 1 | yes, 100–170 s, the same caught-up state at 135 s | resumes at ~172 s: 1 present per 2–4 s, DirectStorage busy, GPU-wait releases every ~10 s from 209 s | `0x887a0005` at 363 s | | shadow off, 2 | no | 1 present per 4–6 s up to 270 s, GPU-wait releases from 121 s (`0x70417fef8`, `0x70417fe68`; producer one submit behind) | alive, no present after 270 s | - In run 2 I watched the screen. For the first time here, the prologue cutscene of the world played: audio, and subtitles, a little irregular and sometimes stuttering, but the picture was only a violet background. - Local video memory peaks at ~16 GB without the shadow, against 17.5–18.4 GB with it. - Without the shadow, the releases are the cross-queue waits of #1452: a waiter and its producer one value apart, released after 5 s. **3. Why the shadow could leave the title waiting: a reading of the code, not measured.** - `sparse::readback_after_execute` copies back, after each submit, the ranges a title list wrote through explicit memory operations (`Write32/64`, `FillMemoryWith32BitValueX`, `CopyMemoryToMemoryX`). #1329's description adds `Map` and PC copies into console buffers. - I did not find a copy back of what shaders write through UAVs into the shadowed coherent window. On the console that memory is one memory, so the CPU sees it at once. - If the title polls a value a compute or pixel shader writes there, such as streaming or visibility feedback or a counter, it would never see it with the shadow. That would fit what I measured: - a wait with nothing pending on the GPU; - no recovery with the shadow; - progress without it. - I have not confirmed which memory the title waits on. **Not tested** - Which handle or address the title's main thread waits on. - A shadow with UAV ranges read back. - More runs without the shadow (two here). - Other cards. **AI use:** Claude Code (Claude Opus 5.5) wrote the diagnostic, ran the runs, read the logs and the code, and wrote this comment. I watched the runs and checked it before posting.
kanade333 commented 2026-11-25 11:09:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kanade333 on 2026-11-25T10:55:23Z.


RTX 5080 16 GB on 4df1e6e, unchanged: the world runs at 10–12 fps for one to two minutes, then the device goes. With XCL_DRED=1 it is a page fault inside a list of CopyTextureRegions, twice out of two runs. XCL_COHERENT_MB=512 is what gets this card past 53 s, and XCL_WATCH_HOT=0 removes the flicker at no cost in frames here.

Setup: NVIDIA GeForce RTX 5080 16 GB (driver 610.88, 32-lane waves), AMD Ryzen 9 9950X, 32 GB RAM (commit limit 97 GB), Windows 11 Pro 26200, release. This PR at 4df1e6e with no local change. Retail title of #505, 1.0.2.1, XCL_NETWORK=0, scripted A presses. One run per row unless said.

Caches: xcl shaders <pack> --precompile --only cs --pipelines in 6 processes (XCL_PRECOMPILE_SLICE=0/6 … 5/6, XCL_DXC_THREADS=4): 2,689 compute pipelines, 0 errors, 0 refused, 47 min, 12.1 GB private at the peak for the six together. (One process on main 6020a33 took 104 min on this machine.)

Runs (all with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1):

added world local video memory at the end end
nothing (the description's switches) loading starts at 42 s, no frame of the world 19,877 MB (15,011 MB at 30 s) 0x887a0006 at 53.4 s, System event nvlddmkm 153
XCL_COHERENT_MB=512 mostly 18–25 presents per 2 s from about 62 s 19,744 MB 0x887a0005 at 127.5 s, no nvlddmkm event
XCL_COHERENT_MB=512 XCL_WATCH_HOT=0 mostly 20–30 presents per 2 s, up to 34 20,146 MB 0x887a0005 at 176.3 s
the same + XCL_DRED=1, run 1 up to 26 presents per 2 s 19,579 MB 0x887a0006 at 70.9 s
the same + XCL_DRED=1, run 2 41–59 presents per 2 s while loading 18,481 MB 0x887a0006 at 56.5 s
  • With the 4,095 MB shadow the coherent window used 64 MB (coherent 64/4095 MB); at 512 MB it used 76–81 MB.
  • 0 draws and 0 dispatches skipped, 0 GPU-wait timeouts and 0 failed DirectStorage requests in every run. The picture of the world is grey (40 console shaders in the PSO without a translation: mes… warnings), 2D overlays are right.
  • In the three runs without DRED the removal comes within seconds of a burst of texture uploads (submit cost, textures in these 1024: … 6264 uploaded, 1853.2 MB / 9130 uploaded, 3060.6 MB).

DRED, the two runs:

run 1  DRED page fault at GPU VA 0x134ba9a000; allocations there: [type 34 ]; recently freed: []
       DRED: list … on queue 0x2ec4f1690: 2 of 13 operations done, around: 46 15 >8 8 8
       DRED: list … on queue 0x7e18d120: 0 of 4 operations done, around: >46 15 26
       DRED: list … on queue 0x7e18ae20: 0 of 28 operations done, around: >46 15 6
run 2  DRED page fault at GPU VA 0x11a2615000; allocations there: [type 34 ]; recently freed: []
       DRED: list … on queue 0x7e85d850: 76 of 210 operations done, around: 8 8 8 >8 8 8
       DRED: list … on queue 0x7e85d850: 0 of 39 operations done, around: >46 15 8
       (three more lists on the same queue, 0 of 4 / 28 / 1 done)

Both times the operation in flight is 8 (CopyTextureRegion) and the faulting address lies in a live resource (type 34), nothing recently freed. XCL_DRED=1 did not keep the driver from taking the kept blobs here (476 driver blob supplied, 10 absent in run 1). I do not know which resource it is, nor whether running 3–5 GB over the card's video memory plays a part: @frenziedcoder's RTX 5080 report above has a DRED page fault too.

Flicker (XCL_WATCH_HOT): three runs of 62 s with XCL_FRAME_DUMP=3, counting single all-black dumps between pictures of the 2D loading screens: 4 with the switches above, 1 without XCL_LOOK_SKIP, 0 with XCL_WATCH_HOT=0 (each run also has one black stretch of 2–3 dumps near its end, which I take for a real transition). That agrees with @Eterst's measurement. The person at this machine saw the flicker with the default and says the logos are right with XCL_WATCH_HOT=0. In all three runs the dumps were black for 9 s between the logo and the first loading picture (frames 683–956), whatever the switch; I have not looked into that.

A page budget does not get this card under its memory. Locally I applied #640 on this head (10 conflict blocks; its pool part rewritten for the TilePool, not pushed anywhere). XCL_PAGE_BUDGET_MB=5120: 16,888 MB local instead of 20,146, same frame rate, 0x887a0005 at 185.7 s. With 3,072 MB and textures evictable after 1 s instead of 5 (a local knob): 15,859 MB, 0x887a0005 at 153.9 s. Target pages stayed at 6.6–7.5 GB and the sparse pools at 6,144 MB.

Series S profile (XCL_DEVICE_TYPE=lockhart, with #495 applied by hand): with sparse:16 the title stops on its own int3 at 2.0 s (+0x1cf336c), after console descriptor heap: the title's memory 0x501400000 (0x2600000 bytes) not used (window Some(1), committed true). With XCL_COHERENT_HEAPS=sparse:1024 XCL_COHERENT_MB=1024 it starts, shows no frame after 60 s (three compute pipelines built in 18, 18 and 66 s, not in the precompiled set), holds 18,024 MB and ends in 0x887a0006 at 193 s.

Not tested

  • A newer driver (610.88 here), AMD, Intel.
  • More than one run of each row, except DRED (two).
  • The whole test suite on this head.
  • Which resource the fault is in.

AI use: Claude Code with Claude Fable 5.2 built the trees, ran the title, read the logs and wrote this report.


Update 1 (driver 621.40, same machine, same tree 4df1e6e, same switches + XCL_DRED=1; compute pipelines rebuilt for this driver in 82 min with 4 processes):

  • Two runs of 420 s: one removed at 379.3 s, one ran to the limit (2,285 presents after 62 s). With the older driver both DRED runs ended within 71 s.
  • The removal is still inside a run of CopyTextureRegion, but DRED now reports the page fault at GPU VA 0x0 with no allocation, not inside a live resource.
  • @joeypercia's probe passes all 13 cases on this card, and #2270 made no difference in two runs each: https://github.com/xcl-dev/xcl/pull/2270#issuecomment-7163435608
  • One run each per row above was on 610.88; nothing above has been rerun on 621.40 except these.

AI use for this update: Claude Code (Claude Opus 5.5).


Update 2 (driver 621.40), on @KDenKC's point about the first two rows: two more runs of the same tree with XCL_WATCH_HOT=0 but without XCL_COHERENT_MB=512 (so the 4,095 MB shadow of the coherent window, coherent 64/4095 and 81/4095 MB), no DRED, 240 s limit:

run end presents after 62 s local video memory, peak
37 0x887a0006 at 68.0 s 47 21,581 MB
38 0x887a0006 at 103.2 s 398 23,118 MB

So on this 16 GB card both switches count, for different stops: XCL_WATCH_HOT=0 is what gets past the ~53 s removal in the menus (as @KDenKC found on the 5090, where the window is 512 MB already), and the 512 MB window is what keeps the world running for minutes here (the two runs of Update 1, with both switches: removed at 379 s, and no removal in 420 s), most likely by leaving ~3.5 GB more of the card's memory to the title. My first summary credited the 512 MB window for the 53 s stop; that was wrong.

AI use for this update: Claude Code (Claude Opus 5.5).


Update 3, for @frenziedcoder (same card, driver 621.40): all my world numbers on 621.40 are with XCL_UMA_SHADOW=1, and here the shadow does not stop the run although the card is over its memory: 21.1–21.5 GB of local video memory reported for 20 minutes, with Windows paging the rest. With the switches of my runs plus #1798 (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_COHERENT_MB=512 XCL_LOOK_SKIP=1 XCL_WATCH_HOT=0 XCL_DRED=1): two 420 s runs and one 1,200 s run, no removal in any of them, 810–876 presents a minute (about 14 fps) from the 4th to the 20th minute of the long one, the world grey throughout. Details: https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7165640851. So a 15.9 GB guard would stop my runs too; if your guard can be lifted for one run, that would tell whether the shadow is what makes the difference between ~2 and ~14 fps on this card. Machine differences I know of: 32 GB of RAM here and a 64 GB page file (commit limit 97 GB; the process sits at 42–46 GB).

AI use for this update: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7160351986 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160351986). Originally posted by [kanade333](https://github.com/kanade333) on 2026-11-25T10:55:23Z. --- **RTX 5080 16 GB on `4df1e6e`, unchanged: the world runs at 10–12 fps for one to two minutes, then the device goes. With `XCL_DRED=1` it is a page fault inside a list of `CopyTextureRegion`s, twice out of two runs. `XCL_COHERENT_MB=512` is what gets this card past 53 s, and `XCL_WATCH_HOT=0` removes the flicker at no cost in frames here.** **Setup:** NVIDIA GeForce RTX 5080 16 GB (driver 610.88, 32-lane waves), AMD Ryzen 9 9950X, 32 GB RAM (commit limit 97 GB), Windows 11 Pro 26200, release. This PR at `4df1e6e` with no local change. Retail title of #505, 1.0.2.1, `XCL_NETWORK=0`, scripted A presses. One run per row unless said. **Caches:** `xcl shaders <pack> --precompile --only cs --pipelines` in 6 processes (`XCL_PRECOMPILE_SLICE=0/6` … `5/6`, `XCL_DXC_THREADS=4`): 2,689 compute pipelines, 0 errors, 0 refused, 47 min, 12.1 GB private at the peak for the six together. (One process on `main` `6020a33` took 104 min on this machine.) **Runs** (all with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1`): | added | world | local video memory at the end | end | |---|---|---|---| | nothing (the description's switches) | loading starts at 42 s, no frame of the world | 19,877 MB (15,011 MB at 30 s) | `0x887a0006` at 53.4 s, System event `nvlddmkm` 153 | | `XCL_COHERENT_MB=512` | mostly 18–25 presents per 2 s from about 62 s | 19,744 MB | `0x887a0005` at 127.5 s, no `nvlddmkm` event | | `XCL_COHERENT_MB=512 XCL_WATCH_HOT=0` | mostly 20–30 presents per 2 s, up to 34 | 20,146 MB | `0x887a0005` at 176.3 s | | the same + `XCL_DRED=1`, run 1 | up to 26 presents per 2 s | 19,579 MB | `0x887a0006` at 70.9 s | | the same + `XCL_DRED=1`, run 2 | 41–59 presents per 2 s while loading | 18,481 MB | `0x887a0006` at 56.5 s | - With the 4,095 MB shadow the coherent window used 64 MB (`coherent 64/4095 MB`); at 512 MB it used 76–81 MB. - 0 draws and 0 dispatches skipped, 0 GPU-wait timeouts and 0 failed DirectStorage requests in every run. The picture of the world is grey (40 `console shaders in the PSO without a translation: mes…` warnings), 2D overlays are right. - In the three runs without DRED the removal comes within seconds of a burst of texture uploads (`submit cost, textures in these 1024: … 6264 uploaded, 1853.2 MB` / `9130 uploaded, 3060.6 MB`). **DRED, the two runs:** ``` run 1 DRED page fault at GPU VA 0x134ba9a000; allocations there: [type 34 ]; recently freed: [] DRED: list … on queue 0x2ec4f1690: 2 of 13 operations done, around: 46 15 >8 8 8 DRED: list … on queue 0x7e18d120: 0 of 4 operations done, around: >46 15 26 DRED: list … on queue 0x7e18ae20: 0 of 28 operations done, around: >46 15 6 run 2 DRED page fault at GPU VA 0x11a2615000; allocations there: [type 34 ]; recently freed: [] DRED: list … on queue 0x7e85d850: 76 of 210 operations done, around: 8 8 8 >8 8 8 DRED: list … on queue 0x7e85d850: 0 of 39 operations done, around: >46 15 8 (three more lists on the same queue, 0 of 4 / 28 / 1 done) ``` Both times the operation in flight is `8` (`CopyTextureRegion`) and the faulting address lies in a live resource (type 34), nothing recently freed. `XCL_DRED=1` did not keep the driver from taking the kept blobs here (476 `driver blob supplied`, 10 absent in run 1). I do not know which resource it is, nor whether running 3–5 GB over the card's video memory plays a part: @frenziedcoder's RTX 5080 report above has a DRED page fault too. **Flicker (`XCL_WATCH_HOT`):** three runs of 62 s with `XCL_FRAME_DUMP=3`, counting single all-black dumps between pictures of the 2D loading screens: 4 with the switches above, 1 without `XCL_LOOK_SKIP`, 0 with `XCL_WATCH_HOT=0` (each run also has one black stretch of 2–3 dumps near its end, which I take for a real transition). That agrees with @Eterst's measurement. The person at this machine saw the flicker with the default and says the logos are right with `XCL_WATCH_HOT=0`. In all three runs the dumps were black for 9 s between the logo and the first loading picture (frames 683–956), whatever the switch; I have not looked into that. **A page budget does not get this card under its memory.** Locally I applied #640 on this head (10 conflict blocks; its pool part rewritten for the `TilePool`, not pushed anywhere). `XCL_PAGE_BUDGET_MB=5120`: 16,888 MB local instead of 20,146, same frame rate, `0x887a0005` at 185.7 s. With 3,072 MB and textures evictable after 1 s instead of 5 (a local knob): 15,859 MB, `0x887a0005` at 153.9 s. Target pages stayed at 6.6–7.5 GB and the sparse pools at 6,144 MB. **Series S profile** (`XCL_DEVICE_TYPE=lockhart`, with #495 applied by hand): with `sparse:16` the title stops on its own `int3` at 2.0 s (`+0x1cf336c`), after `console descriptor heap: the title's memory 0x501400000 (0x2600000 bytes) not used (window Some(1), committed true)`. With `XCL_COHERENT_HEAPS=sparse:1024 XCL_COHERENT_MB=1024` it starts, shows no frame after 60 s (three compute pipelines built in 18, 18 and 66 s, not in the precompiled set), holds 18,024 MB and ends in `0x887a0006` at 193 s. **Not tested** - A newer driver (610.88 here), AMD, Intel. - More than one run of each row, except DRED (two). - The whole test suite on this head. - Which resource the fault is in. AI use: Claude Code with Claude Fable 5.2 built the trees, ran the title, read the logs and wrote this report. --- **Update 1 (driver 621.40, same machine, same tree `4df1e6e`, same switches + `XCL_DRED=1`; compute pipelines rebuilt for this driver in 82 min with 4 processes):** - Two runs of 420 s: one removed at 379.3 s, one ran to the limit (2,285 presents after 62 s). With the older driver both DRED runs ended within 71 s. - The removal is still inside a run of `CopyTextureRegion`, but DRED now reports the page fault at GPU VA `0x0` with no allocation, not inside a live resource. - @joeypercia's probe passes all 13 cases on this card, and #2270 made no difference in two runs each: https://github.com/xcl-dev/xcl/pull/2270#issuecomment-7163435608 - One run each per row above was on 610.88; nothing above has been rerun on 621.40 except these. AI use for this update: Claude Code (Claude Opus 5.5). --- **Update 2 (driver 621.40), on @KDenKC's point about the first two rows:** two more runs of the same tree with `XCL_WATCH_HOT=0` but *without* `XCL_COHERENT_MB=512` (so the 4,095 MB shadow of the coherent window, `coherent 64/4095` and `81/4095 MB`), no DRED, 240 s limit: | run | end | presents after 62 s | local video memory, peak | |---|---|---|---| | 37 | `0x887a0006` at 68.0 s | 47 | 21,581 MB | | 38 | `0x887a0006` at 103.2 s | 398 | 23,118 MB | So on this 16 GB card both switches count, for different stops: `XCL_WATCH_HOT=0` is what gets past the ~53 s removal in the menus (as @KDenKC found on the 5090, where the window is 512 MB already), and the 512 MB window is what keeps the world running for minutes here (the two runs of Update 1, with both switches: removed at 379 s, and no removal in 420 s), most likely by leaving ~3.5 GB more of the card's memory to the title. My first summary credited the 512 MB window for the 53 s stop; that was wrong. AI use for this update: Claude Code (Claude Opus 5.5). --- **Update 3, for @frenziedcoder (same card, driver 621.40):** all my world numbers on 621.40 are *with* `XCL_UMA_SHADOW=1`, and here the shadow does not stop the run although the card is over its memory: 21.1–21.5 GB of local video memory reported for 20 minutes, with Windows paging the rest. With the switches of my runs plus #1798 (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_COHERENT_MB=512 XCL_LOOK_SKIP=1 XCL_WATCH_HOT=0 XCL_DRED=1`): two 420 s runs and one 1,200 s run, no removal in any of them, 810–876 presents a minute (about 14 fps) from the 4th to the 20th minute of the long one, the world grey throughout. Details: https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7165640851. So a 15.9 GB guard would stop my runs too; if your guard can be lifted for one run, that would tell whether the shadow is what makes the difference between ~2 and ~14 fps on this card. Machine differences I know of: 32 GB of RAM here and a 64 GB page file (commit limit 97 GB; the process sits at 42–46 GB). AI use for this update: Claude Code (Claude Opus 5.5).
joeypercia commented 2026-11-25 11:09:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-25T10:59:31Z.


Update: r_null_during_copyq removes the device on an RTX 5070 (Dezmonius) and passes on an RTX 3070 (upipibi). The fix is #2270: unmap_superseded waits until the work submitted before it is done. @kanade333 @Dezmonius, a run of the title with #2270 on top of this branch on your cards would show whether it was the copy page fault.


@kanade333 @dhillonjagdeep650-boop on the CopyTextureRegion page fault: both of your reports are on Ampere (3080 Ti) and Blackwell (5080). On an Ada card (RTX 4070 Ti, 621.40) I haven't seen it in 3 runs of f7e08e6 with or without the budget, and I can't make it happen synthetically either. Here is a probe you can run in a couple of minutes, to tell whether the difference is the GPU generation.

Branch joeypercia/xcl probe/reserved-copy-faults (b39608e, one test file plus its mod line, on #2057's 4df1e6e). Each case writes with CopyTextureRegion into a 64 KiB-tiled reserved texture, the kind vram::place_pages makes for the textures resource_at creates, and reads it back. One process per case:

foreach ($t in 'a_vram_copyq','b_sys_copyq','c_split_copyq','d_sys_direct','e_split_direct','f_half_null_copyq_write','g_half_null_direct_write','h_all_null_copyq_read','i_all_null_direct_read','j_sys_null_copyq_write','r_null_during_copyq','r_null_during_direct','r_other_tiles_during_copyq') {
  cargo test -q -p xcl --lib "copyfault_probe::$t" -- --ignored --nocapture --test-threads=1 | Select-String PROBE
}
  • a–j: tiles in a DEFAULT heap, in an L0 heap (741cb5a's system-memory pools), split between the two, or NULL-mapped. Copy and direct queues.
  • r_*: the mapping flipped to NULL, or to other tiles, about 6,000 times on another queue while 20 × 40 full-texture copies run, with no ordering between the two. That's what vram::unmap_superseded can do to a texture with an upload still in flight: it maps the old texture's tiles to NULL on the Pages queue as soon as a newer texture is placed over it.

On the 4070 Ti, all 13 cases: no removal. Data is right in the mapped tiles, and NULL tiles read 0. Adapter 0 is used; set XCL_ADAPTER if yours differs.

If any r_* case removes the device on your card, the likely fix is to make unmap_superseded's NULL mapping wait for the GPU work submitted before it. I can write that.

AI use

  • Claude Code (Claude Opus 5.5) wrote the probe, ran it on my machine and wrote this comment.
<!-- greyfinch-sync:ivall/xcl:comment:7160441802 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160441802). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-25T10:59:31Z. --- **Update:** `r_null_during_copyq` removes the device on an RTX 5070 ([Dezmonius](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7161253994)) and passes on an RTX 3070 ([upipibi](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7161501048)). The fix is #2270: `unmap_superseded` waits until the work submitted before it is done. @kanade333 @Dezmonius, a run of the title with #2270 on top of this branch on your cards would show whether it was the copy page fault. --- @kanade333 @dhillonjagdeep650-boop on the `CopyTextureRegion` page fault: both of your reports are on Ampere (3080 Ti) and Blackwell (5080). On an Ada card (RTX 4070 Ti, 621.40) I haven't seen it in 3 runs of `f7e08e6` with or without the budget, and I can't make it happen synthetically either. Here is a probe you can run in a couple of minutes, to tell whether the difference is the GPU generation. Branch [`joeypercia/xcl` `probe/reserved-copy-faults`](https://github.com/joeypercia/xcl/tree/probe/reserved-copy-faults) (`b39608e`, one test file plus its `mod` line, on #2057's `4df1e6e`). Each case writes with `CopyTextureRegion` into a 64 KiB-tiled reserved texture, the kind `vram::place_pages` makes for the textures `resource_at` creates, and reads it back. One process per case: ```powershell foreach ($t in 'a_vram_copyq','b_sys_copyq','c_split_copyq','d_sys_direct','e_split_direct','f_half_null_copyq_write','g_half_null_direct_write','h_all_null_copyq_read','i_all_null_direct_read','j_sys_null_copyq_write','r_null_during_copyq','r_null_during_direct','r_other_tiles_during_copyq') { cargo test -q -p xcl --lib "copyfault_probe::$t" -- --ignored --nocapture --test-threads=1 | Select-String PROBE } ``` - `a`–`j`: tiles in a `DEFAULT` heap, in an L0 heap (`741cb5a`'s system-memory pools), split between the two, or NULL-mapped. Copy and direct queues. - `r_*`: the mapping flipped to NULL, or to other tiles, about 6,000 times on another queue while 20 × 40 full-texture copies run, with no ordering between the two. That's what `vram::unmap_superseded` can do to a texture with an upload still in flight: it maps the old texture's tiles to NULL on the `Pages` queue as soon as a newer texture is placed over it. **On the 4070 Ti, all 13 cases:** no removal. Data is right in the mapped tiles, and NULL tiles read 0. Adapter 0 is used; set `XCL_ADAPTER` if yours differs. If any `r_*` case removes the device on your card, the likely fix is to make `unmap_superseded`'s NULL mapping wait for the GPU work submitted before it. I can write that. **AI use** - Claude Code (Claude Opus 5.5) wrote the probe, ran it on my machine and wrote this comment.
mgrein commented 2026-11-25 11:09:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mgrein on 2026-11-25T11:07:19Z.


RTX 4070 12 GB / 32 GB RAM on 4df1e6e: the intro's opening credits are reached; the device then goes at 164–342 s with a GPU page fault, and DRED names the resource: a sampled title texture that XCL's texture upload is copying into.

Setup

  • RTX 4070 12 GB (32-lane waves), Ryzen 5 5600X, 32 GB RAM, Windows 11 25H2 (26200), release.
  • Tree: this PR at 4df1e6e + #2195 (T# index bound = the shared heap's 1,000,000) + #1592 (DRED pipeline names) + two local diagnostics: with XCL_DRED=1 each CreatePlacedResourceX resource is named title <va> dim w x h fmt flags kind, and the DRED page-fault report reads ObjectNameW when ObjectNameA is null (SetName sets only the wide name, so before this every allocation printed without a name – #2131 does the same).
  • The newer retail title of #505, Series X profile, XCL_NETWORK=0, A pressed through the menus. All 2,689 compute pipelines built ahead (XCL_PRECOMPILE_SLICE 0/2 and 1/2: 32.9 min, 0 errors).
  • XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 (the description's), plus per row below.

What a run looks like now: 30 fps in the menus from 6 s, the loading artwork from ~110 s (the older head 8ff4b02 needed 240–300 s on this machine), the intro's opening credits over a grey scene from ~250 s.

run settings on top end
55, 56 – / XCL_COHERENT_MB=2048 no frame from 130 s to 600 s, no crash: a title thread waits in bind::execute_indirect → pso_async::resolve_wait while the xcl-pso-pre workers build graphics pipelines of 280–500 KB DXIL one at a time (huge, "driver blob absent", 2.6–3.4 s each)
57 XCL_PSO_WAIT_MS=50 XCL_HUGE_PSO_CONCURRENCY=4 presents go on (2–7 per 2 s); intro credits; device hung (0x887a0006) at 261.5 s
58 same + XCL_DRED=1 removed at 342.6 s: DRED page fault at GPU VA 0x0, no allocation; just before it 6 ExecuteIndirect with garbage group counts (0x4729aa76 x 0x46ab67c2 x …) were refused as out of range
59 no XCL_PSO_WAIT_MS (nothing skipped) removed at 164.5 s: page fault at 0x14c8fb0000 inside a resource; the list there had done 25 of 52 CopyTextureRegion
60 same removed at 306.6 s: page fault at 0x0 (after a Wait64BitValueX time-out)
61 + #1592 removed at 238.3 s: page fault in a resource, list at 248 of 700 CopyTextureRegion
62 + the names removed at 186.2 s: page fault at 0x15737a0000 in title 0x12a6a78000 dim3 1024x512 fmt83 flags0x300000 sampled (a BC5 texture on vram::Pages tiles, not GPU-owned); the list there: 7 of 11 operations done, all CopyTextureRegion – the shape of texture_upload::record

So on this card the removals come in two kinds, both while video memory stands far over the card: DXGI reports 20.7–21.0 GB local and 1.6–1.8 GB non-local at the removal (target pages 10.1–10.3 GB, sparse pools 6.1 GB, UMA shadow), with 2–5 GB of RAM free:

  1. a page fault inside a sampled title texture while XCL's upload copies into it (59, 61, 62), and
  2. a page fault at GPU VA 0x0 (58, 60; @frenziedcoder's 5080 above shows the same).

Skipping late pipelines (XCL_PSO_WAIT_MS) is not what causes them: run 59 skipped nothing and was removed earliest. Graphics pipelines are no longer the wall once their blobs are on disk: 161 of 172 came from XCL's disk cache in run 59 (11 built).

Update, runs 63–66 (same tree, same settings unless said): what the faults are not –

  • 63: uploads into textures vram has mapped to nothing (unmap_superseded) left out (a local skip in texture_upload::plan_item; 128+ left out by 150 s): still removed at 201.8 s, page fault in title 0xdef534000 dim3 1024x1024 fmt72 flags0x300000 sampled, again inside CopyTextureRegion (32 of 69 done) – a texture that was mapped when its copy was planned.
  • 64: device Evict kept resident (hooked, counted): the title never called it. That run ended on a title access violation at 131 s (write at 0x279ab0f015, +0x4f878ae) instead.
  • 65: without XCL_UMA_SHADOW: local video memory still 18.3 GB (target pages 10 GB, sparse pools 6 GB), 0–4 presents per 2 s, removed at 290.6 s with the page fault at 0x0. Just before it, as before run 58's: ExecuteIndirect of CS a6724f20f309a480, 51788b20c402ace3, 4401d482ef24797c refused as out of range, their "counts" shaped like addresses (0xf4b482d0 x 0x100004 x 0x1, arguments at 0x4f4b480e0).
  • 66: Series S profile (lockhart): the title stops on an int3 at +0x1cf336c 1.5 s after start.
  • No GPU wait was released by the watchdog and no Write64 cycle was broken in any of 58–65, so the faults do not follow a sync the watchdog broke.

Not tested: more than one run per row; AMD; the tree without #2195 (it changes no behaviour here unless an index lands in 1,000,000 – 2^21); whether the faulting texture's tiles were mapped at the moment of the copy (the next thing I'm looking at).

AI use: Claude Code (Claude Opus 5.5) made the builds and runs on this machine, wrote the two diagnostics and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7160617537 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160617537). Originally posted by [mgrein](https://github.com/mgrein) on 2026-11-25T11:07:19Z. --- **RTX 4070 12 GB / 32 GB RAM on `4df1e6e`: the intro's opening credits are reached; the device then goes at 164–342 s with a GPU page fault, and DRED names the resource: a sampled title texture that XCL's texture upload is copying into.** **Setup** - RTX 4070 12 GB (32-lane waves), Ryzen 5 5600X, 32 GB RAM, Windows 11 25H2 (26200), release. - Tree: this PR at `4df1e6e` + #2195 (T# index bound = the shared heap's 1,000,000) + #1592 (DRED pipeline names) + two local diagnostics: with `XCL_DRED=1` each `CreatePlacedResourceX` resource is named `title <va> dim w x h fmt flags kind`, and the DRED page-fault report reads `ObjectNameW` when `ObjectNameA` is null (`SetName` sets only the wide name, so before this every allocation printed without a name – #2131 does the same). - The newer retail title of #505, Series X profile, `XCL_NETWORK=0`, A pressed through the menus. All 2,689 compute pipelines built ahead (`XCL_PRECOMPILE_SLICE` 0/2 and 1/2: 32.9 min, 0 errors). - `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1` (the description's), plus per row below. **What a run looks like now:** 30 fps in the menus from 6 s, the loading artwork from ~110 s (the older head `8ff4b02` needed 240–300 s on this machine), the intro's opening credits over a grey scene from ~250 s. | run | settings on top | end | |---|---|---| | 55, 56 | – / `XCL_COHERENT_MB=2048` | no frame from 130 s to 600 s, no crash: a title thread waits in `bind::execute_indirect` → `pso_async::resolve_wait` while the `xcl-pso-pre` workers build graphics pipelines of 280–500 KB DXIL one at a time (`huge`, "driver blob absent", 2.6–3.4 s each) | | 57 | `XCL_PSO_WAIT_MS=50 XCL_HUGE_PSO_CONCURRENCY=4` | presents go on (2–7 per 2 s); intro credits; device hung (`0x887a0006`) at 261.5 s | | 58 | same + `XCL_DRED=1` | removed at 342.6 s: DRED page fault at GPU VA `0x0`, no allocation; just before it 6 `ExecuteIndirect` with garbage group counts (`0x4729aa76 x 0x46ab67c2 x …`) were refused as out of range | | 59 | no `XCL_PSO_WAIT_MS` (nothing skipped) | removed at 164.5 s: page fault at `0x14c8fb0000` inside a resource; the list there had done 25 of 52 `CopyTextureRegion` | | 60 | same | removed at 306.6 s: page fault at `0x0` (after a `Wait64BitValueX` time-out) | | 61 | + #1592 | removed at 238.3 s: page fault in a resource, list at 248 of 700 `CopyTextureRegion` | | 62 | + the names | removed at 186.2 s: **page fault at `0x15737a0000` in `title 0x12a6a78000 dim3 1024x512 fmt83 flags0x300000 sampled`** (a BC5 texture on `vram::Pages` tiles, not GPU-owned); the list there: 7 of 11 operations done, all `CopyTextureRegion` – the shape of `texture_upload::record` | So on this card the removals come in two kinds, both while video memory stands far over the card: DXGI reports 20.7–21.0 GB local and 1.6–1.8 GB non-local at the removal (target pages 10.1–10.3 GB, sparse pools 6.1 GB, UMA shadow), with 2–5 GB of RAM free: 1. a page fault inside a sampled title texture while XCL's upload copies into it (59, 61, 62), and 2. a page fault at GPU VA `0x0` (58, 60; @frenziedcoder's 5080 above shows the same). Skipping late pipelines (`XCL_PSO_WAIT_MS`) is not what causes them: run 59 skipped nothing and was removed earliest. Graphics pipelines are no longer the wall once their blobs are on disk: 161 of 172 came from XCL's disk cache in run 59 (11 built). **Update, runs 63–66 (same tree, same settings unless said):** what the faults are *not* – - 63: uploads into textures `vram` has mapped to nothing (`unmap_superseded`) left out (a local skip in `texture_upload::plan_item`; 128+ left out by 150 s): still removed at 201.8 s, page fault in `title 0xdef534000 dim3 1024x1024 fmt72 flags0x300000 sampled`, again inside `CopyTextureRegion` (32 of 69 done) – a texture that was mapped when its copy was planned. - 64: device `Evict` kept resident (hooked, counted): the title never called it. That run ended on a title access violation at 131 s (write at `0x279ab0f015`, `+0x4f878ae`) instead. - 65: without `XCL_UMA_SHADOW`: local video memory still 18.3 GB (target pages 10 GB, sparse pools 6 GB), 0–4 presents per 2 s, removed at 290.6 s with the page fault at `0x0`. Just before it, as before run 58's: `ExecuteIndirect` of CS `a6724f20f309a480`, `51788b20c402ace3`, `4401d482ef24797c` refused as out of range, their "counts" shaped like addresses (`0xf4b482d0 x 0x100004 x 0x1`, arguments at `0x4f4b480e0`). - 66: Series S profile (`lockhart`): the title stops on an int3 at `+0x1cf336c` 1.5 s after start. - No GPU wait was released by the watchdog and no Write64 cycle was broken in any of 58–65, so the faults do not follow a sync the watchdog broke. **Not tested:** more than one run per row; AMD; the tree without #2195 (it changes no behaviour here unless an index lands in 1,000,000 – 2^21); whether the faulting texture's tiles were mapped at the moment of the copy (the next thing I'm looking at). **AI use:** Claude Code (Claude Opus 5.5) made the builds and runs on this machine, wrote the two diagnostics and wrote this report.
Dezmonius commented 2026-11-25 12:06:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Dezmonius on 2026-11-25T11:10:58Z.


RTX 5070 / Windows 10 follow-up on exact #2057 head 4df1e6e3d40a011501c046148b6aa470437aa2eb: loading art, then a late DXGI_ERROR_DEVICE_HUNG with the shadow off.

Setup: RTX 5070 12 GiB, driver 610.88 (32.0.16.1088), i7-7700K, 32 GiB RAM, Windows 10 build 19045, Rust 1.100.0, unchanged release build. The newer title of #505 ran offline from an SSD with a copied local profile for each run. Shared flags: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 XCL_DRED=1 XCL_PSO_PRELOAD=0. The runs reused their locally generated caches where marked warm. I did not precompile the compute pack.

Run Shadow Result
Cold runtime cache, 300 s On Profile accepted, animated loading art, 557 presents, timer exit 0.
Warm, original input schedule On Profile prompt remained visible. I ended it at 329 s after late keyboard input did not advance it.
Warm, extended automatic A presses, 420 s Off Profile accepted, animated loading art, then black sampled frames. 798 presents, timer exit 0. Last activity sample had 1,032 DirectStorage requests in 2 s, no failures.
Warm repeat, same extended input and shadow off, 600 s limit Off 883 presents summed from the activity samples. At 472.8 s the process exited with 0x887A0006. Last inspected frame still showed loading art.

In the crashing run, the last two 2 s activity samples showed 2,296 and 2,206 DirectStorage requests (0 failed), with 9 dispatches in each sample. DRED reported a GPU page fault against a resource (allocation type 34, no recently freed allocation listed). One list on the reported queue showed 33/36 completed operations with CopyTextureRegion bracketing the breadcrumb and a resource barrier later. Another list on that queue showed 0/4. The breadcrumbs give a location to inspect. The faulting operation or resource ownership has yet to be established.

Peak sampled XCL process commit was 23,820 MiB, peak local video memory was 12,122 MiB, minimum available host RAM was 15.95 GiB and minimum system commit headroom was 29.58 GiB. There were zero GPU queue.Wait ... did not complete entries in the crashing run. All runs logged 40 mesh pipeline refusals for an MS in the AS slot. A cold shadow-on run had already reached animated loading art. Input timing and cache state differed across the shadow settings, so these results do not isolate the shadow or reproduce the prologue reported in the RTX 3070 follow-up. No in-world HUD was visible in the sampled frames, and audio was not monitored.

AI-assisted (Codex) for the runs, log analysis and this report. No game data attached.

<!-- greyfinch-sync:ivall/xcl:comment:7160703783 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160703783). Originally posted by [Dezmonius](https://github.com/Dezmonius) on 2026-11-25T11:10:58Z. --- **RTX 5070 / Windows 10 follow-up on exact #2057 head `4df1e6e3d40a011501c046148b6aa470437aa2eb`: loading art, then a late `DXGI_ERROR_DEVICE_HUNG` with the shadow off.** Setup: RTX 5070 12 GiB, driver 610.88 (32.0.16.1088), i7-7700K, 32 GiB RAM, Windows 10 build 19045, Rust 1.100.0, unchanged release build. The newer title of #505 ran offline from an SSD with a copied local profile for each run. Shared flags: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 XCL_DRED=1 XCL_PSO_PRELOAD=0`. The runs reused their locally generated caches where marked warm. I did not precompile the compute pack. | Run | Shadow | Result | | --- | --- | --- | | Cold runtime cache, 300 s | On | Profile accepted, animated loading art, 557 presents, timer exit 0. | | Warm, original input schedule | On | Profile prompt remained visible. I ended it at 329 s after late keyboard input did not advance it. | | Warm, extended automatic A presses, 420 s | Off | Profile accepted, animated loading art, then black sampled frames. 798 presents, timer exit 0. Last activity sample had 1,032 DirectStorage requests in 2 s, no failures. | | Warm repeat, same extended input and shadow off, 600 s limit | Off | 883 presents summed from the activity samples. At 472.8 s the process exited with `0x887A0006`. Last inspected frame still showed loading art. | In the crashing run, the last two 2 s activity samples showed 2,296 and 2,206 DirectStorage requests (0 failed), with 9 dispatches in each sample. DRED reported a GPU page fault against a resource (allocation type 34, no recently freed allocation listed). One list on the reported queue showed 33/36 completed operations with `CopyTextureRegion` bracketing the breadcrumb and a resource barrier later. Another list on that queue showed 0/4. The breadcrumbs give a location to inspect. The faulting operation or resource ownership has yet to be established. Peak sampled XCL process commit was 23,820 MiB, peak local video memory was 12,122 MiB, minimum available host RAM was 15.95 GiB and minimum system commit headroom was 29.58 GiB. There were zero `GPU queue.Wait ... did not complete` entries in the crashing run. All runs logged 40 mesh pipeline refusals for an MS in the AS slot. A cold shadow-on run had already reached animated loading art. Input timing and cache state differed across the shadow settings, so these results do not isolate the shadow or reproduce the prologue reported in [the RTX 3070 follow-up](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160090884). No in-world HUD was visible in the sampled frames, and audio was not monitored. AI-assisted (Codex) for the runs, log analysis and this report. No game data attached.
Dezmonius commented 2026-11-25 12:06:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Dezmonius on 2026-11-25T11:35:55Z.


@joeypercia I ran your unchanged synthetic probe at b39608eaa8f5f079f7413173e67c9e07146b9597 on the RTX 5070 (12 GiB, driver 610.88 / 32.0.16.1088, Windows 10 build 19045, release). The probe reproduced the HRESULT from my title run without loading the title.

  • The ten fixed-mapping cases all completed with no device removal. Every mapped word matched and the NULL-mapped tiles read zero.
  • The first concurrent case, r_null_during_copyq, reported device removal 0x887A0006 after 1.8 s. Each case had a fresh process. I stopped the series at that point, so the two remaining concurrent cases are untested here.

This matches the device-removal HRESULT on this hardware. The synthetic probe does not establish that the title lost the same resource or took the same code path.

AI-assisted (Codex) for execution and reporting. The probe ran without title files.

<!-- greyfinch-sync:ivall/xcl:comment:7161253994 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7161253994). Originally posted by [Dezmonius](https://github.com/Dezmonius) on 2026-11-25T11:35:55Z. --- @joeypercia I ran your unchanged synthetic probe at `b39608eaa8f5f079f7413173e67c9e07146b9597` on the RTX 5070 (12 GiB, driver 610.88 / 32.0.16.1088, Windows 10 build 19045, release). The probe reproduced the HRESULT from my [title run](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160703783) without loading the title. - The ten fixed-mapping cases all completed with no device removal. Every mapped word matched and the NULL-mapped tiles read zero. - The first concurrent case, `r_null_during_copyq`, reported device removal `0x887A0006` after 1.8 s. Each case had a fresh process. I stopped the series at that point, so the two remaining concurrent cases are untested here. This matches the device-removal HRESULT on this hardware. The synthetic probe does not establish that the title lost the same resource or took the same code path. AI-assisted (Codex) for execution and reporting. The probe ran without title files.
upipibi commented 2026-11-25 12:06:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T11:47:22Z.


@joeypercia Your unchanged probe at b39608e (on 4df1e6e) on Ampere: RTX 3070 8 GB, driver 616.56, Windows 11, debug build. Each case ran as its own process, and all 13 completed with no device removal.

case queue tiles vram/sys/null result
a_vram_copyq 3 32/0/0 ok=524288
b_sys_copyq 3 0/32/0 ok=524288
c_split_copyq 3 16/16/0 ok=524288
d_sys_direct 0 0/32/0 ok=524288
e_split_direct 0 16/16/0 ok=524288
f_half_null_copyq_write 3 16/0/16 ok=262144 zero=262144
g_half_null_direct_write 0 16/0/16 ok=262144 zero=262144
h_all_null_copyq_read 3 0/0/32 zero=524288
i_all_null_direct_read 0 0/0/32 zero=524288
j_sys_null_copyq_write 3 0/16/16 ok=262144 zero=262144
r_null_during_copyq 3 remaps=5786, 20 of 20 rounds, 2.1 s
r_null_during_direct 0 remaps=3884, 20 of 20 rounds, 2.1 s
r_other_tiles_during_copyq 3 remaps=3752, 20 of 20 rounds, 2.1 s

other=0 in every case. The System log has 0 nvlddmkm 153 events since the first case started.

So on this card r_null_during_copyq finishes all 20 rounds, while on Dezmonius's RTX 5070 the same case reported 0x887A0006 after 1.8 s. That's one run per case on each card, with different drivers (616.56 here, 610.88 there) and different Windows versions, so this doesn't tell us whether the architecture, the driver or something else makes the difference.

AI-assisted (Claude Code). Synthetic probe only, no title files.

<!-- greyfinch-sync:ivall/xcl:comment:7161501048 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7161501048). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T11:47:22Z. --- @joeypercia Your unchanged probe at `b39608e` (on `4df1e6e`) on Ampere: RTX 3070 8 GB, driver 616.56, Windows 11, debug build. Each case ran as its own process, and all 13 completed with no device removal. | case | queue | tiles vram/sys/null | result | |---|---|---|---| | a_vram_copyq | 3 | 32/0/0 | ok=524288 | | b_sys_copyq | 3 | 0/32/0 | ok=524288 | | c_split_copyq | 3 | 16/16/0 | ok=524288 | | d_sys_direct | 0 | 0/32/0 | ok=524288 | | e_split_direct | 0 | 16/16/0 | ok=524288 | | f_half_null_copyq_write | 3 | 16/0/16 | ok=262144 zero=262144 | | g_half_null_direct_write | 0 | 16/0/16 | ok=262144 zero=262144 | | h_all_null_copyq_read | 3 | 0/0/32 | zero=524288 | | i_all_null_direct_read | 0 | 0/0/32 | zero=524288 | | j_sys_null_copyq_write | 3 | 0/16/16 | ok=262144 zero=262144 | | r_null_during_copyq | 3 | | remaps=5786, 20 of 20 rounds, 2.1 s | | r_null_during_direct | 0 | | remaps=3884, 20 of 20 rounds, 2.1 s | | r_other_tiles_during_copyq | 3 | | remaps=3752, 20 of 20 rounds, 2.1 s | `other=0` in every case. The System log has 0 `nvlddmkm` 153 events since the first case started. So on this card `r_null_during_copyq` finishes all 20 rounds, while on Dezmonius's RTX 5070 the same case reported `0x887A0006` after 1.8 s. That's one run per case on each card, with different drivers (616.56 here, 610.88 there) and different Windows versions, so this doesn't tell us whether the architecture, the driver or something else makes the difference. AI-assisted (Claude Code). Synthetic probe only, no title files.
KDenKC commented 2026-11-25 12:06:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-25T11:15:29Z.


RTX 5090 32 GB on 4df1e6e: with the description's switches the device is removed at 50–53 s on the menus, 5 of 5 runs, with at most 11.5 GB of local video memory in use. It takes XCL_WATCH_HOT (on by default) together with either XCL_HEAP_WINDOWS=1 or XCL_COHERENT_HEAPS=sparse:16; XCL_WATCH_HOT=0 or XCL_WATCH_HOT_MS=60000 avoids it.

This looks like the same stop as @kanade333's first row (0x887a0006 at 53.4 s on a 5080). On this card it happens with at most 11.5 of 32 GB of video memory in use, so at least this stop is not the card running out.

Setup

  • NVIDIA GeForce RTX 5090 32 GB (driver 621.24, 32-lane waves), AMD Ryzen 7 9800X3D, 62 GB RAM, Windows 11 26200.9974, rustc 1.99.1 MSVC, release build of this head (4df1e6e, no local change).
  • The retail title of #505 (1.0.2.1), XCL_NETWORK=0, a fresh data folder per run, scripted XCL_PRESS_AT A presses every 3 s from 6 to 60 s (the title is idle on Legal Notices from ~45 s).
  • Caches: xcl shaders <pack> --precompile --only cs --pipelines in 6 processes (XCL_PRECOMPILE_SLICE=0/6 … 5/6) with the run switches: 2,689 compute pipelines, 0 errors, 0 refused, 60 min; peak system commit 47.4 GB.

Runs (80 s each unless noted; "hot" = the default XCL_WATCH_HOT; every run a fresh process with only the variables listed)

switches hot runs result
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 (the description's) on 5 removed 0x887a0006 at 52.0, 51.2, 51.8, 50.4, 50.5 s
the same XCL_WATCH_HOT=0 3 ok to 78–80 s
the same on, XCL_WATCH_HOT_MS=60000 2 ok to 80 s
the same without XCL_UMA_SHADOW on 2 removed at 51.5, 50.4 s
XCL_HEAP_WINDOWS=1 only on 1 removed at 53.5 s
XCL_COHERENT_HEAPS=sparse:16 only on 1 removed at 51.5 s
XCL_UMA_SHADOW=1 only on 1 ok
XCL_DIRECT_DXIL=1 only on 1 ok
XCL_LOOK_SKIP=1 only on 1 ok
none on 1 ok
main 568e7db with the description's switches (no hot looks there) – 1 ok
the description's + XCL_COHERENT_MB=512 (@kanade333's change) on 2 removed at 51.3, 51.5 s
  • XCL_COHERENT_MB=512 changes nothing on this card because its coherent window is already 512 MB with the description's switches (coherent 64/512 MB in every run, with or without it), where @kanade333's 5080 had coherent 64/4095 MB.

  • In all 9 removed runs the title was presenting a steady ~28 fps (54–59 presents per 2 s) in the 10 s before the removal, with 0 GPU-wait timeouts, 0 mid-list splits and 0 failed DirectStorage requests; 6.7–11.5 GB local video memory and 16.7–24.1 GB committed at the last memory line before it.

  • The hot looks are active from early on in every removed run (first … blocks hot now … line at 7.6–15.5 s), so the removal is not at their start.

  • In one run (hot + XCL_COHERENT_HEAPS=sparse:16 only) the process did not exit after the removal: it was still running 20 min later, with the log ending at the removal line.

Windows System log at the menu removals: all 11 menu removals in the table have 101–102 nvlddmkm id 13 events in the same second — Graphics Exception: ESR … plus Graphics SM Warp Exception on (GPC 4, TPC 0, SM 1): MMU Fault / Multiple Warp Errors on several SMs — and then id 153 (the reset). So shaders faulted on GPU addresses that were not mapped; it is not a long-running dispatch. The two in-world removals below (0x887a0005) have no nvlddmkm event at all, as @throny found on #1269.

What I think it is (not verified): the description says a write to an idle block can reach video memory ~20 ms late. Both switches that bring the removal put title memory behind XCL's windows, which the looks have to bring up; a GPU address or descriptor that a shader reads from such a block and that arrives late (or stale) would explain MMU faults at a steady frame rate on a static screen. A 60 s hot window, which keeps a block in every look once it was written, removes it here (2 of 2). DRED not tried for the menu stop.

Not tested

  • World load: every run ends before the title's first press past the menus; the world-load stop @throny describes on #1269 is a separate question I am running next.
  • DRED, AMD, other NVIDIA cards, a run longer than 80 s with XCL_WATCH_HOT=0.
  • The test suite on this head.

Edit (world load on the same card, XCL_WATCH_HOT=0 added to the description's switches, warm compute caches, 5 runs): runs 1–3 had no device removal or crash, at up to 20.1 GB local video memory (nvidia-smi 22.4 GB) and 39.2 GB committed. Runs 4 and 5, the first to stay in the world, lost the device (0x887a0005, at 361 s and 179 s) at 19.7–19.8 GB local of 32 GB; with XCL_DRED=1 DRED records no page fault (VA 0x0, no allocation: the empty result; I first read it as a fault at a null address, which it is not), so on this card the in-world removal happens with the budget far from used (as @throny found with texture pages in system memory). In run 4 nothing in XCL's log in the 10 s before it but a graphics pipeline finishing at 359.8 s. XCL_DRED=1 no longer stalls start-up here on this head.

run length presents stop presents resume end
1 600 s 133 s never XCL_RUN_SECONDS, no removal
2 600 s 128 s never XCL_RUN_SECONDS, no removal
3 (thread dumps at 160, 220, 300 s) 320 s ~135 s ~300 s: 8,515 draws and 33,249 dispatches per 2 s, a flat grey world XCL_RUN_SECONDS, no removal
4 600 s world drawn ~140 s (12,326 draws, 70,959 dispatches per 2 s), then no presents ~150–352 s while 31 new graphics pipelines were built ~354 s 0x887a0005 at 361.4 s, then the title's int3 at +0x2474606; local video memory 19.7 GB, 39.1 GB committed
5 (XCL_DRED=1) 600 s – (world drawn from ~140 s: 20–33 presents, 10,500–16,700 draws and 55,000–84,000 dispatches per 2 s) – 0x887a0005 at 179.4 s, same int3 at +0x2474606; DRED: page fault at GPU VA 0x0; allocations there: [] — i.e. no page fault recorded (the empty form, as @Kalmarv points out on #1269), and no list breadcrumbs printed; 19.8 GB local, 39.7 GB committed
  • 0 GPU-wait timeouts and 0 would close a GPU cycle in all five; 1, 1, 10, 10 and 10 mid-list splits.
  • What the stop is in run 3: from 133.9 to 284 s the log shows graphics pipelines built one after another, each huge, wanted at once (no slot), driver blob absent, 2.5–7.2 s in the driver (16 of them, 275–570 KB of DXIL), with 2–6 s between them; in the dumps the title threads are waiting, xcl-dxc-4 is inside dxcompiler.dll, nothing else is busy. When the last one is built the world starts drawing. The precompile covers compute only (--only cs), so these are cold graphics pipelines. Runs 1 and 2 were in the same state to their end: after 125 s they built 47 and 59 graphics pipelines (139 s and 185 s in the driver), the last finishing at 596 and 594 s. XCL's driver-blob store works across runs: over each whole run, 4 of 51 (run 1), 49 of 110 (run 2) and 108 of 127 (run 3) graphics builds were supplied a blob kept by an earlier run; the builds after the stop were pipelines new to that run, so each run got further through the list, and run 3 had 16 left.
  • So on a card with this much video memory, this head reaches the world with no removal once XCL_WATCH_HOT=0 keeps it past the menus; the time to the world is set by cold graphics-pipeline builds on a title thread (~10 s each with translation, serial).

Not tested for this part: a run with every graphics pipeline warm from the start (a fourth run should start with none left to build); more than 320 s after the world appears; XCL_WATCH_HOT_MS=60000 instead of XCL_WATCH_HOT=0 at world load.

AI use: Claude Code (Claude Opus 5.5) ran the precompile and every run above, read the logs and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7160805888 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160805888). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-25T11:15:29Z. --- **RTX 5090 32 GB on `4df1e6e`: with the description's switches the device is removed at 50–53 s on the menus, 5 of 5 runs, with at most 11.5 GB of local video memory in use. It takes `XCL_WATCH_HOT` (on by default) together with either `XCL_HEAP_WINDOWS=1` or `XCL_COHERENT_HEAPS=sparse:16`; `XCL_WATCH_HOT=0` or `XCL_WATCH_HOT_MS=60000` avoids it.** This looks like the same stop as @kanade333's first row (`0x887a0006` at 53.4 s on a 5080). On this card it happens with at most 11.5 of 32 GB of video memory in use, so at least this stop is not the card running out. **Setup** - NVIDIA GeForce RTX 5090 32 GB (driver 621.24, 32-lane waves), AMD Ryzen 7 9800X3D, 62 GB RAM, Windows 11 26200.9974, rustc 1.99.1 MSVC, release build of this head (`4df1e6e`, no local change). - The retail title of #505 (1.0.2.1), `XCL_NETWORK=0`, a fresh data folder per run, scripted `XCL_PRESS_AT` A presses every 3 s from 6 to 60 s (the title is idle on Legal Notices from ~45 s). - Caches: `xcl shaders <pack> --precompile --only cs --pipelines` in 6 processes (`XCL_PRECOMPILE_SLICE=0/6` … `5/6`) with the run switches: 2,689 compute pipelines, 0 errors, 0 refused, 60 min; peak system commit 47.4 GB. **Runs** (80 s each unless noted; "hot" = the default `XCL_WATCH_HOT`; every run a fresh process with only the variables listed) | switches | hot | runs | result | |---|---|---|---| | `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1` (the description's) | on | 5 | **removed** `0x887a0006` at 52.0, 51.2, 51.8, 50.4, 50.5 s | | the same | `XCL_WATCH_HOT=0` | 3 | ok to 78–80 s | | the same | on, `XCL_WATCH_HOT_MS=60000` | 2 | ok to 80 s | | the same without `XCL_UMA_SHADOW` | on | 2 | **removed** at 51.5, 50.4 s | | `XCL_HEAP_WINDOWS=1` only | on | 1 | **removed** at 53.5 s | | `XCL_COHERENT_HEAPS=sparse:16` only | on | 1 | **removed** at 51.5 s | | `XCL_UMA_SHADOW=1` only | on | 1 | ok | | `XCL_DIRECT_DXIL=1` only | on | 1 | ok | | `XCL_LOOK_SKIP=1` only | on | 1 | ok | | none | on | 1 | ok | | `main` `568e7db` with the description's switches (no hot looks there) | – | 1 | ok | | the description's + `XCL_COHERENT_MB=512` (@kanade333's change) | on | 2 | **removed** at 51.3, 51.5 s | - `XCL_COHERENT_MB=512` changes nothing on this card because its coherent window is already 512 MB with the description's switches (`coherent 64/512 MB` in every run, with or without it), where @kanade333's 5080 had `coherent 64/4095 MB`. - In all 9 removed runs the title was presenting a steady ~28 fps (54–59 presents per 2 s) in the 10 s before the removal, with 0 GPU-wait timeouts, 0 `mid-list` splits and 0 failed DirectStorage requests; 6.7–11.5 GB local video memory and 16.7–24.1 GB committed at the last memory line before it. - The hot looks are active from early on in every removed run (first `… blocks hot now …` line at 7.6–15.5 s), so the removal is not at their start. - In one run (hot + `XCL_COHERENT_HEAPS=sparse:16` only) the process did not exit after the removal: it was still running 20 min later, with the log ending at the removal line. **Windows System log at the menu removals:** all 11 menu removals in the table have 101–102 `nvlddmkm` id 13 events in the same second — `Graphics Exception: ESR …` plus `Graphics SM Warp Exception on (GPC 4, TPC 0, SM 1): MMU Fault` / `Multiple Warp Errors` on several SMs — and then id 153 (the reset). So shaders faulted on GPU addresses that were not mapped; it is not a long-running dispatch. The two in-world removals below (`0x887a0005`) have **no** `nvlddmkm` event at all, as @throny found on #1269. **What I think it is (not verified):** the description says a write to an idle block can reach video memory ~20 ms late. Both switches that bring the removal put title memory behind XCL's windows, which the looks have to bring up; a GPU address or descriptor that a shader reads from such a block and that arrives late (or stale) would explain MMU faults at a steady frame rate on a static screen. A 60 s hot window, which keeps a block in every look once it was written, removes it here (2 of 2). DRED not tried for the menu stop. **Not tested** - World load: every run ends before the title's first press past the menus; the world-load stop @throny describes on #1269 is a separate question I am running next. - DRED, AMD, other NVIDIA cards, a run longer than 80 s with `XCL_WATCH_HOT=0`. - The test suite on this head. --- **Edit (world load on the same card, `XCL_WATCH_HOT=0` added to the description's switches, warm compute caches, 5 runs):** runs 1–3 had no device removal or crash, at up to 20.1 GB local video memory (`nvidia-smi` 22.4 GB) and 39.2 GB committed. Runs 4 and 5, the first to stay in the world, lost the device (`0x887a0005`, at 361 s and 179 s) at 19.7–19.8 GB local of 32 GB; with `XCL_DRED=1` DRED records no page fault (VA `0x0`, no allocation: the empty result; I first read it as a fault at a null address, which it is not), so on this card the in-world removal happens with the budget far from used (as @throny found with texture pages in system memory). In run 4 nothing in XCL's log in the 10 s before it but a graphics pipeline finishing at 359.8 s. `XCL_DRED=1` no longer stalls start-up here on this head. | run | length | presents stop | presents resume | end | |---|---|---|---|---| | 1 | 600 s | 133 s | never | `XCL_RUN_SECONDS`, no removal | | 2 | 600 s | 128 s | never | `XCL_RUN_SECONDS`, no removal | | 3 (thread dumps at 160, 220, 300 s) | 320 s | ~135 s | ~300 s: 8,515 draws and 33,249 dispatches per 2 s, a flat grey world | `XCL_RUN_SECONDS`, no removal | | 4 | 600 s | world drawn ~140 s (12,326 draws, 70,959 dispatches per 2 s), then no presents ~150–352 s while 31 new graphics pipelines were built | ~354 s | **`0x887a0005` at 361.4 s**, then the title's `int3` at `+0x2474606`; local video memory 19.7 GB, 39.1 GB committed | | 5 (`XCL_DRED=1`) | 600 s | – (world drawn from ~140 s: 20–33 presents, 10,500–16,700 draws and 55,000–84,000 dispatches per 2 s) | – | **`0x887a0005` at 179.4 s**, same `int3` at `+0x2474606`; **DRED: `page fault at GPU VA 0x0; allocations there: []` — i.e. no page fault recorded** (the empty form, as @Kalmarv points out on #1269), and no list breadcrumbs printed; 19.8 GB local, 39.7 GB committed | - 0 GPU-wait timeouts and 0 `would close a GPU cycle` in all five; 1, 1, 10, 10 and 10 `mid-list` splits. - What the stop is in run 3: from 133.9 to 284 s the log shows graphics pipelines built one after another, each `huge, wanted at once (no slot)`, `driver blob absent`, 2.5–7.2 s in the driver (16 of them, 275–570 KB of DXIL), with 2–6 s between them; in the dumps the title threads are waiting, `xcl-dxc-4` is inside `dxcompiler.dll`, nothing else is busy. When the last one is built the world starts drawing. The precompile covers compute only (`--only cs`), so these are cold graphics pipelines. Runs 1 and 2 were in the same state to their end: after 125 s they built 47 and 59 graphics pipelines (139 s and 185 s in the driver), the last finishing at 596 and 594 s. XCL's driver-blob store works across runs: over each whole run, 4 of 51 (run 1), 49 of 110 (run 2) and 108 of 127 (run 3) graphics builds were supplied a blob kept by an earlier run; the builds after the stop were pipelines new to that run, so each run got further through the list, and run 3 had 16 left. - So on a card with this much video memory, this head reaches the world with no removal once `XCL_WATCH_HOT=0` keeps it past the menus; the time to the world is set by cold graphics-pipeline builds on a title thread (~10 s each with translation, serial). Not tested for this part: a run with every graphics pipeline warm from the start (a fourth run should start with none left to build); more than 320 s after the world appears; `XCL_WATCH_HOT_MS=60000` instead of `XCL_WATCH_HOT=0` at world load. AI use: Claude Code (Claude Opus 5.5) ran the precompile and every run above, read the logs and wrote this report.
vakaobr commented 2026-11-25 14:10:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vakaobr on 2026-11-25T13:34:08Z.


@theaustinayers a test report from macOS (CrossOver 26.3, Apple D3DMetal, Rosetta 2), head 4df1e6e, in case you want to know how much of this tree holds on a Mac. Synthetic tests only, no title.

Setup. MacBook Pro M5 Pro (20-core GPU, 32-lane waves), macOS 27.2.1, CrossOver 26.3.0 with D3DMetal 3.0, Rust 1.100.0 x86_64-pc-windows-gnu, debug, DXC 1.9.2609, every test in its own process. On this host, tests that adopt a device only run with #1789 and Ahmet-Dedeler's host-vtable fix (ddf3be7), so both are merged into every tree below; the base for comparison is 568e7db + those two.

Results

  • Every PR this tree carries passes its own tests here, each merged alone onto main + the two above: #1993, #929, #2052, #1599, #1517, #1792, #1184, #1850, #1766, #1453, #1422 (#1983 is on main now). Their other failures here (f64 and 64-bit atomics, OpenExistingHeapFromAddress, two list_x tests, some pixel-shader draws timing out) are the same on main.
  • The whole tree: 1,176 lib tests, 1,073 pass. Every test that also exists on the base gives the same result. 50 of the 56 tests the tree adds pass, among them all the loading ones (a_mapping_put_off_is_sent_without_a_submit, a_submit_is_let_in_before_the_commits, a_block_the_walk_found_since_ends_the_skip, a_title_fence_wait_an_earlier_signal_covers_is_no_cycle, cache_flushes_are_uav_barriers).

The six that don't, and why

  1. The ExecuteIndirect guard turns itself off on Wine (16826cb / 3877446): an_execute_indirect_with_garbage_counts_runs_no_groups and …_draws_nothing fail, and the log says ExecuteIndirect: the counts are not checked (its program does not compile). Wine's D3DCompile (vkd3d-shader) refuses the guard's cs_5_0 program, so on a Mac (and probably Linux Wine) garbage counts go to the GPU unchecked. A fallback in real::compile fixes it: when D3DCompile refuses a program, compile it with DXC (which XCL loads anyway) at the SM 6.0 profile. With it both tests pass (2 of 2 each) and the log says compiled with DXC as cs_6_0; Windows is unchanged. The diff (+15/−1, real.rs):
             match (r, blob) {
                 (Ok(()), Some(b)) => std::slice::from_raw_parts(b.GetBufferPointer() as *const u8, b.GetBufferSize()).to_vec(),
    -            _ => Vec::new(),
    +            // Wine's D3DCompile (vkd3d-shader) refuses some of these programs (the ExecuteIndirect
    +            // guard's, on CrossOver): DXC, which XCL loads anyway, at the shader model 6 profile
    +            _ => {
    +                let sm6 = target.replace("_5_0", "_6_0").replace("_5_1", "_6_0");
    +                match crate::gpu::recomp::dxc::compile(src, "main", &sm6, &[]) {
    +                    Ok(dxil) => {
    +                        crate::xlog_info!("D3D12.X: an internal {target} program did not compile with D3DCompile; compiled with DXC as {sm6}");
    +                        dxil
    +                    }
    +                    Err(e) => {
    +                        crate::xlog_warn!("D3D12.X: an internal {target} program compiles neither with D3DCompile nor with DXC: {e}");
    +                        Vec::new()
    +                    }
    +                }
    +            }
             }
    
    Glad to open it as a PR once the guard has one of its own.
  2. a_copy_back_does_not_wait_for_the_title_queue is flaky here on the tree (1225bb9 on top of #1993): it failed 3 of 9 runs (waited 1.3–3.0 s for the title's queue), all while other work was loading the machine, and passed 4 of 4 on #1993 alone. A timing probe put the whole wait inside ExecuteCommandLists of the copy back onto the title's own queue, while that queue is held behind an unsignalled GPU wait: D3DMetal sometimes blocks the submitting thread there. #1993's own readback queue never did. For comparison, #433 (which also records the copy on the title's queue, but hands it to a worker when the queue may be held) passed 40 of 40 runs of its two tests under the same kind of load. I haven't found why it's intermittent.
  3. a_refused_program_of_xcls_own_is_refused (f064c82): CreateComputePipelineState on 64 garbage bytes page-faults inside D3DMetal (read at 0x18) and then hangs; it doesn't refuse the bytes the way the test expects. Not on the world-load path.
  4. texture_upload::gpu_parts_of_a_texture_go_up_and_the_rest_stays and pieces_hold_the_texels_of_their_levels (73fc616): in a debug build they stop on attempt to multiply with overflow in the test's own generator (some_ranges, n * 1103515245, line 896); both pass in release here. That's any platform's debug build, so wrapping_mul there would do.

Not tested: a title (so nothing about the freeze in the world or the frame pacing), Windows, release for the whole tree.

AI use: Claude Code. Claude Opus 5.5 agents built the trees and ran the tests; Claude Opus 5.5 wrote the DXC fallback, ran it and the #433 load test, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7163966016 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7163966016). Originally posted by [vakaobr](https://github.com/vakaobr) on 2026-11-25T13:34:08Z. --- @theaustinayers a test report from macOS (CrossOver 26.3, Apple D3DMetal, Rosetta 2), head `4df1e6e`, in case you want to know how much of this tree holds on a Mac. Synthetic tests only, no title. **Setup.** MacBook Pro M5 Pro (20-core GPU, 32-lane waves), macOS 27.2.1, CrossOver 26.3.0 with D3DMetal 3.0, Rust 1.100.0 `x86_64-pc-windows-gnu`, debug, DXC 1.9.2609, every test in its own process. On this host, tests that adopt a device only run with #1789 and Ahmet-Dedeler's host-vtable fix (`ddf3be7`), so both are merged into every tree below; the base for comparison is `568e7db` + those two. **Results** - Every PR this tree carries passes its own tests here, each merged alone onto `main` + the two above: #1993, #929, #2052, #1599, #1517, #1792, #1184, #1850, #1766, #1453, #1422 (#1983 is on `main` now). Their other failures here (f64 and 64-bit atomics, `OpenExistingHeapFromAddress`, two `list_x` tests, some pixel-shader draws timing out) are the same on `main`. - The whole tree: 1,176 lib tests, 1,073 pass. Every test that also exists on the base gives the same result. 50 of the 56 tests the tree adds pass, among them all the loading ones (`a_mapping_put_off_is_sent_without_a_submit`, `a_submit_is_let_in_before_the_commits`, `a_block_the_walk_found_since_ends_the_skip`, `a_title_fence_wait_an_earlier_signal_covers_is_no_cycle`, `cache_flushes_are_uav_barriers`). **The six that don't, and why** 1. **The ExecuteIndirect guard turns itself off on Wine** (`16826cb` / `3877446`): `an_execute_indirect_with_garbage_counts_runs_no_groups` and `…_draws_nothing` fail, and the log says `ExecuteIndirect: the counts are not checked (its program does not compile)`. Wine's `D3DCompile` (vkd3d-shader) refuses the guard's `cs_5_0` program, so on a Mac (and probably Linux Wine) garbage counts go to the GPU unchecked. A fallback in `real::compile` fixes it: when `D3DCompile` refuses a program, compile it with DXC (which XCL loads anyway) at the SM 6.0 profile. With it both tests pass (2 of 2 each) and the log says `compiled with DXC as cs_6_0`; Windows is unchanged. The diff (+15/−1, `real.rs`): ```diff match (r, blob) { (Ok(()), Some(b)) => std::slice::from_raw_parts(b.GetBufferPointer() as *const u8, b.GetBufferSize()).to_vec(), - _ => Vec::new(), + // Wine's D3DCompile (vkd3d-shader) refuses some of these programs (the ExecuteIndirect + // guard's, on CrossOver): DXC, which XCL loads anyway, at the shader model 6 profile + _ => { + let sm6 = target.replace("_5_0", "_6_0").replace("_5_1", "_6_0"); + match crate::gpu::recomp::dxc::compile(src, "main", &sm6, &[]) { + Ok(dxil) => { + crate::xlog_info!("D3D12.X: an internal {target} program did not compile with D3DCompile; compiled with DXC as {sm6}"); + dxil + } + Err(e) => { + crate::xlog_warn!("D3D12.X: an internal {target} program compiles neither with D3DCompile nor with DXC: {e}"); + Vec::new() + } + } + } } ``` Glad to open it as a PR once the guard has one of its own. 2. **`a_copy_back_does_not_wait_for_the_title_queue` is flaky here on the tree** (`1225bb9` on top of #1993): it failed 3 of 9 runs (`waited 1.3–3.0 s for the title's queue`), all while other work was loading the machine, and passed 4 of 4 on #1993 alone. A timing probe put the whole wait inside `ExecuteCommandLists` of the copy back onto the title's own queue, while that queue is held behind an unsignalled GPU wait: D3DMetal sometimes blocks the submitting thread there. #1993's own readback queue never did. For comparison, #433 (which also records the copy on the title's queue, but hands it to a worker when the queue may be held) passed 40 of 40 runs of its two tests under the same kind of load. I haven't found why it's intermittent. 3. **`a_refused_program_of_xcls_own_is_refused`** (`f064c82`): `CreateComputePipelineState` on 64 garbage bytes page-faults inside D3DMetal (read at `0x18`) and then hangs; it doesn't refuse the bytes the way the test expects. Not on the world-load path. 4. **`texture_upload::gpu_parts_of_a_texture_go_up_and_the_rest_stays`** and **`pieces_hold_the_texels_of_their_levels`** (`73fc616`): in a debug build they stop on `attempt to multiply with overflow` in the test's own generator (`some_ranges`, `n * 1103515245`, line 896); both pass in release here. That's any platform's debug build, so `wrapping_mul` there would do. **Not tested:** a title (so nothing about the freeze in the world or the frame pacing), Windows, release for the whole tree. AI use: Claude Code. Claude Opus 5.5 agents built the trees and ran the tests; Claude Opus 5.5 wrote the DXC fallback, ran it and the #433 load test, and wrote this report.
HKEY-Funk-Machine commented 2026-11-25 14:10:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by HKEY-Funk-Machine on 2026-11-25T13:49:57Z.


AMD RX 9070 (RDNA4) reaches the world with the HUD drawn: this branch + #2163 + two refused programs. ~4 fps for ~3 min, then a device reset that took the whole PC down (hard hang, no bugcheck).

Follow-up to my 7152473795 and 7153653511 above, and to #675 7153836855. One run, same machine, warm caches.

Setup: AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. Tree: this PR at 8ff4b02, plus 0d25b89 (its runtime part), plus #2163's two commits (637b82a, 78fba7b; one line in real.rs conflicted with this branch's submit timing and I kept both). Local, not for upstream: xgameruntime/api.rs (start-up hang here; XCL_NO_PC_RUNTIME=1) and an XCL_REFUSE_CS list (the program takes the untranslated path; its dispatches are skipped) with 39f23deaf6a63310, b78fa10b425b8e54 (@madaraXor's pair on #675) and 95cc13288a27a96e. XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=600, no XCL_UMA_SHADOW, compute caches filled first (XCL_PRECOMPILE_SLICE), the same exe name as earlier runs.

world loading (first ListX #101) ~69 s
on screen loading art, the prologue's first title card, then the intro (audio, captions on a black screen), then the world: the minimap drawn bottom left, flickering, the scene black
in the world ~4 fps (3 300 frames by ~517 s)
work 2 761 456 dispatches (7 558 skipped), 524 288 draws (198 421 skipped, 137 544 with PC pipelines)
#2163's check fired once: a command list is submitted while its previous submit is still on the GPU (the same recording, the same queue; #1 so far). So the re-submit happens on AMD too
Wait64BitValueX time-outs / GPU waits over 5 s 1 / 0 (my runs without #2163 ended after several on one cell)
end 0x887a0007 (reset) at ~543 s and the title's 0x80000003 at +0x2474606; seconds later the machine stopped responding and needed a power cycle. Windows logged only Kernel-Power 41 / an unexpected shutdown: no bugcheck, no dump, no live kernel report
memory 39.8 GB private, 54 GB system commit at the end (32 GB RAM)
  • On this card, the barriers took the run from hanging ~30 s into the world load to the first title card. The refusals then kept the GPU up, and with #2163 it went through the intro into the world. Each step on its own is in the earlier comments.
  • What still compiles in the world: 33 big graphics pipelines (only compute was precompiled), and 241 big compute ones given a cached driver blob that the AMD driver built again anyway. @Rednaxeh saw the same rebuilds on RDNA3 above.
  • A warning for AMD testers: the reset at the end took Windows down with it here. I'd keep in-world runs on AMD short (XCL_RUN_SECONDS) until that is understood.

Not tested: more runs (this is one); the newer heads of this branch; graphics pipelines precompiled; why the two refused programs do not finish on AMD; why the reset brought the system down.

AI use: Claude Code (Claude Opus 5.5) built the tree, ran the run, read the logs and the Windows event log, and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7164354843 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7164354843). Originally posted by [HKEY-Funk-Machine](https://github.com/HKEY-Funk-Machine) on 2026-11-25T13:49:57Z. --- **AMD RX 9070 (RDNA4) reaches the world with the HUD drawn: this branch + #2163 + two refused programs. ~4 fps for ~3 min, then a device reset that took the whole PC down (hard hang, no bugcheck).** Follow-up to my 7152473795 and 7153653511 above, and to #675 7153836855. One run, same machine, warm caches. **Setup:** AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. Tree: this PR at `8ff4b02`, plus `0d25b89` (its runtime part), plus #2163's two commits (`637b82a`, `78fba7b`; one line in `real.rs` conflicted with this branch's submit timing and I kept both). Local, not for upstream: `xgameruntime/api.rs` (start-up hang here; `XCL_NO_PC_RUNTIME=1`) and an `XCL_REFUSE_CS` list (the program takes the untranslated path; its dispatches are skipped) with `39f23deaf6a63310`, `b78fa10b425b8e54` (@madaraXor's pair on #675) and `95cc13288a27a96e`. `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=600`, no `XCL_UMA_SHADOW`, compute caches filled first (`XCL_PRECOMPILE_SLICE`), the same exe name as earlier runs. | | | |---|---| | world loading (first `ListX #101`) | ~69 s | | on screen | loading art, the prologue's first title card, then the intro (audio, captions on a black screen), then the world: the minimap drawn bottom left, flickering, the scene black | | in the world | ~4 fps (3 300 frames by ~517 s) | | work | 2 761 456 dispatches (7 558 skipped), 524 288 draws (198 421 skipped, 137 544 with PC pipelines) | | #2163's check | fired once: `a command list is submitted while its previous submit is still on the GPU (the same recording, the same queue; #1 so far)`. So the re-submit happens on AMD too | | `Wait64BitValueX` time-outs / GPU waits over 5 s | 1 / 0 (my runs without #2163 ended after several on one cell) | | end | `0x887a0007` (reset) at ~543 s and the title's `0x80000003` at `+0x2474606`; seconds later the machine stopped responding and needed a power cycle. Windows logged only Kernel-Power 41 / an unexpected shutdown: no bugcheck, no dump, no live kernel report | | memory | 39.8 GB private, 54 GB system commit at the end (32 GB RAM) | - On this card, the barriers took the run from hanging ~30 s into the world load to the first title card. The refusals then kept the GPU up, and with #2163 it went through the intro into the world. Each step on its own is in the earlier comments. - What still compiles in the world: 33 big graphics pipelines (only compute was precompiled), and 241 big compute ones given a cached driver blob that the AMD driver built again anyway. @Rednaxeh saw the same rebuilds on RDNA3 above. - **A warning for AMD testers:** the reset at the end took Windows down with it here. I'd keep in-world runs on AMD short (`XCL_RUN_SECONDS`) until that is understood. **Not tested:** more runs (this is one); the newer heads of this branch; graphics pipelines precompiled; why the two refused programs do not finish on AMD; why the reset brought the system down. AI use: Claude Code (Claude Opus 5.5) built the tree, ran the run, read the logs and the Windows event log, and wrote this comment.
minimalhipster990 commented 2026-11-25 14:10:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by minimalhipster990 on 2026-11-25T13:40:33Z.


Follow-up on RTX 4090 with #1798 applied to this reference head

Adding #1798 got this machine through the long presentation pause and into the opening titles. Over the same 54 s of world loading (about 168–222 s on XCL’s clock), the clean build logged 0 presents and the patched build logged 345, averaging 6.4 presents/s. This is one run per build.

Clean #2057 #2057 + #1798
Worker stacks at 180, 200 and 220 s Same title worker in execute_indirect → resolve_wait → Condvar::wait in all three No thread sampled in that wait in any of the three. At 165.720 s XCL logged skipping pending indirect calls.
Screen Loading background or black in all samples after setup. Two late presents around 240–242 s fell between readbacks. First legible prologue card at 171.619 s, “Rockstar Games Presents” at 186.157 s, then the animated logo. The operator heard the intro audio and observed stuttering. No recognizable world geometry or gameplay HUD in the 30 captures from 167.681 to 222.318 s.
End Device removal 0x887a0005 at 244.098 s, then title breakpoint 0x80000003 at +0x2474606. Still presenting at the last activity sample. The runner stopped the process when available Windows system commit fell to 0.93 GiB. Peak sampled process private memory was 38.65 GiB. No device removal appeared in the log before the stop.

Both used release MSVC builds of 4df1e6e3d40a011501c046148b6aa470437aa2eb; the only source delta was #1798 (55e7beb6de9fcc8817d40d0a663857e3553c3632, applied locally). RTX 4090 24 GB, driver 621.40, Ryzen 7 5800X3D, 32 GB RAM. Same switches as the original report, DRED off, fresh title profiles, identical scripted input and readback every 12 presents. Each arm started with a separate byte-verified copy of the same warm XCL cache (6,432 files). The clean arm ran first. NVIDIA’s internal cache was uncontrolled.

This pair shows the opening sequence can present on this 4090 with #1798. Time in playable 3D, post-HUD stability and the cause of the control’s device removal remain unverified. AI use: OpenAI Codex (GPT-6) built the patched tree, ran both arms, checked logs, stacks and images, and drafted this update. The audio observation came from the operator.


Original four runs on clean #2057

RTX 4090 24 GB, NVIDIA 621.40, clean 4df1e6e. World loading stopped presenting in four runs. The longest ran for 900 s. A fourth run with thread dumps caught the same title worker waiting inside ExecuteIndirect in all four samples taken after presents stopped.

Run, in order Compute cache DRED Last 2 s interval with any presents ended at Total PresentX Cutoff
1 Partial On 168.057 s 4,242 600 s
2 Fully precompiled On 168.061 s 4,357 600 s
3 Reused Off 164.061 s 4,291 900 s
4, thread dumps Reused Off 166.085 s 4,350 250 s

What was on screen. After setup, every frame sampled on the way into the world showed the loading background with a spinner, or black. No in-world HUD or visible world geometry in those samples. All four processes exited at their configured cutoff with code 0, a null crash field and no device removal in the XCL log.

Where the wait was. In run 4 at 180.079, 200.071, 220.061 and 240.069 s, TID 144556 had the following stack, resolved with the release build’s matching PDB (caller first):

title+0x248d19f
  bind::execute_indirect             bind.rs:267
  pso_async::resolve_wait            pso_async.rs:541
  std::sys::sync::condvar::futex::Condvar::wait

TID 150820, which logged the first PresentX and the last captured frame, sampled at a different title address (title+0x56a0d) in all five dumps, including at 155 s while frames were still appearing. The stack above identifies the call site changed by #1798. The samples leave open whether the worker was waiting on a graphics or compute pipeline at each instant, whether it was the same pipeline across samples, and whether that wait held up the presenter.

Cache reuse. During run 3, after the last interval with any presents, XCL logged 76 large graphics pipeline builds starting without a driver blob and 75 finishing before cutoff. In run 4, XCL supplied blobs for 110 of 120 logged large graphics builds across the whole run. After the last present interval it started seven more without a blob. This may help compare with the cache progression on the RTX 5090.

Setup. Windows 11 build 26300, Ryzen 7 5800X3D, 32 GB RAM, retail 1.0.2.1, release MSVC build. Fresh title data and identical inputs each run. Used the five switches from the PR description (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1), network off, frame readback every 12 presents. Between runs 1 and 2, all 2,689 compute pipelines precompiled with zero errors or refusals. XCL’s disk cache carried over between subsequent runs. NVIDIA’s internal cache was uncontrolled. Post-HUD stability, intermediate render targets and #1798 remain untested here.

AI use: OpenAI Codex built the branch, ran the tests on the hardware above, checked the sampled images and stacks, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7164123735 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7164123735). Originally posted by [minimalhipster990](https://github.com/minimalhipster990) on 2026-11-25T13:40:33Z. --- ### Follow-up on RTX 4090 with #1798 applied to this reference head Adding #1798 got this machine through the long presentation pause and into the opening titles. Over the same 54 s of world loading (about 168–222 s on XCL’s clock), the clean build logged **0 presents** and the patched build logged **345**, averaging **6.4 presents/s**. This is one run per build. | | Clean #2057 | #2057 + #1798 | |---|---|---| | Worker stacks at 180, 200 and 220 s | Same title worker in `execute_indirect → resolve_wait → Condvar::wait` in all three | No thread sampled in that wait in any of the three. At 165.720 s XCL logged skipping pending indirect calls. | | Screen | Loading background or black in all samples after setup. Two late presents around 240–242 s fell between readbacks. | First legible prologue card at 171.619 s, “Rockstar Games Presents” at 186.157 s, then the animated logo. The operator heard the intro audio and observed stuttering. No recognizable world geometry or gameplay HUD in the 30 captures from 167.681 to 222.318 s. | | End | Device removal `0x887a0005` at 244.098 s, then title breakpoint `0x80000003` at `+0x2474606`. | Still presenting at the last activity sample. The runner stopped the process when available Windows system commit fell to 0.93 GiB. Peak sampled process private memory was 38.65 GiB. No device removal appeared in the log before the stop. | Both used release MSVC builds of `4df1e6e3d40a011501c046148b6aa470437aa2eb`; the only source delta was #1798 (`55e7beb6de9fcc8817d40d0a663857e3553c3632`, applied locally). RTX 4090 24 GB, driver 621.40, Ryzen 7 5800X3D, 32 GB RAM. Same switches as the original report, DRED off, fresh title profiles, identical scripted input and readback every 12 presents. Each arm started with a separate byte-verified copy of the same warm XCL cache (6,432 files). The clean arm ran first. NVIDIA’s internal cache was uncontrolled. This pair shows the opening sequence can present on this 4090 with #1798. Time in playable 3D, post-HUD stability and the cause of the control’s device removal remain unverified. AI use: OpenAI Codex (GPT-6) built the patched tree, ran both arms, checked logs, stacks and images, and drafted this update. The audio observation came from the operator. --- ### Original four runs on clean #2057 **RTX 4090 24 GB, NVIDIA 621.40, clean `4df1e6e`.** World loading stopped presenting in four runs. The longest ran for 900 s. A fourth run with thread dumps caught the same title worker waiting inside `ExecuteIndirect` in all four samples taken after presents stopped. | Run, in order | Compute cache | DRED | Last 2 s interval with any presents ended at | Total PresentX | Cutoff | |---|---|---|---:|---:|---:| | 1 | Partial | On | 168.057 s | 4,242 | 600 s | | 2 | Fully precompiled | On | 168.061 s | 4,357 | 600 s | | 3 | Reused | Off | 164.061 s | 4,291 | 900 s | | 4, thread dumps | Reused | Off | 166.085 s | 4,350 | 250 s | **What was on screen.** After setup, every frame sampled on the way into the world showed the loading background with a spinner, or black. No in-world HUD or visible world geometry in those samples. All four processes exited at their configured cutoff with code 0, a null crash field and no device removal in the XCL log. **Where the wait was.** In run 4 at 180.079, 200.071, 220.061 and 240.069 s, TID 144556 had the following stack, resolved with the release build’s matching PDB (caller first): ```text title+0x248d19f bind::execute_indirect bind.rs:267 pso_async::resolve_wait pso_async.rs:541 std::sys::sync::condvar::futex::Condvar::wait ``` TID 150820, which logged the first PresentX and the last captured frame, sampled at a different title address (`title+0x56a0d`) in all five dumps, including at 155 s while frames were still appearing. The stack above identifies the call site changed by #1798. The samples leave open whether the worker was waiting on a graphics or compute pipeline at each instant, whether it was the same pipeline across samples, and whether that wait held up the presenter. **Cache reuse.** During run 3, after the last interval with any presents, XCL logged 76 large graphics pipeline builds starting without a driver blob and 75 finishing before cutoff. In run 4, XCL supplied blobs for 110 of 120 logged large graphics builds across the whole run. After the last present interval it started seven more without a blob. This may help compare with the [cache progression on the RTX 5090](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160805888). **Setup.** Windows 11 build 26300, Ryzen 7 5800X3D, 32 GB RAM, retail 1.0.2.1, release MSVC build. Fresh title data and identical inputs each run. Used the five switches from the PR description (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1`), network off, frame readback every 12 presents. Between runs 1 and 2, all 2,689 compute pipelines precompiled with zero errors or refusals. XCL’s disk cache carried over between subsequent runs. NVIDIA’s internal cache was uncontrolled. Post-HUD stability, intermediate render targets and #1798 remain untested here. AI use: OpenAI Codex built the branch, ran the tests on the hardware above, checked the sampled images and stacks, and drafted this report.
Rednaxeh commented 2026-11-25 15:07:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Rednaxeh on 2026-11-25T14:33:25Z.


@HKEY-Funk-Machine one correction to the RDNA3 reference, so that it does not stand as "AMD rebuilds cached blobs": on the RX 7800 XT the driver blobs XCL keeps do work. In a warm run of the same build every big compute program an earlier run had built came back driver blob supplied in 1–5 ms (the whole chain of twenty 270–330 KB programs and the 0.5–1.1 MB ones, 418 of them in the 900 s run); what was compiled again were programs no earlier run had created (82 new records in the second run, 25 of them over 256 KB), because the title asks for different pipelines as it gets further. If your 241 had a blob from the same build and the same driver and were still rebuilt, that is a different case from mine and worth its own look (a blob of another build, or of a --pipelines pass under another exe name, is refused by design: AMD keys its cache by application).

<!-- greyfinch-sync:ivall/xcl:comment:7165459272 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7165459272). Originally posted by [Rednaxeh](https://github.com/Rednaxeh) on 2026-11-25T14:33:25Z. --- @HKEY-Funk-Machine one correction to the RDNA3 reference, so that it does not stand as "AMD rebuilds cached blobs": on the RX 7800 XT the driver blobs XCL keeps do work. In a warm run of the same build every big compute program an earlier run had built came back `driver blob supplied` in 1–5 ms (the whole chain of twenty 270–330 KB programs and the 0.5–1.1 MB ones, 418 of them in the 900 s run); what was compiled again were programs no earlier run had created (82 new records in the second run, 25 of them over 256 KB), because the title asks for different pipelines as it gets further. If your 241 had a blob from the same build and the same driver and were still rebuilt, that is a different case from mine and worth its own look (a blob of another build, or of a `--pipelines` pass under another exe name, is refused by design: AMD keys its cache by application).
frenziedcoder commented 2026-11-25 15:08:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by frenziedcoder on 2026-11-25T14:53:50Z.


RTX 5080 16 GB, driver 621.40: #1798 on top of 4df1e6e removes the long stop at world load here too (frames every 30 s instead of none between 90 and 210 s), but what follows is a flat dark-grey frame at about 0.5 fps, and the run ends in a device removal with a DRED page fault at VA 0x0 at 424 s. One run per row, so this is a data point next to @minimalhipster990's RTX 4090 run above, not a measurement.

Setup: NVIDIA GeForce RTX 5080 16 GB (driver 621.40, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB RAM, Windows 11 Pro 26200, release. Trees: this PR at 4df1e6e unchanged, and 4df1e6e with #1798 (55e7beb) merged (clean merge, only bind.rs). Retail title of #505, 1.0.2.1. XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1 XCL_NETWORK=0 XCL_FRAME_DUMP=30, scripted A presses every 4 s from 20 to 120 s, 600 s limit. Compute pipelines precompiled for 621.40 with XCL_PRECOMPILE_SLICE=i/4 (2,689, 0 refused); graphics pipelines warm from earlier runs for both rows.

Without XCL_UMA_SHADOW:

4df1e6e 4df1e6e + #1798
presents per 30 s after the world load starts (~50–63 s) 98, then 0, 0, 0, 0 (90–210 s), then 10–15 117, then 10–16 in every window, no gap
GPU utilisation (nvidia-smi) ~0 % from 65 to 223 s, then 100 % in stretches 100 % from 76 to 372 s
presents after the world load starts 93 341
screen (frame dumps) flat dark grey flat dark grey
end no removal; last present 416 s, ran to the 600 s limit 0x887a0005 at 424 s; DRED: page fault at GPU VA 0x0, no allocation there or recently freed
peak local video memory (whole GPU, nvidia-smi) 15,867 MiB 15,879 MiB

With XCL_UMA_SHADOW=1 (same switches otherwise): the #1798 tree kept presenting from 66 to 118 s, then 0x887a0006 at 121 s with a DRED page fault at VA 0x0; the one list DRED shows partly done (25 of 30) stopped inside a run of CopyTextureRegions (op 8), the same picture as @kanade333's. Video memory sat at ~15,845 MiB from 99 s. The 4df1e6e run with the shadow was stopped by my own guard at 57 s (15,904 MiB > a 15,900 MiB limit I keep on this card), so there is no pair for that row.

So on this card #1798 turns the stop into slow grey frames rather than a wait, and the run then ends in the VA 0x0 page fault. My frame rate in the world is far below @kanade333's 10–12 fps on the same card; I ran without XCL_COHERENT_MB=512 and with XCL_WATCH_HOT at its default, and with DRED and frame dumps on.

Not tested: more than one run per row; XCL_COHERENT_MB=512 / XCL_WATCH_HOT=0 with #1798; #2270 together with #1798; runs without DRED.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine, read the logs and frame dumps, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7165985215 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7165985215). Originally posted by [frenziedcoder](https://github.com/frenziedcoder) on 2026-11-25T14:53:50Z. --- **RTX 5080 16 GB, driver 621.40: #1798 on top of `4df1e6e` removes the long stop at world load here too (frames every 30 s instead of none between 90 and 210 s), but what follows is a flat dark-grey frame at about 0.5 fps, and the run ends in a device removal with a DRED page fault at VA `0x0` at 424 s.** One run per row, so this is a data point next to @minimalhipster990's RTX 4090 run above, not a measurement. **Setup:** NVIDIA GeForce RTX 5080 16 GB (driver 621.40, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB RAM, Windows 11 Pro 26200, release. Trees: this PR at `4df1e6e` unchanged, and `4df1e6e` with #1798 (`55e7beb`) merged (clean merge, only `bind.rs`). Retail title of #505, 1.0.2.1. `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1 XCL_NETWORK=0 XCL_FRAME_DUMP=30`, scripted A presses every 4 s from 20 to 120 s, 600 s limit. Compute pipelines precompiled for 621.40 with `XCL_PRECOMPILE_SLICE=i/4` (2,689, 0 refused); graphics pipelines warm from earlier runs for both rows. **Without `XCL_UMA_SHADOW`:** | | `4df1e6e` | `4df1e6e` + #1798 | |---|---|---| | presents per 30 s after the world load starts (~50–63 s) | 98, then **0, 0, 0, 0** (90–210 s), then 10–15 | 117, then 10–16 in every window, no gap | | GPU utilisation (nvidia-smi) | ~0 % from 65 to 223 s, then 100 % in stretches | 100 % from 76 to 372 s | | presents after the world load starts | 93 | 341 | | screen (frame dumps) | flat dark grey | flat dark grey | | end | no removal; last present 416 s, ran to the 600 s limit | `0x887a0005` at 424 s; DRED: page fault at GPU VA `0x0`, no allocation there or recently freed | | peak local video memory (whole GPU, nvidia-smi) | 15,867 MiB | 15,879 MiB | **With `XCL_UMA_SHADOW=1`** (same switches otherwise): the #1798 tree kept presenting from 66 to 118 s, then `0x887a0006` at 121 s with a DRED page fault at VA `0x0`; the one list DRED shows partly done (25 of 30) stopped inside a run of `CopyTextureRegion`s (op 8), the same picture as @kanade333's. Video memory sat at ~15,845 MiB from 99 s. The `4df1e6e` run with the shadow was stopped by my own guard at 57 s (15,904 MiB > a 15,900 MiB limit I keep on this card), so there is no pair for that row. So on this card #1798 turns the stop into slow grey frames rather than a wait, and the run then ends in the VA `0x0` page fault. My frame rate in the world is far below @kanade333's 10–12 fps on the same card; I ran without `XCL_COHERENT_MB=512` and with `XCL_WATCH_HOT` at its default, and with DRED and frame dumps on. **Not tested:** more than one run per row; `XCL_COHERENT_MB=512` / `XCL_WATCH_HOT=0` with #1798; #2270 together with #1798; runs without DRED. *AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine, read the logs and frame dumps, and wrote this report.*
claudetools-gh commented 2026-11-25 15:08:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by claudetools-gh on 2026-11-25T15:07:35Z.


A test report on this branch from an RTX 5070 Ti: it reaches the in-world HUD here too. The minimap showed bottom left for about a second at ~250 s, over the grey scene (nothing of the 3D drawn), after the intro. That was one run of several; the others ended earlier (below).

Setup: RTX 5070 Ti 16 GB (Blackwell), Ryzen 7 9700X, 62 GB RAM, Windows 11 Pro 26300, release. Retail 1.0.2.1, Series X profile.

  • Tree: this PR (4df1e6e) + treybertram06's upload wait in title_textures.rs + main afc5ee8 merged in (with #2080 / #2107 / #2126, #2163, #2195, #1985) + #2092 / #541 / #1803 / #1887 (with #1803's heap addresses passed to both two-pass stages) + #2270 + #2306 + #2293 / #2294 / #2307 / #1055 / #2308.
  • One local change: the whole form of a split program that ExecuteIndirect needs is built on its own thread under XCL_PSO_WAIT_MS instead of on the title's thread (details and code on #2080; Kalmarv is moving it onto the PSO workers).
  • XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=0 XCL_WATCH_HOT=0 XCL_PSO_WAIT_MS=50 XCL_HUGE_PSO_CONCURRENCY=4 XCL_PSO_PRELOAD=1 XCL_PAGE_ALIAS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_NETWORK=0; the run with the HUD also had XCL_DIRECT_SPLIT_INSTRUCTIONS=0. Compute and graphics pipelines prebuilt from the journal of earlier runs.

What a run looks like: menus at 30 fps, loading artwork, the intro's opening titles with subtitles and audio from ~100 s at about 2 fps, then the grey scene; in the run above the minimap at ~250 s.

What changed things on this card, in order:

  • XCL_UMA_SHADOW=0 + XCL_WATCH_HOT=0: the one-frame black flicker on the loading artwork (20–25 per 120 s) went to none.
  • With #2270 and the main merge, the silent 0x887a0005 at the world load stopped: one run went the full 20 minutes without a removal, where every earlier warm run on this card lost the device at 130–420 s.
  • #2306: local video memory 10–12 GB of a 15 GB budget, where it was 15.8–19.3 GB (over the budget) without it.
  • The ExecuteIndirect whole-form change above: without it the title stopped presenting at ~135 s and compiled whole programs on its thread for the rest of the run.

Still open here:

  • The world is grey: a probe of the targets at an intro frame shows 254 draws with the 2560×1440 depth target bound and it left at its clear value everywhere, the G-buffer the same (#697).
  • The GPU is busy ~90 % of the time in that stretch, mostly in a few small compute programs with 100–355 ms dispatches (24de2aef6c31d55e, b78fa10b425b8e54, 1b5466f261a70cde, d79af1d04922a49b).
  • Two runs ended in a title crash, a read of 0xFFFFFFFFFFFFFFFF (game+0x54a5543 at 314 s, game+0x4e8b4be at 183 s), the same kind @DTsordas reported on AMD.

Not tested: more runs of the HUD configuration; AMD; this PR alone without the rest of the stack.

AI-assisted.

<!-- greyfinch-sync:ivall/xcl:comment:7166343260 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7166343260). Originally posted by [claudetools-gh](https://github.com/claudetools-gh) on 2026-11-25T15:07:35Z. --- A test report on this branch from an RTX 5070 Ti: **it reaches the in-world HUD here too.** The minimap showed bottom left for about a second at ~250 s, over the grey scene (nothing of the 3D drawn), after the intro. That was one run of several; the others ended earlier (below). **Setup:** RTX 5070 Ti 16 GB (Blackwell), Ryzen 7 9700X, 62 GB RAM, Windows 11 Pro 26300, release. Retail 1.0.2.1, Series X profile. - Tree: this PR (`4df1e6e`) + treybertram06's upload wait in `title_textures.rs` + `main` `afc5ee8` merged in (with #2080 / #2107 / #2126, #2163, #2195, #1985) + #2092 / #541 / #1803 / #1887 (with #1803's heap addresses passed to both two-pass stages) + #2270 + #2306 + #2293 / #2294 / #2307 / #1055 / #2308. - One local change: the whole form of a split program that ExecuteIndirect needs is built on its own thread under `XCL_PSO_WAIT_MS` instead of on the title's thread (details and code on #2080; Kalmarv is moving it onto the PSO workers). - `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=0 XCL_WATCH_HOT=0 XCL_PSO_WAIT_MS=50 XCL_HUGE_PSO_CONCURRENCY=4 XCL_PSO_PRELOAD=1 XCL_PAGE_ALIAS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_NETWORK=0`; the run with the HUD also had `XCL_DIRECT_SPLIT_INSTRUCTIONS=0`. Compute and graphics pipelines prebuilt from the journal of earlier runs. **What a run looks like:** menus at 30 fps, loading artwork, the intro's opening titles with subtitles and audio from ~100 s at about 2 fps, then the grey scene; in the run above the minimap at ~250 s. **What changed things on this card, in order:** - `XCL_UMA_SHADOW=0` + `XCL_WATCH_HOT=0`: the one-frame black flicker on the loading artwork (20–25 per 120 s) went to none. - With #2270 and the `main` merge, the silent `0x887a0005` at the world load stopped: one run went the full 20 minutes without a removal, where every earlier warm run on this card lost the device at 130–420 s. - #2306: local video memory 10–12 GB of a 15 GB budget, where it was 15.8–19.3 GB (over the budget) without it. - The ExecuteIndirect whole-form change above: without it the title stopped presenting at ~135 s and compiled whole programs on its thread for the rest of the run. **Still open here:** - The world is grey: a probe of the targets at an intro frame shows 254 draws with the 2560×1440 depth target bound and it left at its clear value everywhere, the G-buffer the same (#697). - The GPU is busy ~90 % of the time in that stretch, mostly in a few small compute programs with 100–355 ms dispatches (`24de2aef6c31d55e`, `b78fa10b425b8e54`, `1b5466f261a70cde`, `d79af1d04922a49b`). - Two runs ended in a title crash, a read of `0xFFFFFFFFFFFFFFFF` (`game+0x54a5543` at 314 s, `game+0x4e8b4be` at 183 s), the same kind @DTsordas reported on AMD. **Not tested:** more runs of the HUD configuration; AMD; this PR alone without the rest of the stack. AI-assisted.
frenziedcoder commented 2026-11-25 16:12:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by frenziedcoder on 2026-11-25T15:13:10Z.


Follow-up to my #1798 pair above, same RTX 5080 / 621.40 / trees: with @kanade333's switches the long stop isn't there even without #1798, so in my first pair the stop goes with the default switches. Both runs still end in the VA 0x0 page fault.

Switches: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 XCL_COHERENT_MB=512 XCL_WATCH_HOT=0 XCL_DRED=1 XCL_NETWORK=0 XCL_FRAME_DUMP=30, same A presses. No XCL_UMA_SHADOW: with it this card's video memory reaches my 15.9 GB guard. One run each.

4df1e6e 4df1e6e + #1798
presents per 30 s from 60 s 211, 100, 51, 6 208, 107, 37, 41, 65, 52
GPU utilisation ~100 % from 65 s ~100 % from 86 s (one dip at 108 s)
presents after the world load starts (62 s) 285 433
end 0x887a0005 at 153.6 s 0x887a0005 at 227.9 s
DRED page fault at GPU VA 0x0, no allocation the same
screen flat dark grey flat dark grey
  • So under these switches #1798 makes no difference I can tell apart from run-to-run spread; the gain in my first pair is the default switches' stop going away.
  • That is about 1–3.5 fps in the world, against 0.5 fps with the default switches and @kanade333's 10–12 fps on the same card with XCL_UMA_SHADOW=1 (610.88). I can't run the shadow here inside my memory limit, so I can't say whether that's what makes the difference.

AI use: Claude Code (Claude Opus 5.5) ran the title on my machine, read the logs and wrote this follow-up.

<!-- greyfinch-sync:ivall/xcl:comment:7166490981 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7166490981). Originally posted by [frenziedcoder](https://github.com/frenziedcoder) on 2026-11-25T15:13:10Z. --- **Follow-up to [my #1798 pair above](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7165985215), same RTX 5080 / 621.40 / trees: with @kanade333's switches the long stop isn't there even without #1798, so in my first pair the stop goes with the default switches. Both runs still end in the VA `0x0` page fault.** Switches: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 XCL_COHERENT_MB=512 XCL_WATCH_HOT=0 XCL_DRED=1 XCL_NETWORK=0 XCL_FRAME_DUMP=30`, same A presses. No `XCL_UMA_SHADOW`: with it this card's video memory reaches my 15.9 GB guard. One run each. | | `4df1e6e` | `4df1e6e` + #1798 | |---|---|---| | presents per 30 s from 60 s | 211, 100, 51, 6 | 208, 107, 37, 41, 65, 52 | | GPU utilisation | ~100 % from 65 s | ~100 % from 86 s (one dip at 108 s) | | presents after the world load starts (62 s) | 285 | 433 | | end | `0x887a0005` at 153.6 s | `0x887a0005` at 227.9 s | | DRED | page fault at GPU VA `0x0`, no allocation | the same | | screen | flat dark grey | flat dark grey | - So under these switches #1798 makes no difference I can tell apart from run-to-run spread; the gain in my first pair is the default switches' stop going away. - That is about 1–3.5 fps in the world, against 0.5 fps with the default switches and @kanade333's 10–12 fps on the same card with `XCL_UMA_SHADOW=1` (610.88). I can't run the shadow here inside my memory limit, so I can't say whether that's what makes the difference. *AI use: Claude Code (Claude Opus 5.5) ran the title on my machine, read the logs and wrote this follow-up.*
HKEY-Funk-Machine commented 2026-11-25 16:12:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by HKEY-Funk-Machine on 2026-11-25T15:43:18Z.


@Rednaxeh thank you, you're right, and I withdraw "the AMD driver built them again anyway" from my 7164354843. My precompile ran as xcl_pre*.exe and the title as another exe name, so the driver refused the blobs by design (its cache is keyed by application).

Rerun with the precompile and the title under the same exe name, RX 9070 (driver 32.0.32015.7029), main 06c9f55 + 0d25b89 (local), XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50, 300 s, nothing refused:

  • 68 of the 75 big compute builds in the run came back from their blob in under 100 ms.
  • The other 7 were driver blob absent: programs my precompile had not reached yet (I stopped it part-way). They took 22–34 s each and are what the run then waited on, from ~107 s to the end.
  • No device removal in this run on current main with nothing refused (the earlier 8ff4b02 runs needed 39f23deaf6a63310 / b78fa10b425b8e54 refused).

So on RDNA4 too, the cached blobs work when the names match. For AMD testers: run --precompile … --pipelines under the same exe the title runs as.

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

<!-- greyfinch-sync:ivall/xcl:comment:7167274825 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7167274825). Originally posted by [HKEY-Funk-Machine](https://github.com/HKEY-Funk-Machine) on 2026-11-25T15:43:18Z. --- @Rednaxeh thank you, you're right, and I withdraw "the AMD driver built them again anyway" from my 7164354843. My precompile ran as `xcl_pre*.exe` and the title as another exe name, so the driver refused the blobs by design (its cache is keyed by application). Rerun with the precompile and the title under the same exe name, RX 9070 (driver 32.0.32015.7029), `main` `06c9f55` + `0d25b89` (local), `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50`, 300 s, nothing refused: - 68 of the 75 big compute builds in the run came back from their blob in under 100 ms. - The other 7 were `driver blob absent`: programs my precompile had not reached yet (I stopped it part-way). They took 22–34 s each and are what the run then waited on, from ~107 s to the end. - No device removal in this run on current `main` with nothing refused (the earlier `8ff4b02` runs needed `39f23deaf6a63310` / `b78fa10b425b8e54` refused). So on RDNA4 too, the cached blobs work when the names match. For AMD testers: run `--precompile … --pipelines` under the same exe the title runs as. AI use: Claude Code (Claude Opus 5.5) ran the runs and wrote this comment.
bstillbstill commented 2026-11-25 17:07:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bstillbstill on 2026-11-25T16:42:09Z.


Test report for #2057 at 4df1e6e on a smaller machine than the 5090: the recommended settings run the menus at
3–5 fps here; without XCL_COHERENT_HEAPS=sparse:16 it runs at 30 fps and gets through the scene start, then the
silent 0x887a0005 comes ~18 s later.

Setup

  • RTX 3090 Ti 24 GB (driver 621.01), Intel i9-13900K, 31.7 GB RAM, Windows 11 Pro 26300, Rust 1.100.0, release.
  • The newer retail title of #505, warm caches: all 2,689 compute pipelines built ahead with
    xcl shaders shaders.rpf --precompile --only cs --pipelines, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1,
    XCL_PRECOMPILE_SLICE=i/4 (4 processes, 15.5 min, 0 refused, none over the 8 MiB cap). Graphics pipelines cold
    in the first run.
  • Every run: 300 s, the same scripted input (XCL_PRESS_A_AT 15 s then every 6 s), XCL_NETWORK=0,
    XCL_ACTIVITY=1, XCL_HUGE_PSO_CONCURRENCY=6, XCL_FRAME_DUMP=30.
  • g1 is 4df1e6e as it is. g3–g6 add treybertram06's one-line upload wait from #1452
    (vram::before_execute(&q) before submit_on in title_textures::upload_all's title-queue arm).

Runs (all with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1)

run build more env result frames
g1 4df1e6e XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 3–5 fps from the first menu, never reached the world; no removal 872
g3 + upload wait – (coherent window in place, UMA import check: ok) 30 fps; world-load burst at 64 s; 0x887a0006 + nvlddmkm 153 at 70.2 s ~1,900
g4 + upload wait XCL_UMA_SHADOW=1 XCL_LOOK_SKIP=1 30 fps; burst at 64 s, then 16 s at 7–9 fps (28–42 k dispatches / 2 s); stopped presenting at 82 s, no removal, exit 0 1,641
g5 + upload wait same as g4 same picture; 0x887a0005 (no nvlddmkm event) at 83.3 s –
g6 + upload wait same as g4 burst at 62 s, 11 s at 6–9 fps; 0x887a0005 at 73.6 s –
g7 + upload wait same as g3 burst at 70 s; 0x887a0006 at 74.8 s –
  • Why g1 is slow here: submit cost, average of 1024 ExecuteCommandLists: 28.33 ms … (look 20.96 … textures 6.92), 11 submits/s. The look watches ~10.4 GB (looks for CPU writes: … 535 MB a look on average (10441 MB watched in 9 ranges)): XCL_COHERENT_HEAPS=sparse:16 put the title's GPU heaps (1172 + 2199 + 563 + 596 MB)
    into the sparse windows. 15 GB of RAM stayed free, so it is not paging. Without that switch (g4) the look is
    0.15–0.22 ms a submit.
  • What g4/g5 show after the burst: the cutscene's title card renders correctly, then letterboxed flat grey with the
    cutscene's subtitles (the "grey scene").
  • No GPU wait released by the watchdog and no cycle break in any run.

Not tested: main alone with these switches; AMD; runs past 300 s; the 0x887a0006 in g3 with Aftermath (no dump).

AI use: Claude Code (Claude Opus 5.5) built the trees, ran everything above and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7168399267 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7168399267). Originally posted by [bstillbstill](https://github.com/bstillbstill) on 2026-11-25T16:42:09Z. --- Test report for #2057 at `4df1e6e` on a smaller machine than the 5090: the recommended settings run the menus at 3–5 fps here; without `XCL_COHERENT_HEAPS=sparse:16` it runs at 30 fps and gets through the scene start, then the silent `0x887a0005` comes ~18 s later. **Setup** - RTX 3090 Ti 24 GB (driver 621.01), Intel i9-13900K, 31.7 GB RAM, Windows 11 Pro 26300, Rust 1.100.0, release. - The newer retail title of #505, warm caches: all 2,689 compute pipelines built ahead with `xcl shaders shaders.rpf --precompile --only cs --pipelines`, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`, `XCL_PRECOMPILE_SLICE=i/4` (4 processes, 15.5 min, 0 refused, none over the 8 MiB cap). Graphics pipelines cold in the first run. - Every run: 300 s, the same scripted input (`XCL_PRESS_A_AT` 15 s then every 6 s), `XCL_NETWORK=0`, `XCL_ACTIVITY=1`, `XCL_HUGE_PSO_CONCURRENCY=6`, `XCL_FRAME_DUMP=30`. - g1 is `4df1e6e` as it is. g3–g6 add treybertram06's one-line upload wait from #1452 (`vram::before_execute(&q)` before `submit_on` in `title_textures::upload_all`'s title-queue arm). **Runs** (all with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`) | run | build | more env | result | frames | |---|---|---|---|---| | g1 | `4df1e6e` | `XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1` | 3–5 fps from the first menu, never reached the world; no removal | 872 | | g3 | + upload wait | – (coherent window in place, `UMA import check: ok`) | 30 fps; world-load burst at 64 s; `0x887a0006` + `nvlddmkm` 153 at 70.2 s | ~1,900 | | g4 | + upload wait | `XCL_UMA_SHADOW=1 XCL_LOOK_SKIP=1` | 30 fps; burst at 64 s, then 16 s at 7–9 fps (28–42 k dispatches / 2 s); stopped presenting at 82 s, no removal, exit 0 | 1,641 | | g5 | + upload wait | same as g4 | same picture; **`0x887a0005`** (no `nvlddmkm` event) at 83.3 s | – | | g6 | + upload wait | same as g4 | burst at 62 s, 11 s at 6–9 fps; **`0x887a0005`** at 73.6 s | – | | g7 | + upload wait | same as g3 | burst at 70 s; `0x887a0006` at 74.8 s | – | - **Why g1 is slow here:** `submit cost, average of 1024 ExecuteCommandLists: 28.33 ms … (look 20.96 … textures 6.92)`, 11 submits/s. The look watches ~10.4 GB (`looks for CPU writes: … 535 MB a look on average (10441 MB watched in 9 ranges)`): `XCL_COHERENT_HEAPS=sparse:16` put the title's GPU heaps (1172 + 2199 + 563 + 596 MB) into the sparse windows. 15 GB of RAM stayed free, so it is not paging. Without that switch (g4) the look is 0.15–0.22 ms a submit. - What g4/g5 show after the burst: the cutscene's title card renders correctly, then letterboxed flat grey with the cutscene's subtitles (the "grey scene"). - No GPU wait released by the watchdog and no cycle break in any run. **Not tested:** `main` alone with these switches; AMD; runs past 300 s; the 0x887a0006 in g3 with Aftermath (no dump). AI use: Claude Code (Claude Opus 5.5) built the trees, ran everything above and wrote this report.
jennydeth commented 2026-11-25 19:09:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jennydeth on 2026-11-25T18:20:03Z.


RTX 3060 12 GB / 32 GB RAM, this merged tree 4df1e6e in the game: the loading screens present for longer than on main, but the world is not reached. With the description's settings the device is removed (0x887a0006) at 98 s; without XCL_UMA_SHADOW there is no removal, but no frame after ~104 s to the end of 600 s. Commit reaches 39.5–40.8 GB in both, ~10 GB over main on the same load and over this machine's RAM. One run of each.

Setup: NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (wave32), Ryzen 5 5600X, 32 GB RAM, Windows 11 Pro 10.0.26300.9974. Release build of 4df1e6e as it is (not rebased), DXC 1.9.2609.5. Retail title 1.0.2.1, XCL_NETWORK=0, XCL_FRAME_DUMP=300, profile already past the first-run flow, A presses on the same schedule as my main run in #846. Before run 1, xcl shaders <shaders.rpf> --precompile --only cs --pipelines --used-only: 325 made, 0 refused, 0 errors, 76.8 s.

  • Run 1: the description's settings, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1
  • Run 2: the same without XCL_UMA_SHADOW, right after run 1 (driver blobs from run 1 in the cache)
xcl-smoke v1
commit: 4df1e6e3d40a011501c046148b6aa470437aa2eb
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 600
exit: 0x887a0006
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 56 23 40
device removals: 1
crashes: 1
peak commit: 39515 MB
xcl-smoke v1
commit: 4df1e6e3d40a011501c046148b6aa470437aa2eb
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 600
exit: 0x0
frames shown: 2268 (PresentX 2268)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 40776 MB
run 1 (with UMA shadow) run 2 (no UMA shadow) main 06c9f55 (#846)
story load starts ~74 s ~72 s ~68 s
last present-bearing 2 s window 98 s (frames up to the removal) 104 s 100 s
end D3D12 device removed: 0x887a0006 at 98.2 s still running at 600 s, black still running at 600 s, black
world reached no no no
peak commit 39 515 MB (at 98 s) 40 776 MB (at 378 s) 30 827 MB
video memory at peak: local / non-local 20 978 / 853 MB 17 570 / 4 895 MB 13 888 / 4 721 MB
sparse pools 6 144 MB 6 144 MB 1 920 MB
AS slot – refused / would close a GPU cycle / wanted at once 40 / 0 / 0 40 / 0 / 3 40 / 0 / 0
  • Run 1: every 2 s window has frames through the load until the removal at 98.2 s (no DRED lines in the log), the same class as the RTX 5060 Laptop removals in #846 at 122–125 s. Local video memory is at 21 GB on a 12 GB card at that moment.
  • Run 2: no removal, but after 104 s the activity windows are empty except for 704 dispatches and 215 draws in 500 s. 103 of 105 driver compiles finished, 77 of them after 104 s; the last two (compute, 845 KB and 748 KB of DXIL, driver blob absent) started at 592 and 595 s. Three huge graphics pipelines wanted at once (no slot) at 182 s (738–740 KB of DXIL, the first 11.9 s), like the description's second 5090 run.
  • Memory: taking XCL_UMA_SHADOW off did not lower the commit (39.5 → 40.8 GB). Against main, the visible differences in the memory line are the sparse pools (6.1 vs 1.9 GB) and the local video memory over the card's 12 GB. I have not split it further by setting or commit.

Not tested: a second run of each setting; the tree without XCL_HEAP_WINDOWS / XCL_COHERENT_HEAPS; the unit / GPU suite on this tree; AMD; a machine with more RAM.

AI use: Claude Code (Claude Opus 5.5) built the tree, ran the precompile and the title on my machine, read the logs and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7170764430 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7170764430). Originally posted by [jennydeth](https://github.com/jennydeth) on 2026-11-25T18:20:03Z. --- **RTX 3060 12 GB / 32 GB RAM, this merged tree `4df1e6e` in the game: the loading screens present for longer than on `main`, but the world is not reached. With the description's settings the device is removed (`0x887a0006`) at 98 s; without `XCL_UMA_SHADOW` there is no removal, but no frame after ~104 s to the end of 600 s. Commit reaches 39.5–40.8 GB in both, ~10 GB over `main` on the same load and over this machine's RAM.** One run of each. **Setup:** NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (wave32), Ryzen 5 5600X, **32 GB RAM**, Windows 11 Pro 10.0.26300.9974. Release build of `4df1e6e` as it is (not rebased), DXC 1.9.2609.5. Retail title 1.0.2.1, `XCL_NETWORK=0`, `XCL_FRAME_DUMP=300`, profile already past the first-run flow, A presses on the same schedule as my `main` run in #846. Before run 1, `xcl shaders <shaders.rpf> --precompile --only cs --pipelines --used-only`: 325 made, 0 refused, 0 errors, 76.8 s. - Run 1: the description's settings, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1` - Run 2: the same without `XCL_UMA_SHADOW`, right after run 1 (driver blobs from run 1 in the cache) ``` xcl-smoke v1 commit: 4df1e6e3d40a011501c046148b6aa470437aa2eb gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 600 exit: 0x887a0006 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 56 23 40 device removals: 1 crashes: 1 peak commit: 39515 MB ``` ``` xcl-smoke v1 commit: 4df1e6e3d40a011501c046148b6aa470437aa2eb gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 600 exit: 0x0 frames shown: 2268 (PresentX 2268) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 40776 MB ``` | | run 1 (with UMA shadow) | run 2 (no UMA shadow) | `main` `06c9f55` (#846) | |---|---|---|---| | story load starts | ~74 s | ~72 s | ~68 s | | last present-bearing 2 s window | 98 s (frames up to the removal) | 104 s | 100 s | | end | `D3D12 device removed: 0x887a0006` at 98.2 s | still running at 600 s, black | still running at 600 s, black | | world reached | no | no | no | | peak commit | 39 515 MB (at 98 s) | 40 776 MB (at 378 s) | 30 827 MB | | video memory at peak: local / non-local | 20 978 / 853 MB | 17 570 / 4 895 MB | 13 888 / 4 721 MB | | sparse pools | 6 144 MB | 6 144 MB | 1 920 MB | | `AS slot – refused` / `would close a GPU cycle` / `wanted at once` | 40 / 0 / 0 | 40 / 0 / 3 | 40 / 0 / 0 | - **Run 1:** every 2 s window has frames through the load until the removal at 98.2 s (no DRED lines in the log), the same class as the RTX 5060 Laptop removals in #846 at 122–125 s. Local video memory is at 21 GB on a 12 GB card at that moment. - **Run 2:** no removal, but after 104 s the activity windows are empty except for 704 dispatches and 215 draws in 500 s. 103 of 105 driver compiles finished, 77 of them after 104 s; the last two (compute, 845 KB and 748 KB of DXIL, `driver blob absent`) started at 592 and 595 s. Three huge graphics pipelines `wanted at once (no slot)` at 182 s (738–740 KB of DXIL, the first 11.9 s), like the description's second 5090 run. - **Memory:** taking `XCL_UMA_SHADOW` off did not lower the commit (39.5 → 40.8 GB). Against `main`, the visible differences in the memory line are the sparse pools (6.1 vs 1.9 GB) and the local video memory over the card's 12 GB. I have not split it further by setting or commit. **Not tested:** a second run of each setting; the tree without `XCL_HEAP_WINDOWS` / `XCL_COHERENT_HEAPS`; the unit / GPU suite on this tree; AMD; a machine with more RAM. AI use: Claude Code (Claude Opus 5.5) built the tree, ran the precompile and the title on my machine, read the logs and wrote this.
bstillbstill commented 2026-11-25 19:09:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bstillbstill on 2026-11-25T18:49:58Z.


@claudetools-gh could you push the tree from your RTX 5070 Ti run, the one that went 20 minutes without the silent 0x887a0005, as a branch, with your local ExecuteIndirect whole-form change in it? I'd like to run that exact tree on an RTX 3090 Ti (Ampere), where the removal still comes in the world.

What I have on this card so far (details on #2270): #2270 on top of #2057 changes nothing (removed 105–133 s with it, 97–130 s without, same day), and its probe passes here. So if your tree holds on this card, the main merge is the likelier half of what stopped it for you; if it doesn't, the difference is the card. Merging #2057 into today's main myself conflicts in 10 files, and I'd rather test what you ran than my own resolution of it.

The branch and its commit are all I need; the switches are in your comment.

AI use: Claude Code (Claude Opus 5.5) wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7171461640 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7171461640). Originally posted by [bstillbstill](https://github.com/bstillbstill) on 2026-11-25T18:49:58Z. --- @claudetools-gh could you push the tree from [your RTX 5070 Ti run](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7166343260), the one that went 20 minutes without the silent `0x887a0005`, as a branch, with your local ExecuteIndirect whole-form change in it? I'd like to run that exact tree on an RTX 3090 Ti (Ampere), where the removal still comes in the world. What I have on this card so far ([details on #2270](https://github.com/xcl-dev/xcl/pull/2270#issuecomment-7169231363)): #2270 on top of #2057 changes nothing (removed 105–133 s with it, 97–130 s without, same day), and its probe passes here. So if your tree holds on this card, the `main` merge is the likelier half of what stopped it for you; if it doesn't, the difference is the card. Merging #2057 into today's `main` myself conflicts in 10 files, and I'd rather test what you ran than my own resolution of it. The branch and its commit are all I need; the switches are in your comment. AI use: Claude Code (Claude Opus 5.5) wrote this comment.
claudetools-gh commented 2026-11-25 19:09:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by claudetools-gh on 2026-11-25T18:58:07Z.


@bstillbstill I'd rather not push a branch: we keep this account anonymous and don't upload files with their metadata, so we help in text. Here is the exact recipe for that run instead, and one caveat about it that matters for your comparison.

Caveat first: the 20-minute run without a removal (on main 1a0bbe3, before the whole-form change) did not keep the title moving: presents stopped at ~110 s while it compiled 146 new compute pipelines in the driver, one after another, to the end. So "no removal" there may mostly mean "the title didn't advance to where it removes". The later runs on the same merge that did keep presenting (with XCL_PSO_WAIT_MS=50 and the whole-form change; on a tree that also had main afc5ee8 merged and #2306 + the #2308 stack) had no silent 0x887a0005 either: the three that ran to their end ended in a title crash reading 0xFFFFFFFFFFFFFFFF at 183–622 s. Before the merge, every warm run on this card lost the device at 130–420 s. So the merge plus #2270 does look like what stopped the removal here, but with the title crash taking its place I can't say how far past it the world would get.

The tree of that run (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=0 XCL_WATCH_HOT=0 XCL_PSO_PRELOAD=0 XCL_NETWORK=0), in order:

  1. #2057 at 4df1e6e.
  2. treybertram06's upload wait in title_textures.rs (super::vram::before_execute(&q); before submit_on(dev, &q, &items) in the title-queue arm, as on #1452).
  3. #2092 (99b9816…47c7cc1), #541's own four commits (70f9185, 48c1517, 7654a2a, 6bd8f64; its three Recompiler: commits are already in the base), #1803 (cb00751), #1887 (5fe5b41), plus #1803's heap addresses passed to both two-pass stages (two_pass_io takes the list's heaps and calls with_heaps(l, None, user_data_ms(..), heaps) for the compute pass and with_heaps(l, None, user_data_gfx(..), heaps) for the mesh pass).
  4. git merge origin/main at 1a0bbe3. Conflicts in six files; every one kept both sides:
    • emit.rs: the coherent_mem field next to main's img_writes (#2156).
    • device_x.rs create_placed_resource_x: both the timer and main's pso_async::pc_call() guard (#1782).
    • list_x.rs end_query_x: main's (forward, force_visible) (#1991); main's new note_dropped_draw has to go through the sharded recording() instead of LISTS.lock() (no textual conflict, but it doesn't compile otherwise).
    • title_list.rs release: main's b.first (#2163) unmapped too.
    • real.rs: NEWER_LIST_SLOTS must have exactly one mapping for newer #129, which is (129, 127) (#2092's hook); main's (129, 126) has no handler. fallback_stream: main's version (#1988) with #1887's MS-in-AS-slot also counting as mesh. note_resubmits (#2163) before the driver timer.
    • title_textures.rs: #2057's upload rework removed what main's streamed-texture recheck (#2029) uses; I kept the recheck and pointed it at #2057's Due list and texture_upload::content_hash, and a re-queued texture also has to go into pending_res.
  5. #2270 (b7f6b76) on top; it applied cleanly after the merge.

That is all of it for that run (no #2306, no page-alias stack, no whole-form change yet). If you would rather skip the merge, the cheaper comparison is probably main itself today plus #2057's handful of commits you need, since Kalmarv's #2372 / #2404 now cover the ExecuteIndirect whole form properly.

AI-assisted.

<!-- greyfinch-sync:ivall/xcl:comment:7171644674 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7171644674). Originally posted by [claudetools-gh](https://github.com/claudetools-gh) on 2026-11-25T18:58:07Z. --- @bstillbstill I'd rather not push a branch: we keep this account anonymous and don't upload files with their metadata, so we help in text. Here is the exact recipe for that run instead, and one caveat about it that matters for your comparison. **Caveat first:** the 20-minute run without a removal (on `main` `1a0bbe3`, before the whole-form change) did **not** keep the title moving: presents stopped at ~110 s while it compiled 146 new compute pipelines in the driver, one after another, to the end. So "no removal" there may mostly mean "the title didn't advance to where it removes". The later runs on the same merge that did keep presenting (with `XCL_PSO_WAIT_MS=50` and the whole-form change; on a tree that also had `main` `afc5ee8` merged and #2306 + the #2308 stack) had **no** silent `0x887a0005` either: the three that ran to their end ended in a title crash reading `0xFFFFFFFFFFFFFFFF` at 183–622 s. Before the merge, every warm run on this card lost the device at 130–420 s. So the merge plus #2270 does look like what stopped the removal here, but with the title crash taking its place I can't say how far past it the world would get. **The tree of that run** (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=0 XCL_WATCH_HOT=0 XCL_PSO_PRELOAD=0 XCL_NETWORK=0`), in order: 1. #2057 at `4df1e6e`. 2. treybertram06's upload wait in `title_textures.rs` (`super::vram::before_execute(&q);` before `submit_on(dev, &q, &items)` in the title-queue arm, as on #1452). 3. #2092 (`99b9816`…`47c7cc1`), #541's own four commits (`70f9185`, `48c1517`, `7654a2a`, `6bd8f64`; its three `Recompiler:` commits are already in the base), #1803 (`cb00751`), #1887 (`5fe5b41`), plus #1803's heap addresses passed to both two-pass stages (`two_pass_io` takes the list's heaps and calls `with_heaps(l, None, user_data_ms(..), heaps)` for the compute pass and `with_heaps(l, None, user_data_gfx(..), heaps)` for the mesh pass). 4. `git merge origin/main` at `1a0bbe3`. Conflicts in six files; every one kept both sides: - `emit.rs`: the `coherent_mem` field next to main's `img_writes` (#2156). - `device_x.rs` `create_placed_resource_x`: both the timer and main's `pso_async::pc_call()` guard (#1782). - `list_x.rs` `end_query_x`: main's `(forward, force_visible)` (#1991); main's new `note_dropped_draw` has to go through the sharded `recording()` instead of `LISTS.lock()` (no textual conflict, but it doesn't compile otherwise). - `title_list.rs` `release`: main's `b.first` (#2163) unmapped too. - `real.rs`: `NEWER_LIST_SLOTS` must have exactly one mapping for newer #129, which is `(129, 127)` (#2092's hook); main's `(129, 126)` has no handler. `fallback_stream`: main's version (#1988) with #1887's MS-in-AS-slot also counting as mesh. `note_resubmits` (#2163) before the driver timer. - `title_textures.rs`: #2057's upload rework removed what main's streamed-texture recheck (#2029) uses; I kept the recheck and pointed it at #2057's `Due` list and `texture_upload::content_hash`, and a re-queued texture also has to go into `pending_res`. 5. #2270 (`b7f6b76`) on top; it applied cleanly after the merge. That is all of it for that run (no #2306, no page-alias stack, no whole-form change yet). If you would rather skip the merge, the cheaper comparison is probably `main` itself today plus #2057's handful of commits you need, since Kalmarv's #2372 / #2404 now cover the ExecuteIndirect whole form properly. AI-assisted.
shortside commented 2026-11-25 20:08:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by shortside on 2026-11-25T19:18:57Z.


A Mac data point for the stop @kole07139 describes above (https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159078757) and again on main in https://github.com/xcl-dev/xcl/issues/1773#issuecomment-7170788299: the same sequence shows up on Apple's D3DMetal, on a different tree, so it does not look tied to NVIDIA or to this branch. On the Mac the title then goes on for two more frames before the queue stops.

Setup. Not this PR's tree: @vakaobr's mac/integration at 5f9a58f (the Mac branch mac7 plus #615, #1405, #1993 and Mac fixes, see #258), release build. MacBook Pro M5 Pro, 24 GB, macOS 27.2.1, CrossOver 26.3, D3DMetal (32-lane waves). The retail title of #505 (my own copy), device_type = "lockhart", raytracing = "off", XCL_VRAM_ARENAS=1 XCL_PSO_WAIT_MS=50, HLSL path, compute pipelines built as the title asks for them, A pressed every 6 s. One run, 330 s. Details of the three runs of that evening are in https://github.com/xcl-dev/xcl/issues/258#issuecomment-7172050724.

The sequence

s what the log has
up to 193 37 – 47 presents per 2 s
194.9 – 195.1 8 × Wait64BitValueX at … >= 0xeec bridged to GPU queue.Wait (waiter=q0/q2/q3/q4, prod=qSome(1)/tySome(0); wait-before-signal, after_write64=false)
195 – 197 0 presents, 7 submits, 4,812 dispatches in the 2 s window
196.5 split command list (type 2) around mid-list Wait after Write64 (#1)
197 – 221 no presents, almost no submits; compute pipelines are being built (one of 823,448 B of DXIL took 5.5 s at 221 s)
220.8 – 222.3 splits #2, #3, #4
221 – 226 two presents, with 2,533 and 6,044 dispatches and 74 and 222 draws in their 2 s windows; on screen one flat colour after black
229.4 4 × GPU queue.Wait at … >= 0xeee did not complete within 5000 ms (… recorded=0xeef, submitted=0xeed/0xeee, completed=0xeed) – released on CPU to prevent GPU hang
after no present; writes after the GPU … although their queue had not got there after 10000 ms every 10 – 20 s; the title's stall watchdog fires three times and is skipped; D3D12 queue drain: GPU fences still pending after 10 s at exit

Same as on the RTX 3070: the burst of dispatches with no presents, the mid-list split right after it, the Wait64BitValueX … wait-before-signal lines, and a flat-colour frame followed by black.

Different: here the producer of every wait is named (prod=qSome(1) or qSome(4), none qNone), the title presents twice more about 25 s after the first split, and the stop is reported: the GPU-wait watchdog releases four waits at 229 s. I have no thread dumps of that run, so I cannot say what the title's threads wait on.

Not tested: this PR's tree on the Mac; main; a second run; compute pipelines built ahead (the 25 s without presents may be nothing but pipeline builds).

AI use: Claude Code with Claude Fable 5.2 built the tree, ran the run on my machine, read the log and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7172127041 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7172127041). Originally posted by [shortside](https://github.com/shortside) on 2026-11-25T19:18:57Z. --- A Mac data point for the stop @kole07139 describes above (https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159078757) and again on `main` in https://github.com/xcl-dev/xcl/issues/1773#issuecomment-7170788299: the same sequence shows up on Apple's D3DMetal, on a different tree, so it does not look tied to NVIDIA or to this branch. On the Mac the title then goes on for two more frames before the queue stops. **Setup.** Not this PR's tree: @vakaobr's `mac/integration` at `5f9a58f` (the Mac branch `mac7` plus #615, #1405, #1993 and Mac fixes, see #258), release build. MacBook Pro M5 Pro, 24 GB, macOS 27.2.1, CrossOver 26.3, D3DMetal (32-lane waves). The retail title of #505 (my own copy), `device_type = "lockhart"`, `raytracing = "off"`, `XCL_VRAM_ARENAS=1 XCL_PSO_WAIT_MS=50`, HLSL path, compute pipelines built as the title asks for them, A pressed every 6 s. One run, 330 s. Details of the three runs of that evening are in https://github.com/xcl-dev/xcl/issues/258#issuecomment-7172050724. **The sequence** | s | what the log has | |---|---| | up to 193 | 37 – 47 presents per 2 s | | 194.9 – 195.1 | 8 × `Wait64BitValueX at … >= 0xeec bridged to GPU queue.Wait (waiter=q0/q2/q3/q4, prod=qSome(1)/tySome(0); wait-before-signal, after_write64=false)` | | 195 – 197 | 0 presents, 7 submits, 4,812 dispatches in the 2 s window | | 196.5 | `split command list (type 2) around mid-list Wait after Write64 (#1)` | | 197 – 221 | no presents, almost no submits; compute pipelines are being built (one of 823,448 B of DXIL took 5.5 s at 221 s) | | 220.8 – 222.3 | splits #2, #3, #4 | | 221 – 226 | two presents, with 2,533 and 6,044 dispatches and 74 and 222 draws in their 2 s windows; on screen one flat colour after black | | 229.4 | 4 × `GPU queue.Wait at … >= 0xeee did not complete within 5000 ms (… recorded=0xeef, submitted=0xeed/0xeee, completed=0xeed) – released on CPU to prevent GPU hang` | | after | no present; `writes after the GPU … although their queue had not got there after 10000 ms` every 10 – 20 s; the title's stall watchdog fires three times and is skipped; `D3D12 queue drain: GPU fences still pending after 10 s` at exit | **Same as on the RTX 3070:** the burst of dispatches with no presents, the mid-list split right after it, the `Wait64BitValueX … wait-before-signal` lines, and a flat-colour frame followed by black. **Different:** here the producer of every wait is named (`prod=qSome(1)` or `qSome(4)`, none `qNone`), the title presents twice more about 25 s after the first split, and the stop is reported: the GPU-wait watchdog releases four waits at 229 s. I have no thread dumps of that run, so I cannot say what the title's threads wait on. **Not tested:** this PR's tree on the Mac; `main`; a second run; compute pipelines built ahead (the 25 s without presents may be nothing but pipeline builds). **AI use:** Claude Code with Claude Fable 5.2 built the tree, ran the run on my machine, read the log and wrote this comment.
BillyBuilds commented 2026-11-25 21:05:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BillyBuilds on 2026-11-25T20:40:10Z.


RTX 5070 (32-lane waves), 32 GB RAM, Windows 11, driver 621.40. Tree: this branch at 4df1e6e
(same tree as @frenziedcoder's rows). Retail title of #505, 1.0.2.1. Env: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_DRED=1, raytracing off in xcl.toml, A pressed by hand at the
account prompt.

Setup: all compute pipelines precompiled first (--precompile --only cs --pipelines,
XCL_PRECOMPILE_SLICE over i = 0..3): ~2,900 pipelines, 0 refused, ~3,800 driver blobs / 1.3 GB,
all on 621.40.

Result, one run:

  • boot to menus ~4 s, ~8 fps through the menus and into the load, 900 frames presented by t=121 s
  • world load: long stall while graphics PSOs built cold (122 of the 256-512 KB class at 3-8 s each
    on this driver); the precompiled compute ones came back blob-supplied in 0.3-0.5 s, the >1 MB
    ones included
  • run stayed alive 1704 s, then a device removal: DRED page fault at GPU VA 0x0, the title's own
    crash handler (0x80000003) right after. Same fault as the RTX 5080 at 424 s here, at 4x the
    runtime and with half the RAM (32 GB).

Cold driver-compile times for the big compute programs on 621.40 (earlier runs, same tree, before
the precompile): 265 KB ~ 3 s, 700 KB ~ 43 s, 1.0 MB ~ 2 min, 1.5 MB ~ 4 min, 3.3 MB ~ 5.3 min -
roughly quadratic in DXIL size. With the blobs, the same >1 MB programs bind in ~0.5 s.

A note on XCL_PRECOMPILE_SLICE for the next tester: i/n selects the shaders whose index % n == i,
so i runs 0..n-1 - 4/4 and 8/8 quietly select nothing (an empty 0.6 s run).

Everything the run built is banked; I'll re-test the newer head of this branch with warm caches.

AI use

  • Cline (VS Code) with an abliterated GLM-5.3-Flash model read this run's xcl.log and
    eport.json and wrote the text above; the run, the precompile, the hardware and the A press at the prompt are mine, and every number comes from that real run.

Follow-up - second run, same env, one local diagnostic patch on top of 4df1e6e

I added 16 lines to log_device_removed (crates/xcl/src/hle/d3d12x/real.rs): log when GetAutoBreadcrumbsOutput() returns Err, when its node list is empty, and the node count when it is not. Happy to send it as its own PR if wanted.

Run 2 died at t=533 s with the same 0x887a0005 / DRED page fault at GPU VA 0x0 (both allocation lists empty, again). The new line:

DRED: no auto-breadcrumb nodes (the driver's list is empty)

So on driver 621.40 the call succeeds but the head is null: SetAutoBreadcrumbsEnablement(FORCED_ON) is set at init, GetPageFaultAllocationOutput() works, yet no breadcrumb nodes ever come back. The op-level DRED: list ... operations done, around: ... lines XCL already prints cannot appear on this driver. If someone sees breadcrumbs on another NVIDIA driver or on AMD, that difference is worth posting; on 621.40 the page-fault output is all DRED gives.

Two smaller things from reading this run's log:

  • 429 driver compiles finished in 1-5 ms each (the NVIDIA driver's own shader cache served them), so driver_cache::keep's 250 ms KEEP wrote nothing - nothing is lost, the ~3,800 blobs on disk are still what the next run reads. A run with no "kept on disk" lines means the driver cache answered, not that the run banked nothing.
  • one 740 KB graphics record was built three times on three threads inside 26 s (#2282/#2300/#2352, all "huge, wanted at once (no slot)"): keep_graphics_blob's map only memoizes finished builds, so concurrent requests for the same key all build it. Cheap once the driver cache is warm (1 ms), but three cold 3 s builds would be one.
<!-- greyfinch-sync:ivall/xcl:comment:7174012642 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7174012642). Originally posted by [BillyBuilds](https://github.com/BillyBuilds) on 2026-11-25T20:40:10Z. --- RTX 5070 (32-lane waves), 32 GB RAM, Windows 11, driver 621.40. Tree: this branch at `4df1e6e` (same tree as @frenziedcoder's rows). Retail title of #505, 1.0.2.1. Env: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_DRED=1`, raytracing off in xcl.toml, A pressed by hand at the account prompt. Setup: all compute pipelines precompiled first (`--precompile --only cs --pipelines`, XCL_PRECOMPILE_SLICE over i = 0..3): ~2,900 pipelines, 0 refused, ~3,800 driver blobs / 1.3 GB, all on 621.40. Result, one run: - boot to menus ~4 s, ~8 fps through the menus and into the load, 900 frames presented by t=121 s - world load: long stall while graphics PSOs built cold (122 of the 256-512 KB class at 3-8 s each on this driver); the precompiled compute ones came back blob-supplied in 0.3-0.5 s, the >1 MB ones included - run stayed alive 1704 s, then a device removal: DRED page fault at GPU VA 0x0, the title's own crash handler (0x80000003) right after. Same fault as the RTX 5080 at 424 s here, at 4x the runtime and with half the RAM (32 GB). Cold driver-compile times for the big compute programs on 621.40 (earlier runs, same tree, before the precompile): 265 KB ~ 3 s, 700 KB ~ 43 s, 1.0 MB ~ 2 min, 1.5 MB ~ 4 min, 3.3 MB ~ 5.3 min - roughly quadratic in DXIL size. With the blobs, the same >1 MB programs bind in ~0.5 s. A note on XCL_PRECOMPILE_SLICE for the next tester: i/n selects the shaders whose index % n == i, so i runs 0..n-1 - 4/4 and 8/8 quietly select nothing (an empty 0.6 s run). Everything the run built is banked; I'll re-test the newer head of this branch with warm caches. --- **AI use** - Cline (VS Code) with an abliterated GLM-5.3-Flash model read this run's xcl.log and eport.json and wrote the text above; the run, the precompile, the hardware and the A press at the prompt are mine, and every number comes from that real run. --- **Follow-up - second run, same env, one local diagnostic patch on top of `4df1e6e`** I added 16 lines to `log_device_removed` (`crates/xcl/src/hle/d3d12x/real.rs`): log when `GetAutoBreadcrumbsOutput()` returns `Err`, when its node list is empty, and the node count when it is not. Happy to send it as its own PR if wanted. Run 2 died at t=533 s with the same `0x887a0005` / DRED page fault at GPU VA 0x0 (both allocation lists empty, again). The new line: ``` DRED: no auto-breadcrumb nodes (the driver's list is empty) ``` So on driver 621.40 the call succeeds but the head is null: `SetAutoBreadcrumbsEnablement(FORCED_ON)` is set at init, `GetPageFaultAllocationOutput()` works, yet no breadcrumb nodes ever come back. The op-level `DRED: list ... operations done, around: ...` lines XCL already prints cannot appear on this driver. If someone sees breadcrumbs on another NVIDIA driver or on AMD, that difference is worth posting; on 621.40 the page-fault output is all DRED gives. Two smaller things from reading this run's log: - 429 driver compiles finished in 1-5 ms each (the NVIDIA driver's own shader cache served them), so `driver_cache::keep`'s 250 ms `KEEP` wrote nothing - nothing is lost, the ~3,800 blobs on disk are still what the next run reads. A run with no "kept on disk" lines means the driver cache answered, not that the run banked nothing. - one 740 KB graphics record was built three times on three threads inside 26 s (#2282/#2300/#2352, all "huge, wanted at once (no slot)"): `keep_graphics_blob`'s map only memoizes finished builds, so concurrent requests for the same key all build it. Cheap once the driver cache is warm (1 ms), but three cold 3 s builds would be one.
justrhoto commented 2026-11-25 22:06:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by justrhoto on 2026-11-25T21:40:18Z.


RTX 4070 Ti SUPER 16 GB: #2057 with the fixes from this thread, merged with main at c56e744 (70 commits behind main now). The compute pack, chain pipelines included, now loads from kept blobs, so compute no longer stalls. What remains: graphics pipelines built cold leave draws skipped (58–78 % in the first runs: a grey world with only the 2D overlay drawn; 24 % by the third), and the device is removed at 328–373 s in every run.

Tree: justrhoto/xcl@pr2057-tree-main2:

  • 9f71772: #2057 with #2270, #1798, #751, the DXC fallback for internal shaders and the texture_upload test fix;
  • f8526ed: merged with main c56e744 (103 commits). Conflicts were resolved in vram.rs, sparse.rs, title_textures.rs, kernelx.rs, bind.rs, pso_async.rs and dstorage.rs; main's sparse tile quarantine (10e9fb7) was ported onto this tree's sparse.rs;
  • 06053a1: Shaders: --pipelines makes a split program's chain pipelines.
    • Before it, --precompile --pipelines made only the plain blob of a split program. The runtime builds that program as a dispatch chain, with each piece and the whole on dispatch_chain_root_signature, and looks for .chain.pso blobs.
    • Without this fix, every split program met in the run compiled in the driver: 62–70 per run, 650–985 KB of DXIL each, 11–20 s each, one at a time. Presents stopped for minutes at a time.
    • New test: a_split_program_keeps_the_blobs_of_its_pieces_and_whole_as_chain_blobs. It fails without the fix (1 made instead of 3).
    • main has since landed the same fix as 2228be7, which prebuilds the pieces. The difference in 06053a1 is that it also builds the whole program as a chain pipeline, which the runtime builds lazily on the same root signature. 2228be7 leaves that pipeline to be compiled in the run.

Head 06053a1 (github.com/justrhoto/xcl@06053a18cb), no uncommitted changes.

Setup

  • RTX 4070 Ti SUPER 16 GB, NVIDIA 610.88, 32-lane waves.
  • Ryzen 5 5600X3D, 64 GB RAM, Windows 11 Home 26200, Rust 1.100.0, release.
  • The retail title of #505, my own copy.

Tests: cargo test --release -p xcl --lib -- --test-threads=4: 1327 passed, 0 failed, 26 ignored.

  • SKIPPED: the no wave64 tests, one no dxil.dll, one 0x887A002D, and f16 refusals.
  • This was the xcl lib only, not --workspace.

Precompile: xcl shaders <pack> --precompile --only cs --pipelines with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, in four processes (XCL_PRECOMPILE_SLICE=0/4 … 3/4).

  • All four finished with 0 refused.
  • 14 144 .chain.pso blobs and 9 922 plain compute blobs are on disk.

Title runs: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 XCL_WATCH_HOT=0 XCL_COHERENT_MB=512. Three runs on 06053a1, each keeping the graphics blobs of the runs before it:

run 1 run 2 run 3
compute pipelines compiled in the run 2 (727 from kept blobs) 0 0
graphics pipelines 36 cold, 1 from disk 45 cold, 26 from disk 47 cold, 69 from disk
driver time on huge graphics compiles 216 s 309 s 272 s
longest wait at the huge-compile gate 85 s 163 s 117 s
draws skipped (pipeline still building, #1798) 68 998 of 118 908 (58 %) 113 395 of 146 234 (78 %) 64 221 of 266 175 (24 %)
dispatches skipped 0 0 0
end 0x887a0006 at 373.3 s, then the title's int3 at +0x2474606 device removed at 355.6 s (first seen as 0x887a0005 on CreatePlacedResourceX), then the same int3; the process then hung and had to be ended device removed at 327.9 s (0x887a0005 on CreatePlacedResourceX), then the same int3
  • Compute: fixed by the precompile change. The fps drops now line up with the huge graphics compiles, which run one at a time behind the gate.
  • Picture (runs 1–2): grey 3D, with the 2D overlay (minimap, credits text) drawn. This matches the skipped draws. Each run keeps its graphics blobs: by run 3 the skipped share fell to 24 %.
  • Before the removal: nothing in the log points at a cause.
    • no Wait64BitValueX timeout;
    • no GPU-wait watchdog line;
    • no mid-list Wait64 split.
    • The only unusual notes are "a command list is submitted while its previous submit is still on the GPU" (12–13 per run), and the "command list reset while its last submit is on the GPU" / allocator put-aside counters.
  • The hang: after the removal in run 2, the log stops 0.15 s after it, and report.json was written only when I ended the process.

Next: a run with XCL_DRED=1 to name the work in flight at the removal. I'll edit this comment with the result.

Not tested

  • cargo test --workspace and the integration tests; scripts/smoke.ps1.
  • Graphics pipelines precompiled.
  • XCL_HUGE_PSO_CONCURRENCY above the default.
  • XCL_DRED / XCL_GPU_PROFILE on this head.
  • Without XCL_UMA_SHADOW.
  • AMD.

AI use: Claude Code (Claude Opus 5.5) did the following:

  • merged the tree with main;
  • wrote the --pipelines chain fix and its test;
  • ran the unit tests;
  • read the runs' logs and reports;
  • drafted this comment.

I ran the precompile and the title, and checked the comment before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7175387959 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7175387959). Originally posted by [justrhoto](https://github.com/justrhoto) on 2026-11-25T21:40:18Z. --- **RTX 4070 Ti SUPER 16 GB: #2057 with the fixes from this thread, merged with `main` at `c56e744` (70 commits behind `main` now). The compute pack, chain pipelines included, now loads from kept blobs, so compute no longer stalls. What remains: graphics pipelines built cold leave draws skipped (58–78 % in the first runs: a grey world with only the 2D overlay drawn; 24 % by the third), and the device is removed at 328–373 s in every run.** **Tree:** [`justrhoto/xcl@pr2057-tree-main2`](https://github.com/justrhoto/xcl/tree/pr2057-tree-main2): - `9f71772`: #2057 with #2270, #1798, #751, the DXC fallback for internal shaders and the `texture_upload` test fix; - `f8526ed`: merged with `main` `c56e744` (103 commits). Conflicts were resolved in `vram.rs`, `sparse.rs`, `title_textures.rs`, `kernelx.rs`, `bind.rs`, `pso_async.rs` and `dstorage.rs`; main's sparse tile quarantine (10e9fb7) was ported onto this tree's `sparse.rs`; - `06053a1`: **Shaders: `--pipelines` makes a split program's chain pipelines.** - Before it, `--precompile --pipelines` made only the plain blob of a split program. The runtime builds that program as a dispatch chain, with each piece and the whole on `dispatch_chain_root_signature`, and looks for `.chain.pso` blobs. - Without this fix, every split program met in the run compiled in the driver: 62–70 per run, 650–985 KB of DXIL each, 11–20 s each, one at a time. Presents stopped for minutes at a time. - New test: `a_split_program_keeps_the_blobs_of_its_pieces_and_whole_as_chain_blobs`. It fails without the fix (1 made instead of 3). - `main` has since landed the same fix as 2228be7, which prebuilds the pieces. The difference in `06053a1` is that it also builds the whole program as a chain pipeline, which the runtime builds lazily on the same root signature. 2228be7 leaves that pipeline to be compiled in the run. Head `06053a1` (https://github.com/justrhoto/xcl/commit/06053a18cba3c6d639da34c48f8680fb95ed5ee2), no uncommitted changes. **Setup** - RTX 4070 Ti SUPER 16 GB, NVIDIA 610.88, 32-lane waves. - Ryzen 5 5600X3D, 64 GB RAM, Windows 11 Home 26200, Rust 1.100.0, release. - The retail title of #505, my own copy. **Tests:** `cargo test --release -p xcl --lib -- --test-threads=4`: 1327 passed, 0 failed, 26 ignored. - SKIPPED: the `no wave64` tests, one `no dxil.dll`, one `0x887A002D`, and f16 refusals. - This was the `xcl` lib only, not `--workspace`. **Precompile:** `xcl shaders <pack> --precompile --only cs --pipelines` with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`, in four processes (`XCL_PRECOMPILE_SLICE=0/4` … `3/4`). - All four finished with 0 refused. - 14 144 `.chain.pso` blobs and 9 922 plain compute blobs are on disk. **Title runs:** `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 XCL_WATCH_HOT=0 XCL_COHERENT_MB=512`. Three runs on `06053a1`, each keeping the graphics blobs of the runs before it: | | run 1 | run 2 | run 3 | |---|---|---|---| | compute pipelines compiled in the run | 2 (727 from kept blobs) | 0 | 0 | | graphics pipelines | 36 cold, 1 from disk | 45 cold, 26 from disk | 47 cold, 69 from disk | | driver time on huge graphics compiles | 216 s | 309 s | 272 s | | longest wait at the huge-compile gate | 85 s | 163 s | 117 s | | draws skipped (pipeline still building, #1798) | 68 998 of 118 908 (58 %) | 113 395 of 146 234 (78 %) | 64 221 of 266 175 (24 %) | | dispatches skipped | 0 | 0 | 0 | | end | `0x887a0006` at 373.3 s, then the title's `int3` at `+0x2474606` | device removed at 355.6 s (first seen as `0x887a0005` on `CreatePlacedResourceX`), then the same `int3`; the process then hung and had to be ended | device removed at 327.9 s (`0x887a0005` on `CreatePlacedResourceX`), then the same `int3` | - **Compute:** fixed by the precompile change. The fps drops now line up with the huge graphics compiles, which run one at a time behind the gate. - **Picture (runs 1–2):** grey 3D, with the 2D overlay (minimap, credits text) drawn. This matches the skipped draws. Each run keeps its graphics blobs: by run 3 the skipped share fell to 24 %. - **Before the removal:** nothing in the log points at a cause. - no `Wait64BitValueX` timeout; - no GPU-wait watchdog line; - no mid-list `Wait64` split. - The only unusual notes are "a command list is submitted while its previous submit is still on the GPU" (12–13 per run), and the "command list reset while its last submit is on the GPU" / allocator put-aside counters. - **The hang:** after the removal in run 2, the log stops 0.15 s after it, and `report.json` was written only when I ended the process. **Next:** a run with `XCL_DRED=1` to name the work in flight at the removal. I'll edit this comment with the result. **Not tested** - `cargo test --workspace` and the integration tests; `scripts/smoke.ps1`. - Graphics pipelines precompiled. - `XCL_HUGE_PSO_CONCURRENCY` above the default. - `XCL_DRED` / `XCL_GPU_PROFILE` on this head. - Without `XCL_UMA_SHADOW`. - AMD. **AI use:** Claude Code (Claude Opus 5.5) did the following: - merged the tree with `main`; - wrote the `--pipelines` chain fix and its test; - ran the unit tests; - read the runs' logs and reports; - drafted this comment. I ran the precompile and the title, and checked the comment before posting.
xpatfussy69x commented 2026-11-26 01:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-26T00:51:32Z.


A run of this merged tree in the retail title (1.0.2.1) on a 12 GB card, since the description says it has not run in the game yet: it stops presenting at ~82 s, earlier than main on the same machine, with local video memory at 21.6 GB on a 12 GB card; the first loading screen flickers.

Tested

  • Exact head 4df1e6e (clean), release. NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only, the suite reports "no heap windows" on this adapter), AMD Ryzen 5 7500F, 32 GB RAM, Windows 11 (26300), Rust 1.100.0.
  • Your switches: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1, plus XCL_NETWORK=0, XCL_FRAME_DUMP=300, A every 4 s from 20 s, scripts/smoke.ps1 -Seconds 300. Compute pipelines not built ahead; driver-blob cache warm from earlier runs of main today.
xcl-smoke v1
commit: 4df1e6e3d40a011501c046148b6aa470437aa2eb
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 300
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 41611 MB

What happened

  • Menus at 30 fps; the first loading screen flickers (seen at the screen; it did not on main 08db802 with default settings on this machine). The frame dumps, one per 300 frames, are too sparse to show it.
  • Presents fall off from ~56 s and stop at ~82 s; none after, to 300 s. The last dumped frame (1520) is black.
  • Local video memory: 19.4 GB at 60 s, 21.6 GB from 80 s (the XCL_UMA_SHADOW window adds 4 095 MB); peak commit 41.6 GB. No out-of-memory message, no device removal.
  • From 106 s: ExecuteIndirect of CS … arguments at … – out of range, not run for three programs (9387facebc35be6d, 4401d482ef24797c, 1ada490879c33c0e; 46 so far at the first line).
  • Still building compute pipelines at the end (#1592 at 296 s, 754 284 B DXIL, no driver blob).

For comparison, main 08db802 on the same machine and route (no switches, 180–240 s): presents to ~150–162 s, then the story-load stall of #846, local video memory up to 13.9–14.8 GB; XCL_PSO_WAIT_MS=50 and title_memory_mb = 10240 do not change that, and Series S mode (XCL_DEVICE_TYPE=lockhart) ends in the title's assert with E_OUTOFMEMORY at 161 s.

Update: the loading-screen flicker is the hot-block looks (7c18bc4); XCL_WATCH_HOT=0 removes it. Same head and machine, 70 s runs, A from 20 s, every 3rd frame dumped (XCL_FRAME_DUMP=3). A frame counts as a flicker when it differs from both neighbours while they agree; on the loading screens these are all black frames, often 24 frames apart (914, 938, 962, 986, 1010 in the run with every switch). One fade frame the title draws itself, present in every run including main, is left out.

tree, switches black frames (of ~500 dumped)
main 08db802, none 0
this head, none 4
this head, XCL_DIRECT_DXIL=1 only 0
this head, XCL_HEAP_WINDOWS=1 only 0
this head, XCL_COHERENT_HEAPS=sparse:16 only 5
this head, XCL_LOOK_SKIP=1 only 5
this head, XCL_UMA_SHADOW=1 only 8
this head, all five 34
this head, none, XCL_WATCH_HOT=0 0
this head, all five, XCL_WATCH_HOT=0 0

That fits the trade-off the description names: with hot looks a write to a block idle for 1.5 s (XCL_WATCH_HOT_MS) is found by the walking thread ~10 ms later, so a submit can go before the loading screen's CPU-written data; with XCL_UMA_SHADOW the GPU reads only that uploaded copy. One run each, so the counts are rough.

Separately: the all-switches run with XCL_WATCH_HOT=0 lost the device at 56 s (0x887a0006, then the title's assert at +0x2474606). One run; the all-switches runs with hot looks on (70 s and 300 s) did not, so I do not attribute it to the switch.

Not tested

  • Which switch causes the early stop (one 300 s run, all switches together); this tree with pipelines built ahead; the older base 7f7e768.

AI use

  • Claude Code (Claude Opus 5.5) built the tree, ran it on the machine above, read the log and frames and wrote this report; the flicker was seen by the person at the screen.
<!-- greyfinch-sync:ivall/xcl:comment:7179183956 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7179183956). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-26T00:51:32Z. --- A run of this merged tree in the retail title (1.0.2.1) on a 12 GB card, since the description says it has not run in the game yet: **it stops presenting at ~82 s, earlier than `main` on the same machine, with local video memory at 21.6 GB on a 12 GB card; the first loading screen flickers.** **Tested** - Exact head `4df1e6e` (clean), release. NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only, the suite reports "no heap windows" on this adapter), AMD Ryzen 5 7500F, 32 GB RAM, Windows 11 (26300), Rust 1.100.0. - Your switches: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1`, plus `XCL_NETWORK=0`, `XCL_FRAME_DUMP=300`, A every 4 s from 20 s, `scripts/smoke.ps1 -Seconds 300`. Compute pipelines not built ahead; driver-blob cache warm from earlier runs of `main` today. ``` xcl-smoke v1 commit: 4df1e6e3d40a011501c046148b6aa470437aa2eb gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 300 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 41611 MB ``` **What happened** - Menus at 30 fps; the first loading screen **flickers** (seen at the screen; it did not on `main` `08db802` with default settings on this machine). The frame dumps, one per 300 frames, are too sparse to show it. - Presents fall off from ~56 s and stop at ~82 s; none after, to 300 s. The last dumped frame (1520) is black. - Local video memory: 19.4 GB at 60 s, 21.6 GB from 80 s (the `XCL_UMA_SHADOW` window adds 4 095 MB); peak commit 41.6 GB. No out-of-memory message, no device removal. - From 106 s: `ExecuteIndirect of CS … arguments at … – out of range, not run` for three programs (`9387facebc35be6d`, `4401d482ef24797c`, `1ada490879c33c0e`; 46 so far at the first line). - Still building compute pipelines at the end (#1592 at 296 s, 754 284 B DXIL, no driver blob). **For comparison, `main` `08db802` on the same machine and route** (no switches, 180–240 s): presents to ~150–162 s, then the story-load stall of #846, local video memory up to 13.9–14.8 GB; `XCL_PSO_WAIT_MS=50` and `title_memory_mb = 10240` do not change that, and Series S mode (`XCL_DEVICE_TYPE=lockhart`) ends in the title's assert with `E_OUTOFMEMORY` at 161 s. **Update: the loading-screen flicker is the hot-block looks (`7c18bc4`); `XCL_WATCH_HOT=0` removes it.** Same head and machine, 70 s runs, A from 20 s, every 3rd frame dumped (`XCL_FRAME_DUMP=3`). A frame counts as a flicker when it differs from both neighbours while they agree; on the loading screens these are all black frames, often 24 frames apart (914, 938, 962, 986, 1010 in the run with every switch). One fade frame the title draws itself, present in every run including `main`, is left out. | tree, switches | black frames (of ~500 dumped) | |---|---| | `main` `08db802`, none | 0 | | this head, none | 4 | | this head, `XCL_DIRECT_DXIL=1` only | 0 | | this head, `XCL_HEAP_WINDOWS=1` only | 0 | | this head, `XCL_COHERENT_HEAPS=sparse:16` only | 5 | | this head, `XCL_LOOK_SKIP=1` only | 5 | | this head, `XCL_UMA_SHADOW=1` only | 8 | | this head, all five | 34 | | this head, none, `XCL_WATCH_HOT=0` | **0** | | this head, all five, `XCL_WATCH_HOT=0` | **0** | That fits the trade-off the description names: with hot looks a write to a block idle for 1.5 s (`XCL_WATCH_HOT_MS`) is found by the walking thread ~10 ms later, so a submit can go before the loading screen's CPU-written data; with `XCL_UMA_SHADOW` the GPU reads only that uploaded copy. One run each, so the counts are rough. Separately: the all-switches run with `XCL_WATCH_HOT=0` lost the device at 56 s (`0x887a0006`, then the title's assert at `+0x2474606`). One run; the all-switches runs with hot looks on (70 s and 300 s) did not, so I do not attribute it to the switch. **Not tested** - Which switch causes the early stop (one 300 s run, all switches together); this tree with pipelines built ahead; the older base `7f7e768`. **AI use** - Claude Code (Claude Opus 5.5) built the tree, ran it on the machine above, read the log and frames and wrote this report; the flicker was seen by the person at the screen.
DavidM1911 commented 2026-11-26 01:05:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:59:35Z.


Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7179317204 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7179317204). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T00:59:35Z. --- Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
PACDevX commented 2026-11-26 19:13:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by PACDevX on 2026-11-26T19:13:35Z.


I tested offline shader precompilation at eae015021 on an RTX 3090 (driver 621.24, Windows Sandbox vGPU) with 16 descriptor-heap windows and split wave64.

  • With the stock binary, the CLI enumerated 29 ACCC/FSPX compute containers and reported 0 compiled, 0 PSOs, and 0 errors. The bulk loop filters those containers at xbox::parse; the runtime has a separate FSPX compute path.
  • I routed valid FSPX through the existing offline compute path in shaders.rs. The same 29 inputs then produced 29 translations and 29 D3D12 PSOs, with 0 translation errors, driver refusals, or pending duplicates. I verified all 29 translated-cache records in the 16-window namespace and all 29 new driver blobs.
  • The patch has CPU coverage for a valid synthetic FSPX container and a malformed one. Commit on my fork

AI assistance: OpenAI Codex for the patch, verification, and report.

<!-- greyfinch-sync:ivall/xcl:comment:7201335351 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7201335351). Originally posted by [PACDevX](https://github.com/PACDevX) on 2026-11-26T19:13:35Z. --- I tested offline shader precompilation at `eae015021` on an RTX 3090 (driver 621.24, Windows Sandbox vGPU) with 16 descriptor-heap windows and split wave64. - With the stock binary, the CLI enumerated 29 ACCC/FSPX compute containers and reported 0 compiled, 0 PSOs, and 0 errors. The bulk loop filters those containers at `xbox::parse`; the runtime has a separate FSPX compute path. - I routed valid FSPX through the existing offline compute path in `shaders.rs`. The same 29 inputs then produced 29 translations and 29 D3D12 PSOs, with 0 translation errors, driver refusals, or pending duplicates. I verified all 29 translated-cache records in the 16-window namespace and all 29 new driver blobs. - The patch has CPU coverage for a valid synthetic FSPX container and a malformed one. [Commit on my fork](https://github.com/PACDevX/xcl/commit/7ab11cdea75902c1d580fbe967a2ff7f6154f96b) AI assistance: OpenAI Codex for the patch, verification, and report.
Alm0stSurely commented 2026-11-27 05:47:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Alm0stSurely on 2026-11-27T05:47:55Z.


Follow-up to the gray tutorial report on RTX 5080, Proton Experimental, Series X profile, on our #2057-derived integration with the local #2306 port. We compared the recording with an opt-in trace at command recording time.

In the earlier run, the movement hint was visible from 1050.000 to 1119.250 s on a uniform background. In the new run, while the loading artwork gave way to a uniform screen, XCL recorded three direct draws (3 vertices, 1 instance) using PS_CompositeNMB (4adcdc125462510a) at 263.708, 266.065 and 270.793 s. At s9 + 0x4c0, all eight CPU-visible descriptor words matched the source slot in the bound shared heap on each observation. The descriptor reported 2560 × 1440, GFX format 71 (RGBA16F). A probe restricted to R11G11B10_FLOAT therefore misses this input on this loading sequence. This identifies a descriptor at recording time. Native resource identity, GPU contents and the descriptor used later at the tutorial remain unknown.

The capture ends before the tutorial in this run. The external monitor stopped it after a GPU telemetry query timed out. No visible 3D world or in-world FPS measurement. Assisted by Codex (GPT-6.2 Astra).

Update from a controlled diagnostic run, same Series X profile and private Prologue save. The two cached Composite pixel shaders were assembled with their existing scene sample RGB routed to target 0. A small red/cyan rectangle at fixed SV_Position coordinates served as a visibility check. Alpha and fragment coverage were preserved. The other 3,227 cache files matched the seed.

The movement hint was visible on black from video PTS 467.125 to 509.125 s (337 captured frames at 8 Hz). Nine sampled direct CompositeNMB draws fell inside this interval. Each draw-time lookup reported a native RGBA16F view, 2560 × 1440, mip 0, plane 0. The driver cache acquired the new CompositeNMB pixel-shader hash paired with the expected vertex shader. We found no optical marker in 4,082 frames. During the hint, the rest of the game image was black in a 320 × 180 grayscale check. This run does not establish what the source texture contains or whether the target of that draw reached Present. The other Composite variant was not observed in the final native cache. The VRAM guard ended the run with 3,719 MiB free. No controllable 3D scene was visible. Assisted by Codex (GPT-6.2 Astra).

RTX 5080 / Proton Experimental, Series X profile, same diagnostic shader and starting cache. During the loading-to-black transition, four sampled direct CompositeNMB draws used a PSO with one R10G10B10A2_UNORM output, RGBA write mask 0xf, blending and depth disabled, and a 2560×1440 viewport. All four scissors included the marker coordinates. At 30 sampled PresentX copies, the source alternated between two 3840×2160 R8G8B8A8_UNORM resources. We could not establish the identity of the bound render-target view, so its pixels and the intervening conversion are still unverified. No marker in 2,810 video frames. This run ended before the movement prompt. Assisted by Codex (GPT-6.2 Astra).

On the RTX 5080 under Proton Experimental (Series X profile, #2057 integration with the local #2306 port), we traced the native UAV creation call for the same live D3D12 resource later read at s9 + 0x4c0. With the original Composite shaders restored, XCL passed this resource to CreateUnorderedAccessView at +13.648 s. The explicit view was non-null, Texture2D, R16G16B16A16_FLOAT, mip 0, plane 0. Nine textures matched the size and format. A per-object tag matched this one at 45 sampled draw-recording events (+132.106 to +316.143 s), including 36 for PS_CompositeNMB. Among 2,029 traced calls on the console path, 321 passed a null resource. None of those was the matched call.

This narrows the next check to descriptor copies or replacement and an actual shader store through that view. Its use at dispatch and the texture contents are still unknown. The last identifiable screen was the “Get Cash” loading artwork, followed by a uniform background. The VRAM guard ended this run before the movement prompt. Assisted by Codex (GPT-6.2 Astra).

We sampled the seven output descriptors of CS_GenerateMaterialMasks (520a7d5cb893a9f7) on the same RTX 5080 / Proton Experimental integration. Across 65 sampled direct dispatches (320 × 180 × 1 groups, +159.972 to +298.384 s), all eight CPU-visible words of each descriptor matched its slot in the bound shared heap. None selected the original UAV slot for the resource read by Composite. The only output reporting GFX format 71, at s5 + 0xe0, resolved to a different RGBA16F resource. The other six outputs had no authenticated resource identity. Copies or replacement views remain possible. These samples record command-list state; GPU store execution and scene pixels remain unverified.

The last identifiable image was the “Get Cash” loading artwork, followed by gray. The VRAM guard stopped the run before the movement hint. Assisted by Codex (GPT-6.2 Astra).

We verified the original UAV publication in a follow-up on the same RTX 5080 and Proton Experimental setup. A per-resource tag linked the CPU handle passed at view creation to the source of a copy into shared slot 23753. The same resource was subsequently identified at 29 Composite checkpoints. Through the last checkpoint (+212.811 s), the trace attributed one publication and zero additional console or native descriptor copies to that tag. A separate two-texture control on the same GPU confirmed that the trace follows both native copy methods and drops a stale destination on overwrite. Across 47 sampled mask dispatches, none of the seven direct output slots selected 23753. Six output identities remain unknown. Actual GPU writes and scene pixels remain unverified. The last artwork gave way to a uniform light background. No movement prompt appeared before the VRAM guard stopped this run. Assisted by Codex (GPT-6.2 Astra).

<!-- greyfinch-sync:ivall/xcl:comment:7210954907 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7210954907). Originally posted by [Alm0stSurely](https://github.com/Alm0stSurely) on 2026-11-27T05:47:55Z. --- Follow-up to the gray tutorial report on RTX 5080, Proton Experimental, Series X profile, on our #2057-derived integration with the local #2306 port. We compared the recording with an opt-in trace at command recording time. In the earlier run, the movement hint was visible from 1050.000 to 1119.250 s on a uniform background. In the new run, while the loading artwork gave way to a uniform screen, XCL recorded three direct draws (3 vertices, 1 instance) using `PS_CompositeNMB` (`4adcdc125462510a`) at 263.708, 266.065 and 270.793 s. At `s9 + 0x4c0`, all eight CPU-visible descriptor words matched the source slot in the bound shared heap on each observation. The descriptor reported **2560 × 1440, GFX format 71 (RGBA16F)**. A probe restricted to R11G11B10_FLOAT therefore misses this input on this loading sequence. This identifies a descriptor at recording time. Native resource identity, GPU contents and the descriptor used later at the tutorial remain unknown. The capture ends before the tutorial in this run. The external monitor stopped it after a GPU telemetry query timed out. No visible 3D world or in-world FPS measurement. Assisted by Codex (GPT-6.2 Astra). Update from a controlled diagnostic run, same Series X profile and private Prologue save. The two cached Composite pixel shaders were assembled with their existing scene sample RGB routed to target 0. A small red/cyan rectangle at fixed SV_Position coordinates served as a visibility check. Alpha and fragment coverage were preserved. The other 3,227 cache files matched the seed. The movement hint was visible on black from video PTS 467.125 to 509.125 s (337 captured frames at 8 Hz). Nine sampled direct CompositeNMB draws fell inside this interval. Each draw-time lookup reported a native RGBA16F view, 2560 × 1440, mip 0, plane 0. The driver cache acquired the new CompositeNMB pixel-shader hash paired with the expected vertex shader. We found no optical marker in 4,082 frames. During the hint, the rest of the game image was black in a 320 × 180 grayscale check. This run does not establish what the source texture contains or whether the target of that draw reached Present. The other Composite variant was not observed in the final native cache. The VRAM guard ended the run with 3,719 MiB free. No controllable 3D scene was visible. Assisted by Codex (GPT-6.2 Astra). RTX 5080 / Proton Experimental, Series X profile, same diagnostic shader and starting cache. During the loading-to-black transition, four sampled direct CompositeNMB draws used a PSO with one R10G10B10A2_UNORM output, RGBA write mask 0xf, blending and depth disabled, and a 2560×1440 viewport. All four scissors included the marker coordinates. At 30 sampled PresentX copies, the source alternated between two 3840×2160 R8G8B8A8_UNORM resources. We could not establish the identity of the bound render-target view, so its pixels and the intervening conversion are still unverified. No marker in 2,810 video frames. This run ended before the movement prompt. Assisted by Codex (GPT-6.2 Astra). On the RTX 5080 under Proton Experimental (Series X profile, #2057 integration with the local #2306 port), we traced the native UAV creation call for the same live D3D12 resource later read at `s9 + 0x4c0`. With the original Composite shaders restored, XCL passed this resource to `CreateUnorderedAccessView` at +13.648 s. The explicit view was non-null, Texture2D, R16G16B16A16_FLOAT, mip 0, plane 0. Nine textures matched the size and format. A per-object tag matched this one at 45 sampled draw-recording events (+132.106 to +316.143 s), including 36 for PS_CompositeNMB. Among 2,029 traced calls on the console path, 321 passed a null resource. None of those was the matched call. This narrows the next check to descriptor copies or replacement and an actual shader store through that view. Its use at dispatch and the texture contents are still unknown. The last identifiable screen was the “Get Cash” loading artwork, followed by a uniform background. The VRAM guard ended this run before the movement prompt. Assisted by Codex (GPT-6.2 Astra). We sampled the seven output descriptors of `CS_GenerateMaterialMasks` (`520a7d5cb893a9f7`) on the same RTX 5080 / Proton Experimental integration. Across 65 sampled direct dispatches (320 × 180 × 1 groups, +159.972 to +298.384 s), all eight CPU-visible words of each descriptor matched its slot in the bound shared heap. None selected the original UAV slot for the resource read by Composite. The only output reporting GFX format 71, at `s5 + 0xe0`, resolved to a different RGBA16F resource. The other six outputs had no authenticated resource identity. Copies or replacement views remain possible. These samples record command-list state; GPU store execution and scene pixels remain unverified. The last identifiable image was the “Get Cash” loading artwork, followed by gray. The VRAM guard stopped the run before the movement hint. Assisted by Codex (GPT-6.2 Astra). We verified the original UAV publication in a follow-up on the same RTX 5080 and Proton Experimental setup. A per-resource tag linked the CPU handle passed at view creation to the source of a copy into shared slot 23753. The same resource was subsequently identified at 29 Composite checkpoints. Through the last checkpoint (+212.811 s), the trace attributed one publication and zero additional console or native descriptor copies to that tag. A separate two-texture control on the same GPU confirmed that the trace follows both native copy methods and drops a stale destination on overwrite. Across 47 sampled mask dispatches, none of the seven direct output slots selected 23753. Six output identities remain unknown. Actual GPU writes and scene pixels remain unverified. The last artwork gave way to a uniform light background. No movement prompt appeared before the VRAM guard stopped this run. Assisted by Codex (GPT-6.2 Astra).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2057:upstream-pr/2057'
git switch 'upstream-pr/2057'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2057'
git switch 'upstream-pr/2057'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2057'
git switch 'upstream-pr/2057'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2057'
git switch 'main'
git merge --squash 'upstream-pr/2057'
git switch 'main'
git merge --ff-only 'upstream-pr/2057'
git switch 'main'
git merge 'upstream-pr/2057'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
xcl-dev/xcl!2047
No description provided.