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

Open
github-bot wants to merge 87 commits from github-bot/gh-2057 into main AGit
Owner

@⁠theaustinayers on GitHub · 2026-11-25 02:16 UTC · original
theaustinayers:integration/nvidia-world → main · +9547 −1149 · 48 files · 87 commits · draft

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

**@⁠theaustinayers** on GitHub · 2026-11-25 02:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057) `theaustinayers:integration/nvidia-world` → `main` · +9547 −1149 · 48 files · 87 commits · draft 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)
Helpers for the copy path that changes no behaviour yet:

- sparse.rs: extract new_state from the inline closure in init, so
  shadow_window (next commit) can call it when no sparse windows exist
- uma.rs: Uma::shadowed flag and is_gpu_copy(p): a sparse window or a
  committed one the GPU has a copy of. Never set to true in this commit.
- list_x.rs: note_copy_into tracks PC copies into console buffers whose
  memory the GPU has a copy of; note_write uses is_gpu_copy
- real.rs: uma_shadowed helper, res_map and dev_create_placed_resource_x
  use is_gpu_copy (= is_sparse while shadowed is false)

Based on Ahmet-Dedeler's c70bf8a on mac-on-main-wip.

Co-authored-by: Ahmet Dedeler <[email protected]>
Assisted-by: Claude Code (Claude Opus 4.6 ported it; Claude Opus 5.5 reviewed it)
D3DMetal 3.0 applies SetPredication for draws, dispatches and
ExecuteIndirect but not for copies: a predicated CopyBufferRegion runs
unconditionally. The UMA shadow path (next commit) makes UMA available
on this host, so the predication test would run and fail.

A one-copy probe detects whether a predicated copy is skipped (Windows,
any real D3D12) or run (D3DMetal). When run, the test skips with
"host ignores SetPredication for copies" instead of failing.

Based on us3r40456's bisect and measurement in ivall/xcl#258.

Co-authored-by: Ahmet Dedeler <[email protected]>
Assisted-by: Claude Code (Claude Opus 4.6 ported it; Claude Opus 5.5 reviewed it)
D3DMetal answers E_NOTIMPL for OpenExistingHeapFromAddress. A committed
UMA window is then a buffers-only heap of video memory (Uma::shadowed),
kept in step like a sparse window's tiles (sparse::shadow_window): CPU
writes go up before each ExecuteCommandLists (the window's write watch),
GPU writes come back on Map and after the lists' memory writes, and PC
copies into console buffers there are read back after the submit
(list_x::note_copy_into). XCL_UMA_SHADOW=1 forces the path on a GPU
that has such heaps, =0 never.

On main 930e8b4: the start-up check that the GPU sees CPU writes
(check_uma_import) is not run for a shadowed window (it is a copy by
design); sparse::new_state carries the new parked list. The runner's
run_in_region falls back to upload/readback copies per window on
E_NOTIMPL. The sparse test's shadowed readback and constant-rewrite
stress validate the data path.

Part of #258.

Based on Ahmet-Dedeler's c70bf8a on mac-on-main-wip.

Co-authored-by: Ahmet Dedeler <[email protected]>
Assisted-by: Claude Code (Claude Opus 4.6 ported it; Claude Opus 5.5 reviewed and fixed the import-check assertion)
The disk cache of compute driver blobs (#634) wrote a blob only when the
in-memory store had taken it first: keep_compute_blob stored it there within
COMPUTE_BLOBS_MAX (512 MB) and the caller then looked it up for the file. Once
the store was full the lookup found nothing and no later build was written.
Those are the builds that matter most: a retail title's world needs compute
pipelines of 20 to 150 s each in the NVIDIA driver, made after hundreds of
smaller ones, and it built them again in every run.

keep_compute_blob now returns the blob it fetched; it is kept in memory only
while there is room (remember_compute_blob), and goes to the disk either way.

Assisted-by: Claude Code (Claude Fable 5.2)
D3D12.X: eliminate multi-heap UpdateTileMappings and per-texture Signal stalls in vram::Pages
D3D12.X: an ExecuteIndirect reads the arguments written before it
D3D12.X: promote R9G9B9E5_SHAREDEXP render/UAV targets to R11G11B10_FLOAT
`readback_after_execute` made the sparse queue GPU-wait for the title's
queue and then waited on the CPU for the copy, on the thread that was
submitting. The title's queues can wait for work that same thread submits
next (four compute queues waiting for a Write64 on q1 whose list is
recorded but not submitted yet). So the copy waited its 5 s on every such
submission, and the uploads queued behind it on the sparse queue waited
too (`before_execute` waiting for ring room). In thread dumps of a retail
title on an RTX 5090, the submitting thread is in `readback_ranges` ->
`wait_for` while another title thread waits for the sparse state's lock in
`commit_range`. lucsoft found the same cycle on RDNA3 / Linux (#505).

The copies now run on a queue of their own, which GPU-waits for the
title's queue, and the submitting thread returns. Readback buffers are
sized to the copy (64 KiB and up) and reused. Without a readback queue (it
could not be made), the old path runs.

The data lands in the title's memory once the copy is done, before the
title can see the work it follows is done:
- on the next submit, and from a thread that looks every 0.5 ms;
- before Map's readback and in the CPU memory waits of Wait64BitValueX
  (`settle_readbacks`), which wait for the copy once the title's lists it
  follows are done;
- in the title's fence observations: `GetCompletedValue` settles the copies
  first. `SetEventOnCompletion` hands the fence an event of XCL's own, and a
  thread-pool wait on it settles them, then sets the title's event.

The new test `a_copy_back_does_not_wait_for_the_title_queue` waits 5.0 s
on the old path and under 1 s with this change. Without the fence hooks,
the e2e test title read 0 for its Write32BitValueBottomOfPipeX after its
fence wait. With them, both e2e tests pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A retail title's intro cutscene ran at 0.3-0.5 fps with the GPU at
98-100 %, and nothing in XCL measured GPU time per draw or dispatch: the
logs could not say which console programs the GPU time went to.

With XCL_GPU_PROFILE=1 each translated draw, dispatch and ExecuteIndirect
(and an ExecuteIndirect with a PC pipeline) gets a timestamp query on its
PC list before and after it, resolved right behind it into a readback
ring of 2^17 pairs. Nothing on the CPU waits: a reporter thread takes
the written pairs every 100 ms, and every 2 s logs the 15 console
programs with the most GPU time (every 20 s also since the start):
hash, kind, calls, total and longest ms, group counts of the longest
call, and for compute the thread group size, wave64 / split form, code
and DXIL size. Ticks are converted with a title queue's
GetTimestampFrequency. Off by default; with it off each op pays one
LazyLock read.

Overlapping queues are each charged in full, so the sum can exceed wall
time; bundles get no stamps; a recording run again without a Reset is
counted once. The resolve waits on the GPU for the op to finish, so with
the profile on a queue runs its ops one after the other. The unit tests
cover the pair states and the ranking.

Assisted-by: omp (Claude Opus 5.5)
When a bridged Wait64BitValueX times out, the watchdog logs the producer
queue's state, but not the queue.Waits XCL adds on its own: texture page
mappings (vram::before_execute), sparse uploads and tile mappings, and
sparse readbacks. They are not in SYNC_GRAPH, so a producer queue that
stands behind one of them looked like a queue with "no tracked wait".

On an RTX 3080 10 GB (driver 621.01) with the retail title, every timeout
came with the producer queue (and another title queue) waiting for the
texture page-mapping fence, about 25 mappings behind after 7.7 s; skipping
that one wait in a local experiment took the CPU releases from 4 to 0-1
per run.

note_internal_wait records each such wait per queue, and each watchdog
round logs the unmet ones next to the pending title fences. The watchdog
timeout (5000 ms) can now be changed with XCL_GPU_WAIT_TIMEOUT_MS, like
XCL_WAIT_TIMEOUT_MS for the CPU waits. No behaviour change otherwise.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015JSG96tVb4ZSAZ5WH4v95v
The newer factory's CreateQueue (slot 10) takes a 0x20-byte desc whose
u64 @0x18 is the queue's DSTORAGE_QUEUE_OPTIONS; a new retail game sets
bit 0, AutoSubmitDisabled. XCL ignored it, and a half-full queue still
submitted by itself. The title writes a request's destination page list
after EnqueueRequest and before its own Submit, so a request that the
half-full submit sent to the worker could run before its list was
written, with the pages of the slot's previous request.

Such a queue now runs its requests only at Submit, and an enqueue into
it at capacity waits until Submit, a cancel or Close takes entries, as
the console's queue stalls one. Queues made without the option, or
through the first CreateQueue, submit when half full as before. Other
option bits are logged once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`would_signal_close_cycle` took every armed wait on the target cell with
`val <= sig_val` as waiting on the new signal. A wait that an earlier
signal of the cell already satisfies (submitted on the GPU or released on
the CPU) does not depend on it. With pipelined frames – queue A waits on
cell X >= N, queue B then signals X = N + 1 after waiting on something A
signals later – every such frame was reported as a cycle, signalled on
the CPU and its waiters released before the GPU work they wait for ran.

A retail title on an RTX 4070 Laptop broke 14-32 such "cycles" in each
run's world load (traced: queue 1 waiting on 0x...fde0 >= 0x6db, covered
by queue 2's earlier 0x6db signal, counted against queue 2's 0x6dc
signal). With the fix: no cycle break in two runs of the same load.

The waiters taken now are those no earlier signal covers
(`val > max(submitted_max, cpu_signaled_max)`); a test reproduces the
traced case and keeps the true cycle detected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A retail title keeps its destination page lists in slots of its own
table and writes a slot's pages after EnqueueRequest. At enqueue such a
slot can still name the pages of the slot's previous request, and the
snapshot taken then is what execute() wrote to (#289 rereads only the
entries that are 0). Over 16 000 requests a run were written into pages
the title had since reused: its objects got garbage pointers and it
crashed about 20 s into world loading; when the old pages were freed,
the request failed with E_ACCESS_VIOLATION.

The console reads the list when it runs the request. execute() now
reads it again (through read_own, as the snapshot) and takes it when it
differs and every page in it is allocated (kernelx::physical_pages_live);
otherwise the snapshot stays, so arrays on the stack that were
overwritten since still work.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local test only (the upstream PR is a draft, #2052). On this title the change left a real
multi-queue wait cycle: at 111 s of the world load all five queues waited on each other for
values one past their completed ones, the watchdog released 102 GPU waits and the title froze.
The cycle breaks logged before the change had been the false positives it meant to avoid; the
true ones it no longer breaks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When a draw's arguments find no room in unified memory (the arena's pool is used up and the
window has no free run), log once (and every power of two) the window's free bytes, largest
free run, bytes in use, pool blocks left and the blocks the pending allocators hold. Log the
title's GPU heaps that do not fit in the coherent window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A title's GPU heaps (committed with a PAGE_GRAPHICS_* protection) go to
the coherent window, process memory the GPU reaches over the bus. On an
RTX 5090 a shader's dependent reads there are ~30x slower than from video
memory (no L2 hits, about 2.4 us each). Its store instructions whose lanes
leave gaps (per-lane dwordx2/x4, 8- and 16-byte formats) run at ~0.1 GB/s,
against ~50 GB/s for lane-contiguous ones and >1 TB/s in video memory. The
retail title of #505 keeps 4.4 GB of heaps there (1172, 2199, 563 and
596 MB), and its world passes take 0.4-2.7 s each. Keeping the heaps out
of the window was reproduced as removing the stall on an RTX 5080, an
RTX 3080 and RDNA3 / Linux (#505), but there the shaders read zeros.

With `XCL_COHERENT_HEAPS=sparse` every such heap, with `sparse:N` those of
at least N MB, goes to the sparse windows instead: video memory, with the
CPU's writes uploaded before each submission, like the title's other
graphics memory. A heap that goes there is not counted in the coherent
window's size for the next run (`note_coherent_need`). Off by default: it
costs a second copy in video memory and the write-watch scan of it, and it
needs the asynchronous copies back of the commit below. Without them, the
copies back of the title's lists' writes into these heaps wait for the
submitting thread.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The watchdog's first three time-outs log, for every GPU wait not yet met, which queue waits for
which value of which cell or title fence, and which submitted signal (queue and its place among
that queue's calls) will meet it; a wait for a value nothing has signalled yet says so. Used to
find the loop all five queues of a title were in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every 1024 ExecuteCommandLists, the log says how long one took on average: the wait for the
refresh lock, the refresh itself (look for CPU writes, state lock wait, chunk scan, upload and
the rest, from the existing counters), the PC ExecuteCommandLists and everything XCL does after
it (signals, copies back), and the submits a second. A few relaxed adds a submit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A retail title keeps 65,000 textures in step with its memory. Every submit went through all of
them for the ones whose memory changed, and every change of a page mapping in a GPU view
re-checked the source of each (with a VirtualQuery): 2-9 ms a submit. Now the textures are
indexed by the 1 MiB pieces of their source and the waiting ones are kept in a set, so a submit
looks at those the dirty pages touch; a mapping change re-checks only the textures in the changed
ranges (kernelx keeps the ranges of the last 4,096 changes).

The looks for CPU writes join hot blocks up to 64 MiB apart (XCL_WATCH_GAP_MB), keep a block hot for
1.5 s (XCL_WATCH_HOT_MS), and the walk thread makes fewer, larger calls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A submit's scan (64-byte chunk hashes of 4 KiB pages) took up to 1.6 ms and the copies into the
ring up to 2 ms of one thread in a heavy scene. From 256 pages on the scan is cut into pieces of
64 pages, from 512 KiB on the copies into about 16 pieces, and the submitting thread shares them
with XCL_COPY_THREADS (4) worker threads that wait between jobs. The results keep the address
order, and the thread does not go on before every piece is done.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
title_textures::refresh runs on the title's thread before each of its
submits and uploaded the CPU's writes to its textures on XCL's own queue,
then waited on the CPU until the GPU had run them (texture::upload_batch).
While a retail title streams its world with video memory past the card,
those waits are long: thread dumps show its submit thread blocked in
fence::wait under refresh, presents drop to a few per 20 s, and the title's
watchdog ends it on the loading screen.

When the submitting queue is a DIRECT queue on the texture's device, the
upload list now runs on that queue, ahead of the title's lists, so the GPU
orders the copies before the work that samples them, with no cross-queue
wait. A fence on that queue retires each batch's allocator, list and staging
buffers at later submits; over 512 MB in flight the oldest batches are waited
for, and a batch whose wait fails or times out stays in flight. Compute and
copy queues, and a queue of another device, keep the upload queue and its
wait. texture::submit_batch is upload_batch without the wait.
A title's loads write gigabytes of its memory with XCL's own copies (DirectStorage), and the looks
for CPU writes found those pages through the write watch: each written 2 MiB block stayed hot for
1.5 s and every look walked it, which is most of what a look costs while a title loads. Now the
DirectStorage writers tell the next look their ranges (`note_known_write`) and clear the write
watch for the pages inside them; the pages at the ends stay watched. The next submit takes the
ranges as dirty pages, also when it skips its look. `XCL_DS_KNOWN_WRITES=0`: as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From a review of the local changes:
- The fence cells the title reads (`fence_x`) are stored after the copies back a value covers have
  landed (a value the title waits for promises the memory behind it), read and stored one refresh
  at a time.
- A copy back (and a stored immediate) lands 64-byte chunk by chunk, never over a chunk the CPU
  wrote since it was last sent: those bytes are newer and go up with the next look.
- `settle_readbacks_within` waits for the state's lock up to a bound; GetCompletedValue no longer
  spins 2 ms per copy back.
- Memory the title commits, and the memory of a texture it places, is looked at for a while
  (`mark_hot`): a write made right after the commit was seen up to 20 ms late.
- A copy back that finds no readback buffer still signals its queue's fence; at most 32 finished
  readback buffers are kept; `pagelog::counts` takes no blocking lock in the exception filter.

Loading:
- The watched ranges are made of 16 MiB blocks of the textures' sources, not from all textures (tens
  of thousands of them, each submit while a title loads).
- A DirectStorage destination in a sparse window is written without a VirtualQuery (a query there
  walks the whole committed heap: 3-5 ms a request, with a 2 GB heap). A part the title gave back
  fails the write (`write_title`).

The unit test of #1993 waits for the per-queue fences now. `submit_cost` also counts ranges,
re-checks and texture uploads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The counts come from memory the GPU wrote. Where that is not what the title meant (a wait that was
released early, memory another resource used before) they can be anything, and a dispatch of
billions of groups holds the GPU for seconds or until Windows resets the driver: in a retail
title's world the culling passes (wave64 split in halves, RTX 5090) ran for 1.4 to 30 s in 4 of 8
runs. Measured with this: six ExecuteIndirects within 1 ms with counts like 0xff000000 x 0xe3 x
0xff7f0000, not run, and no program ran longer than 0.5 s in that run.

A program of XCL's own reads the counts first (through the memory window the shaders write),
hands them to the ExecuteIndirect in a buffer of XCL's own, 0 groups where they are out of range,
and records them for the CPU: the log names the program, the counts and the address of the first
64 out of range, and the GPU profile shows the counts of each ExecuteIndirect. It also counts how
often the title's buffer showed other counts than the window. XCL_INDIRECT_GUARD=0 turns it off,
XCL_INDIRECT_MAX_GROUPS is the limit (4 Mi groups).

Test: an_execute_indirect_with_garbage_counts_runs_no_groups (GPU).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A buffer a title places in a sparse window is a reserved resource over the window's tiles, mapped
once. A tile decommitted and flushed was unmapped from the window only; memory committed there
again got another tile in the window while the buffer kept the old one: shaders write the window,
an ExecuteIndirect or a copy reads the buffer. The tile is kept mapped in the window while a buffer
uses it (its video memory was kept already) and comes back with the next commit.

A buffer's release looks its tiles up by their address instead of searching all mapped tiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
XCL_SYNC_TRACE=1 keeps the last 1500 sync events (each list's waits and writes, what became of
them, submits) and logs them at the first three cycle breaks and before the watchdog's first two
releases. The wait edges are logged before the release too: after it they are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On the newer console command-list layout (real::QUEUE_SHIFTED), titles reset pooled lists through slot #139 Reset(allocator, initial_pso, flags), which real.rs routes to list_x::reset_x.

title_list's wrapper vtable only overrode slots 0, 1, 2, 9, and 10, leaving slot #139 as a raw forwarder to F_BACKING. Once a mid-list Wait64 split switched F_BACKING to a continuation segment, #139 reset only that continuation segment and never ran title_list::reset: F_PRIMARY stayed bound to the previous recording/allocator, F_BACKING was never restored to F_PRIMARY, and extra_active kept accumulating split segments across frames.

On pre-#897 main that caused D3D12 device removal (0x887a0001 / debug-layer id 541) as soon as the old allocator was reused; even with #897/#907 allocator pooling, stale primary/prior segments continue to be resubmitted and extra_active grows until MAX_EXTRA_SEGMENTS.

The wrapper's #139 is now a guard::make_layout_split of its own: a title on the newer layout goes to a four-argument adapter that runs wrapper reset, while a title on the older layout and the runtime take the generated forwarder. The forwarder's tail jump keeps the caller's return address and arguments, which the backing list's own layout guard at #139 needs to tell a title from the runtime; calling the backing slot from Rust would hide it and send an older-layout title to the PC method.

Tests: one covers the forwarder and the newer-layout reset on fake lists; one calls the slot from a caller in a registered mapped image, with the backing slot behind a layout guard as real.rs installs it and a test-local layout flag (flag clear: the older handler with the title's arguments; flag set: the primary is reset and the split segment reclaimed).

Co-Authored-By: Antigravity <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b3a969b72c)
`would_signal_close_cycle` took every armed wait on the target cell with
`val <= sig_val` as waiting on the new signal. A wait that an earlier
signal of the cell already satisfies (submitted on the GPU or released on
the CPU) does not depend on it. With pipelined frames – queue A waits on
cell X >= N, queue B then signals X = N + 1 after waiting on something A
signals later – every such frame was reported as a cycle, signalled on
the CPU and its waiters released before the GPU work they wait for ran.

A retail title on an RTX 4070 Laptop broke 14-32 such "cycles" in each
run's world load (traced: queue 1 waiting on 0x...fde0 >= 0x6db, covered
by queue 2's earlier 0x6db signal, counted against queue 2's 0x6dc
signal). With the fix: no cycle break in two runs of the same load.

The waiters taken now are those no earlier signal covers
(`val > max(submitted_max, cpu_signaled_max)`); a test reproduces the
traced case and keeps the true cycle detected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b67c8f0cb5)
Two bugs in title_list segment and wrapper lifecycle:
- When a title_list split onto an extra PC segment and later returned
  that segment to `spares` via Reset or KickoffX, `alloc_pool::forget_list`
  was never called on the retired segment. The segment stayed in its
  backing allocator's `users` set indefinitely, preventing that backing
  allocator from being reused and leaking new PC allocators on every Reset.
- In `title_list::release`, after `f(pc)` freed the primary PC list,
  `WRAPPER_OF.remove(&pc)` and `bind::forget(pc)` ran unconditionally.
  If another thread created a new command list that reused the freed `pc`
  address in the window after `f(pc)`, the old wrapper's cleanup detached
  the new wrapper and wiped the new list's bind state.

Call `alloc_pool::forget_list(list)` inside `list_x::clear_segment_state`
(covering both `title_list::reset` and `KickoffX`) and before releasing
spare segments; in `title_list::release`, only remove `WRAPPER_OF` entries
still mapped to `this` and skip redundant `bind::forget(pc)` when `pc` was
adopted (already cleaned up inside `real::cl_release`).

Assisted-by: OpenCode (Gemini 4 Neon)
(cherry picked from commit d827520e3d4741137e4b569fde77e415024cb186)
A title's allocator Reset while the GPU still runs what was recorded on
it puts that PC allocator aside (alloc_pool, #897) and returns S_OK.
real::alloc_reset took the S_OK as "the GPU is done" and freed every
unified-memory block that ended recordings on the title's allocator had
used: root argument tables, io and AllocateUploadMemory blocks. Coherent
blocks go back on the pool's LIFO stack, so the next translated draw can
take one and write its arguments over those a submitted draw has not
read yet; sparse ones are decommitted. #897 counted 240 such swaps in
60 s of a retail title's world.

The blocks were also held under the title's allocator, which since #897
stands for PC allocators that change, so no one Reset could tell whether
the GPU was done with all of them.

A recording's blocks are now held for the PC allocator it is on (the one
alloc_pool's reset_list hands to the PC Reset), and alloc_pool gives a
PC allocator's blocks back at the title's Reset once the GPU has passed
every submit on it, whether it is in use, was reset or was put aside. A
PC allocator made here that is released gives its blocks back with it.

The device test through the Reset hook finds the blocks freed at the
swap on the old code (run on Wine's D3D12 over MoltenVK; no Windows
machine here).

Fixes #1358.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 790185635d)
The same rule as for Write64 cells (the covered waits of would_signal_close_cycle) in
break_cycles_before_title_signal: a wait that an earlier submitted signal of the title's fence
satisfies does not wait on the new one. Counting it released a cell's GPU wait on the CPU in every
pipelined frame that has such a pair, before the work it waits for had run.

Test: a_title_fence_wait_an_earlier_signal_covers_is_no_cycle.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
As for dispatches: an indirect draw whose vertex or instance count was garbage held the 3D engine
for 8 s in a retail title's world (RTX 5090) and ended in a driver error (nvlddmkm 153). The guard
reads the arguments of signatures of one Draw or DrawIndexed too, and hands zeros on where a count
or the product is beyond what a frame draws (2^28 vertices, 2^24 instances). XCL_INDIRECT_GUARD=dispatch
checks dispatches only.

Test: an_execute_indirect_with_garbage_counts_draws_nothing (GPU: the arguments the draw would get,
copied out).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`readable` asked the working set for up to 16 pages and VirtualQuery for more. VirtualQuery sizes
the whole committed region behind an address by walking it: in a title's 2 GB heap 20-30 ms a call
(measured: 29 ms at the start of a 2.2 GB block, 2.8 ms with 300 MB behind, 50 us for 4096 pages
from the working set). Each submit checks every texture of more than 64 KiB that was written: 30-50 ms
of a frame in a retail title's world.

The working set is asked in batches of 512 pages. In a range of more than 16 pages a page that is
not resident is read by the kernel (one byte), as the caller's reads would: committed, or not
readable. Short ranges (a title's pointer that may be garbage) are answered as before: such a page is
not touched, VirtualQuery answers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From a review: the program of a count out of range is known without XCL_GPU_PROFILE, and forgotten
with its pipeline; what was found is logged from the GPU wait watchdog too (nothing is recorded any
more when the GPU stands); a record says that it is there before it is logged; a count of 0 beside
garbage is no garbage (it runs nothing); the title's address is logged; the title's buffer is read
for the comparison only with XCL_INDIRECT_GUARD=compare; the ring holds 256 Ki slots; the tests
reuse a slot that holds good counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts:
- the translator's version is one of its own (its output differs from main's: globallycoherent
  windows only where a program needs them, #1850);
- compute and graphics driver blobs reach the disk cache also when the store in memory is full
  (main's read_pso_cached_blob and graphics blobs, our return of the blob);
- sparse: our copies back with main's lock_state and wait notes;
- title textures: our uploads on the title's queue in main's batches (256 textures, 32 MiB);
- DirectStorage: a page list is read again at execution (#1405) through main's read_own (#509);
- list_x / bind: our diagnostics and the ExecuteIndirect guard kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The copy of the frame to XCL's window is a submit on the title's queue that reads none of the title's
memory: it took a full look for CPU writes (one of three a frame, 6.6 ms in a retail title's world).

submit_cost also counts the textures looked at, unchanged and uploaded, their bytes, and the time
comparing, detiling and submitting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	crates/xcl/src/hle/d3d12x/title_textures.rs
FlushGpuCacheRangeX and FlushShaderCacheRangeX of the newer list layout were answered with nothing.
They are how a title orders a pass behind the one that wrote what it reads: a retail title calls them
thousands of times a minute, and its compute passes (the ones that write indirect arguments and the
ones that read them) had no order there. FlushPipelineX (#67, newer layout #69) as well; at #69 a
newer-layout title's call ran Write32BitValueBottomOfPipeX with the flags as the address.

The PC has no ranges of caches: a UAV barrier for all resources, on direct and compute lists.

Test: cache_flushes_are_uav_barriers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A title changes thousands of scattered 64-byte chunks between two submits (a retail title's world:
~2 000 runs of ~240 bytes a submit). Each was a CopyBufferRegion, 0.3 us in the driver however
little it copies. The runs under 4 KiB now go into the staging ring one after another behind a table
of their places, and one compute dispatch puts them there; longer runs keep their copies. Measured
with upload_dirty on an RTX 5090: 2 000 runs of 256 bytes 594 -> 66 us, 400 runs 160 -> 60 us.

Only the changed chunks are written, as before: what lies between them may be the GPU's.
XCL_SPARSE_SCATTER=0 goes back to a copy each. The "sparse windows timing" line counts both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A title's texture went up as a whole whenever a page of it was written: hashed as a whole on the
submitting thread, every level of every slice detiled into fresh memory, copied again into a new
upload buffer, on a new allocator and list, and released through the hooks that ask every queue how
far it is. A streamed texture arrives 64 KiB at a time, so it went up many times over. In a retail
title's world that was half of what a submit cost (73 ms of a 180 ms frame).

- The written pages are compared one by one with what they held, and only the blocks of the levels
  (mip tails, rows of linear levels) the changed ones are go up (`tiling::Chain::parts`).
- They are detiled block by block by the standing workers, straight into a mapped upload buffer, in
  runs of up to 16 bytes (`detile_blocks`).
- Lists, allocators and upload buffers are kept and used again; what XCL makes for its own work is
  not hooked as a title's object.
- An upload for a compute or copy queue's submit runs on XCL's own queue as before, but the title's
  queues wait for it on the GPU; the submitting thread waited for it on the CPU with everyone
  behind it.
- A texture that becomes active again (the one over it was released) goes up as a whole at its next
  write; one whose upload failed too. Pages that go while they are read (another thread decommits
  them) read as zeros.

Measured (RTX 5090, 9950X3D): 64 KiB of a 22 MB BC7 texture 15 ms -> 0.08 ms before copies and
objects, all of it 15 -> 1.7 ms.

XCL_TEXTURE_PARTS=0 uploads changed textures as a whole. submit_cost counts pages compared and bytes
uploaded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each last Release of a resource signalled every queue and spun for up to 300 us in case the GPU had
nothing to do. With work in flight (always, in a scene) that is 300 us of the title's thread and a
Signal on every queue per resource, and a title that streams releases many at a time. Queues found
busy are now taken to be for 5 ms: those releases go to the thread that lets them go (as before, when
the wait did not help). An idle GPU still lets a resource go before its Release returns.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A title records its lists on many threads, and every root argument, draw and dispatch looked up the
list's state, the pipeline's stand-in, whether it is translated, its root signature and user SGPRs
and the windows' addresses, each under one lock for all threads. The maps are in 64 parts by address
now, each on a cache line of its own; the windows' addresses are read without a lock, and whether a
heap of views is bound is asked once per recording.

A dispatch with six root constants (XCL's part, 9950X3D, warm memory): 1 thread 0.52 -> 0.44 us, 4
threads 4.1 -> 0.43, 8 threads 17.1 -> 0.52, 16 threads 45.8 -> 0.93 us on each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
What XCL keeps of each list (bindings, pipeline, queries, writes) was one map under one lock, taken
by most recorded calls of every recording thread; it is in 64 parts by list now. A hooked draw,
SetPipelineState, Close or fence poll looked its PC method up by name in its object's class, under
the lock of all classes: a method is at one slot in every version of its interface (tested), which
is looked up once.

A dispatch binds XCL's compute pipeline with the PC method, past the hook of a title's
SetPipelineState (which keeps a graphics pipeline's depth bias); so does the check before an
ExecuteIndirect, whose program is then no longer noted as what the title bound.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- An upload on the title's direct queue waits for what went up on XCL's own queue before it, not
  after it. One on XCL's own queue that an older one, still waiting on a direct queue, can land over
  goes up again behind that one (`texture_upload::sent`, `take_again`): with parts going up, nothing
  sent them again before.
- A texture with a reported page goes up with all its written pages, those outside the blocks the
  look took too (they stay reported). What its pages held at an upload of all of it is remembered, so
  a page written with the same bytes leaves alone what the GPU wrote there.
- The wait for upload buffers polls: giving a wait up left its event registered after it was closed.
  Lists and buffers the GPU may still run stay when the queue's fence cannot say so.
- The driver's refusal of a program or root signature of XCL's own is what its user gets, not a
  program that does nothing (the scatter falls back to copies, the indirect check says so).
- The debug-layer test of an upload's states goes through these uploads, for all and for part of a
  texture.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The page hashes are of the bytes an upload read, taken as it reads them: pages read along with a
  changed one, and pages a title writes on between the comparison and the upload, were kept as what
  they had been compared as, and the PC texture could stay at zeros or half-drawn bytes. A first
  upload leaves them known too, so a page written with the same bytes is nothing to send.
- The textures of a batch that could not be uploaded (no memory for its buffer) go up again after
  100 ms instead of at their next write; buffers over 64 MiB are not rounded up to a power of two.
- A render target or UAV the CPU writes too goes up as a whole, as before: the GPU's writes to one
  are not all seen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An unbuffered read arrives by DMA: the write watch reports at most that its pages were locked,
before the bytes are there, and a look in between left the bytes out of video memory (sparse
windows) and of textures until something else wrote there. ReadFile's range is noted when it
returns finished, an overlapped one's at the first look that finds its OVERLAPPED done.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	crates/xcl/src/gpu/texture.rs
#	crates/xcl/src/hle/d3d12x/title_textures.rs
- The bytes an upload reads are hashed before they are detiled: in the window that stays committed
  they are the title's own, and a write in between was kept as sent.
- A texture over the video memory of one it supersedes comes behind that one's unfinished uploads.
- Resolves into a texture are noted as GPU writes, like copies.
- A texture whose blocks the look took anyway is not asked about again; what goes up of a batch is
  counted in whole blocks.
- GPU tests: the order of a texture's uploads on two queues, both ways; a program of XCL's own that
  the driver refuses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A last Release signalled every queue and waited for the GPU to say it is idle, then ended the object:
130 - 190 us each on the title's thread (the driver takes ~100 us to end a texture), and a title ends
thousands when it changes places. Only a buffer can be over pages that are freed next (an imported
heap pins them), so textures and XCL's own buffers in video memory go to the thread at once: 2 - 5 us.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
How many of a look's pages the looks before it had found too, in how many
runs they lie, how many of the scanned pages changed, and how long before
its submit the youngest list was closed: the figures that say whether a
look ahead of the submit, or leaving always written pages out of the
write watch, would pay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A title starting on a Series S profile maps 4.3 GB of physical pages in
small pieces (MapTitlePhysicalPages -> sparse::committed), and each new
tile cost one UpdateTileMappings + signal (~0.4 ms). Its loading thread
was held ~25 s with nothing presented and its stall watchdog ended it.

New tiles now get their pool tile in `mapped` at once and their mapping
call is queued (`pending`); `flush_pending` sends them, one call per
window, before the title's next submit, before XCL's own copies and
readbacks on the windows, or past 4,096 tiles. A tile decommitted
before the flush is skipped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b52f7cb672)
(cherry picked from commit f03d411812)
XMemMapPhysicalPagesScatter takes each unmapped page home on its own: one
VirtualAlloc, one VirtualQuery and, in a sparse window, one
UpdateTileMappings and one Signal per 64 KiB page. A retail game unmaps
4136 and then 6720 pages in two calls while it loads, and the homes of
each call are one run of neighbours: 2.7-3.2 s in those two calls, the
larger part in the tile mappings.

The parts of a call that only unmap (1024 pages, 64 MiB, at a time) now
commit their homes ahead, a run of neighbouring pages per VirtualAlloc and
per sparse::committed. Homes that are committed already, or cannot be,
still go page by page, and a call that fails part way gives back the homes
no page went to. The two calls take 0.4-0.5 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 3b54c24f57)
On top of "new sparse tiles are mapped together before the next submit":
work already on the GPU can reach memory the title commits now without
another submit, when it waits for a fence the CPU signals or a value the
CPU writes. The mappings put off are sent before a title's CPU Signal,
and by a thread 2 ms after the first of them when nothing else sends
them. A tile kept for a placed buffer before its mapping was sent keeps
it pending, as a parked one does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two threads that both found no device made one each and opened the
memory windows for it: GPU work on the one with window addresses of the
other read zeros or hung the GPU (four driver resets in two minutes of
unit test runs; tests call `real::init` directly next to others that go
through `backend`). A title comes in through `backend`, which asks once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The runs of mapped tiles were sorted out of all of them again for the
first look behind each commit (a retail title has 150,000 mapped), under
the state's lock. They are kept with the tiles now, as ranges. The
pieces to clear are an ordered set: a decommit takes out its tiles' and
does not go over all of them, which grew with the square of the pages
while a title loads and submits nothing; neighbours go up as one copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A look's time goes up with the pages it takes, ~0.5 us each with the
title's threads running, and a retail title's world had ~8,000 a look:
5 ms on the thread that submits. With XCL_LOOK_AHEAD a thread takes the
written pages of the hot blocks every so many milliseconds; the next
submit takes those with what its own look finds, and one whose lists
were closed before such a round began needs no look. What is uploaded,
and when, stays as it was. Ranges that come out the same stay the same
object, so the hot blocks are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
XCL_ACTIVITY logs every 2 s how many placed textures and buffers, page
mapping calls, memory calls and pipelines the title's threads made and
the milliseconds XCL took for them: where the time of a loading screen
goes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The lock goes to the first to ask once it is free: a thread that takes it
again and again (a title mapping its memory a page at a time) is back
before a waiting one has woken. Measured with 0.4 ms holds and no gap:
171 ms median and 1.8 s at worst for the waiting thread; with the rule
0.14 and 0.4 ms. Also: XCL_TEST_WARP for the test device.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A look for CPU writes between a page's copy and its `sparse::committed`
took the written pages of a tile that has no video memory yet: they were
reset and dropped, and nothing reported them again, so the GPU read zeros
there until the CPU wrote the page once more. With a mapping call's pages
told in runs that gap was the rest of the call. Pages with data are told
first, the run stays for fresh ones; a page moved between addresses the
same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`copy_readable` fell back to splitting the range at every failed
ReadProcessMemory: for memory that is only reserved that is two calls a
page. A retail title makes its textures before it maps their memory, and
13.6 GB of them went up at 0.5 GB/s while its world loaded (27 s of its
submitting thread). The regions are asked for once each, as
`read_committed` did; both share the code now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
What independent reviewers confirmed in the commits since 0ba3b8c:
- the flag that says mappings wait went before they were sent: a CPU
  signal of another thread saw nothing to do and let waiting work run
  ahead of them. It goes after the flush, and a signal asks each time;
- a queue's Signal (and SignalX) sends what waits, as a fence's does;
- lists that go out after a wait on the CPU inside a submit see what the
  title committed meanwhile mapped and cleared;
- a heap made with the state locked: what waits is sent first;
- the walk gets the watched ranges at every submit, and a submit goes
  without a look of its own only when the walk has found no written
  block since the last look began.
Tests: two GPU tests skip where the device cannot run them (the software
device is removed by copies into a reserved buffer of 3 GiB, and a device
without sparse windows puts nothing off).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:16:59 +00:00
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 03:01 UTC · original

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.

**@⁠Filip722** on GitHub · 2026-11-25 03:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7151509335) 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.
Author
Owner

@⁠not-rex on GitHub · 2026-11-25 03:38 UTC · original

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.

**@⁠not-rex** on GitHub · 2026-11-25 03:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7152106281) **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.
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-25 04:02 UTC · original

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.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-25 04:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7152473795) **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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 04:41 UTC · original

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.

**@⁠DavidM1911** on GitHub · 2026-11-25 04:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7153082518) 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.
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-25 05:19 UTC · original

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.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-25 05:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7153653511) **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.
Author
Owner

@⁠Alm0stSurely on GitHub · 2026-11-25 05:44 UTC · original · edited 2026-11-25 05:57 UTC

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.

**@⁠Alm0stSurely** on GitHub · 2026-11-25 05:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7154097279) · edited 2026-11-25 05:57 UTC 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.
Author
Owner

@⁠Alm0stSurely on GitHub · 2026-11-25 06:09 UTC · original

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.

**@⁠Alm0stSurely** on GitHub · 2026-11-25 06:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7154503482) 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.
Author
Owner

@⁠ettehn on GitHub · 2026-11-25 05:37 UTC · original · edited 2026-11-25 06:56 UTC

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).

**@⁠ettehn** on GitHub · 2026-11-25 05:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7153977066) · edited 2026-11-25 06:56 UTC 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).
Author
Owner

@⁠joeypercia on GitHub · 2026-11-25 07:08 UTC · original

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.

**@⁠joeypercia** on GitHub · 2026-11-25 07:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7155524756) **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.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-25 05:46 UTC · original · edited 2026-11-25 07:27 UTC

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.
**@⁠Anon64** on GitHub · 2026-11-25 05:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7154133293) · edited 2026-11-25 07:27 UTC 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.
Author
Owner

@⁠tiagonleal on GitHub · 2026-11-25 07:27 UTC · original

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).

**@⁠tiagonleal** on GitHub · 2026-11-25 07:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7155888027) **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).
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 07:34 UTC · original

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.

**@⁠Filip722** on GitHub · 2026-11-25 07:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156011330) 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.
Author
Owner

@⁠imnicho on GitHub · 2026-11-25 08:08 UTC · original

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 #1850 . 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.

**@⁠imnicho** on GitHub · 2026-11-25 08:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156657950) **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://git.gtahub.st/github/xcl-dev--xcl/pulls/1850 . 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.
Author
Owner

@⁠Eterst on GitHub · 2026-11-25 08:23 UTC · original

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.

**@⁠Eterst** on GitHub · 2026-11-25 08:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156966403) **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.
Author
Owner

@⁠Rednaxeh on GitHub · 2026-11-25 08:29 UTC · original

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.

**@⁠Rednaxeh** on GitHub · 2026-11-25 08:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157097107) **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.
Author
Owner

@⁠frenziedcoder on GitHub · 2026-11-25 08:33 UTC · original

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.

**@⁠frenziedcoder** on GitHub · 2026-11-25 08:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157174178) **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.*
Author
Owner

@⁠dhillonjagdeep650-boop on GitHub · 2026-11-25 08:59 UTC · original

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.

**@⁠dhillonjagdeep650-boop** on GitHub · 2026-11-25 08:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157724407) 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.
Author
Owner

@⁠CharlyRien on GitHub · 2026-11-25 08:59 UTC · original

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: #697

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.

**@⁠CharlyRien** on GitHub · 2026-11-25 08:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7157738964) **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://git.gtahub.st/github/xcl-dev--xcl/issues/697 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.
Author
Owner

@⁠Alm0stSurely on GitHub · 2026-11-25 04:19 UTC · original · edited 2026-11-25 09:12 UTC

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.

**@⁠Alm0stSurely** on GitHub · 2026-11-25 04:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7152741210) · edited 2026-11-25 09:12 UTC 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://git.gtahub.st/github/xcl-dev--xcl/pulls/2057). 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.
Author
Owner

@⁠upipibi on GitHub · 2026-11-25 08:13 UTC · original · edited 2026-11-25 09:25 UTC

@⁠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: #1993

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

**@⁠upipibi** on GitHub · 2026-11-25 08:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7156765026) · edited 2026-11-25 09:25 UTC @⁠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://git.gtahub.st/github/xcl-dev--xcl/pulls/1993 AI-assisted (Claude Code). Synthetic tests only.
Author
Owner

@⁠kole07139 on GitHub · 2026-11-25 09:59 UTC · original

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.

**@⁠kole07139** on GitHub · 2026-11-25 09:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159078757) **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.
Author
Owner

@⁠ShyVortex on GitHub · 2026-11-25 10:19 UTC · original

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.

**@⁠ShyVortex** on GitHub · 2026-11-25 10:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159528123) 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.
Author
Owner

@⁠kole07139 on GitHub · 2026-11-25 10:43 UTC · original

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.

**@⁠kole07139** on GitHub · 2026-11-25 10:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160090884) **Follow-up to [my report above](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2057), 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.
Author
Owner

@⁠Dezmonius on GitHub · 2026-11-25 11:10 UTC · original

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.

**@⁠Dezmonius** on GitHub · 2026-11-25 11:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160703783) **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://git.gtahub.st/github/xcl-dev--xcl/pulls/2057). 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.
Author
Owner

@⁠MrEjecutor on GitHub · 2026-11-25 10:00 UTC · original · edited 2026-11-25 11:16 UTC

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.

**@⁠MrEjecutor** on GitHub · 2026-11-25 10:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7159102474) · edited 2026-11-25 11:16 UTC **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.
Author
Owner

@⁠mgrein on GitHub · 2026-11-25 11:07 UTC · original · edited 2026-11-25 11:26 UTC

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.

**@⁠mgrein** on GitHub · 2026-11-25 11:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160617537) · edited 2026-11-25 11:26 UTC **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.
Author
Owner

@⁠Dezmonius on GitHub · 2026-11-25 11:35 UTC · original

@⁠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.

**@⁠Dezmonius** on GitHub · 2026-11-25 11:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7161253994) @⁠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://git.gtahub.st/github/xcl-dev--xcl/pulls/2057) 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.
Author
Owner

@⁠upipibi on GitHub · 2026-11-25 11:47 UTC · original

@⁠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.

**@⁠upipibi** on GitHub · 2026-11-25 11:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7161501048) @⁠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.
Author
Owner

@⁠joeypercia on GitHub · 2026-11-25 10:59 UTC · original · edited 2026-11-25 11:55 UTC

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.
**@⁠joeypercia** on GitHub · 2026-11-25 10:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160441802) · edited 2026-11-25 11:55 UTC **Update:** `r_null_during_copyq` removes the device on an RTX 5070 ([Dezmonius](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2057)) and passes on an RTX 3070 ([upipibi](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2057)). 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.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-25 11:15 UTC · original · edited 2026-11-25 13:33 UTC

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.

**@⁠KDenKC** on GitHub · 2026-11-25 11:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160805888) · edited 2026-11-25 13:33 UTC **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.
Author
Owner

@⁠vakaobr on GitHub · 2026-11-25 13:34 UTC · original

@⁠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.

**@⁠vakaobr** on GitHub · 2026-11-25 13:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7163966016) @⁠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.
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-25 13:49 UTC · original

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.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-25 13:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7164354843) **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.
Author
Owner

@⁠minimalhipster990 on GitHub · 2026-11-25 13:40 UTC · original · edited 2026-11-25 13:53 UTC

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.

**@⁠minimalhipster990** on GitHub · 2026-11-25 13:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7164123735) · edited 2026-11-25 13:53 UTC ### 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://git.gtahub.st/github/xcl-dev--xcl/pulls/2057). **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.
Author
Owner

@⁠Rednaxeh on GitHub · 2026-11-25 14:33 UTC · original

@⁠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).

**@⁠Rednaxeh** on GitHub · 2026-11-25 14:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7165459272) @⁠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).
Author
Owner

@⁠frenziedcoder on GitHub · 2026-11-25 14:53 UTC · original

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.

**@⁠frenziedcoder** on GitHub · 2026-11-25 14:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7165985215) **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.*
Author
Owner

@⁠claudetools-gh on GitHub · 2026-11-25 15:07 UTC · original

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.

**@⁠claudetools-gh** on GitHub · 2026-11-25 15:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7166343260) 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.
Author
Owner

@⁠frenziedcoder on GitHub · 2026-11-25 15:13 UTC · original

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.

**@⁠frenziedcoder** on GitHub · 2026-11-25 15:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7166490981) **Follow-up to [my #1798 pair above](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2057), 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.*
Author
Owner

@⁠kanade333 on GitHub · 2026-11-25 10:55 UTC · original · edited 2026-11-25 15:18 UTC

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: #2270
  • 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: #1798. 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).

**@⁠kanade333** on GitHub · 2026-11-25 10:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7160351986) · edited 2026-11-25 15:18 UTC **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://git.gtahub.st/github/xcl-dev--xcl/pulls/2270 - 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://git.gtahub.st/github/xcl-dev--xcl/pulls/1798. 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).
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-25 15:43 UTC · original

@⁠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.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-25 15:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7167274825) @⁠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.
Author
Owner

@⁠bstillbstill on GitHub · 2026-11-25 16:42 UTC · original

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.

**@⁠bstillbstill** on GitHub · 2026-11-25 16:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7168399267) 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.
Author
Owner

@⁠jennydeth on GitHub · 2026-11-25 18:20 UTC · original

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.

**@⁠jennydeth** on GitHub · 2026-11-25 18:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7170764430) **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.
Author
Owner

@⁠bstillbstill on GitHub · 2026-11-25 18:49 UTC · original

@⁠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.

**@⁠bstillbstill** on GitHub · 2026-11-25 18:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7171461640) @⁠claudetools-gh could you push the tree from [your RTX 5070 Ti run](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2057), 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://git.gtahub.st/github/xcl-dev--xcl/pulls/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.
Author
Owner

@⁠claudetools-gh on GitHub · 2026-11-25 18:58 UTC · original

@⁠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.

**@⁠claudetools-gh** on GitHub · 2026-11-25 18:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7171644674) @⁠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.
Author
Owner

@⁠shortside on GitHub · 2026-11-25 19:18 UTC · original

A Mac data point for the stop @⁠kole07139 describes above (#2057) and again on main in #1773: 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 #258.

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.

**@⁠shortside** on GitHub · 2026-11-25 19:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7172127041) A Mac data point for the stop @⁠kole07139 describes above (https://git.gtahub.st/github/xcl-dev--xcl/pulls/2057) and again on `main` in https://git.gtahub.st/github/xcl-dev--xcl/issues/1773: 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://git.gtahub.st/github/xcl-dev--xcl/issues/258. **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.
Author
Owner

@⁠BillyBuilds on GitHub · 2026-11-25 20:40 UTC · original · edited 2026-11-25 21:30 UTC

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.
**@⁠BillyBuilds** on GitHub · 2026-11-25 20:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7174012642) · edited 2026-11-25 21:30 UTC 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.
Author
Owner

@⁠justrhoto on GitHub · 2026-11-25 21:40 UTC · original

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.

**@⁠justrhoto** on GitHub · 2026-11-25 21:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7175387959) **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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 00:59 UTC · original

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.

**@⁠DavidM1911** on GitHub · 2026-11-26 00:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7179317204) 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.
Author
Owner

@⁠xpatfussy69x on GitHub · 2026-11-26 00:51 UTC · original · edited 2026-11-26 01:10 UTC

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.
**@⁠xpatfussy69x** on GitHub · 2026-11-26 00:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/2057#issuecomment-7179183956) · edited 2026-11-26 01:10 UTC 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.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/gpu/recomp/emit.rs
  • crates/xcl/src/gpu/texture.rs
  • crates/xcl/src/hle/d3d12x/bind.rs
  • crates/xcl/src/hle/d3d12x/console_list.rs
  • crates/xcl/src/hle/d3d12x/device_x.rs
  • crates/xcl/src/hle/d3d12x/list_x.rs
  • crates/xcl/src/hle/d3d12x/pso_async.rs
  • crates/xcl/src/hle/d3d12x/real.rs
  • crates/xcl/src/hle/d3d12x/sparse.rs
  • crates/xcl/src/hle/d3d12x/title_list.rs
  • crates/xcl/src/hle/d3d12x/title_textures.rs
  • crates/xcl/src/hle/dstorage.rs
  • crates/xcl/src/hle/kernelx.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2057/head:github-bot/gh-2057'
git switch 'github-bot/gh-2057'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2057'
git switch 'github-bot/gh-2057'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2057'
git switch 'github-bot/gh-2057'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2057'
git switch 'main'
git merge --squash 'github-bot/gh-2057'
git switch 'main'
git merge --ff-only 'github-bot/gh-2057'
git switch 'main'
git merge 'github-bot/gh-2057'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.