Skip to content

Newer retail title (TitleID 7952987A): reaches world loading, then the title's GPU watchdog ("GPU Loc Sig") after ListX #101 stub #505

Backlog

Description

@tadymila

Setup

i7-9700F (Intel; insn.rs emulation works), RTX 5070 Ti (wave32; no hangs), Windows 11, DXC 1.9.2609, xcl main as of 2026-11-23.

What happens

  • Boots, menus, goes into the world: the title's own crash context shows Game State: Game Running, peds/vehicles spawned, camera in the world. Screen stays on the grey loading screen with the spinner.
  • After 7–14 min: 0xC0000005 write at 0x0 at game_scarlett_master.exe+0x23cf683, same address every run. Stack: +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca.
  • That site is a deliberate abort: it decodes a 12-byte string to "GPU Loc Sig", calls +0x2215950, then mov dword [0], 0x4D8BD421. Looks like the title's GPU-progress watchdog firing.
  • Shortly before it, in every run: [STUB] d3d12_xs.dll!ID3D12GraphicsCommandList10::#101 (not on PC) first called from game_scarlett_master.exe+0x50a6657 → returning 0x0. My guess: Runtime: fix ANSI CP_ACP path encoding, HLE alias stubs/handles, forwarders, and stub creation race #101 writes a GPU progress label/signal the CPU waits on.
  • At that point: coherent 3998/4095 MB (it was 116/512 MB earlier in loading).

BCPack

Without a BCPack decoder, hundreds of BC1/BC5/BC7 requests were refused and streaming stalled (Streaming Requests: 3811). As a local test I plugged in a BCPack decoder: 2048+ requests decoded, 0 failed. The crash stays the same, so BCPack is not the cause of it, but the title needs BCPack to stream the world.

Also

Breakpad's http_upload reached submit.backtrace.io (HTTP 200, a 32 MB minidump). Maybe block it like the Xbox Live calls?

Activity

  1. Cattn commented on Nov 24, 2026

    @Cattn
    Contributor

    Same stop here (RTX 4070, Ryzen 7 7800X3D, main + #455), so a data point on #101:

    At +0x50a6651 and +0x50a666a the title calls slot 101 (call qword ptr [rax+328h]) on the command list as (list, 2, 1) and later (list, 2, 0), around a block of work. Both calls pass only small constants, no address and no value to write. It looks like an on/off toggle of some mode (2), not a GPU progress label. The stub is probably not what starves "GPU Loc Sig", though what the mode is remains unknown.

    A likelier lead on NVIDIA is pipeline builds not keeping up once the world loads. Our logs show ~10,000 new shaders at world load and only 5–50 pipelines finishing per 20 s afterwards, the pattern #156 and #499 describe. I'm measuring the backlog per 2 s next and will post it here.

    (Disassembly and analysis by Claude Code, Claude Opus 5.5, read-only with dumpbin.)

  2. Prime1997 commented on Nov 24, 2026

    @Prime1997
    Contributor

    Same stop here (RTX 4070, Ryzen 7 7800X3D, main + #455), so a data point on #101:

    At +0x50a6651 and +0x50a666a the title calls slot 101 (call qword ptr [rax+328h]) on the command list as (list, 2, 1) and later (list, 2, 0), around a block of work. Both calls pass only small constants, no address and no value to write. It looks like an on/off toggle of some mode (2), not a GPU progress label. The stub is probably not what starves "GPU Loc Sig", though what the mode is remains unknown.

    A likelier lead on NVIDIA is pipeline builds not keeping up once the world loads. Our logs show ~10,000 new shaders at world load and only 5–50 pipelines finishing per 20 s afterwards, the pattern #156 and #499 describe. I'm measuring the backlog per 2 s next and will post it here.

    (Disassembly and analysis by Claude Code, Claude Opus 5.5, read-only with dumpbin.)

    I'll work on this.

    Thank you for raising this issue.

  3. sub-north commented on Nov 24, 2026

    @sub-north

    Cross-confirmation from an independent lab, plus two corrections.

    The stop reproduces exactly. Same code path, same address, same stack, same parameter set, on a different machine (RTX 4070 Ti SUPER, wave32, Windows 11) and a different day:

    unhandled exception 0xc0000005 in <title>+0x23cf683 (write at address 0x0)
    stack: +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca
    GPU Loc Sig: 7333478d
    

    The title's own crash context at that moment (it writes crashcontext.log before the upload attempt):

    Game State: Game Running        Frame: 1494
    Streaming Requests: 3651        TileHeap used: 1671/6236 MB
    Camera Position: <-1782.299927, -1914.123901, 6.035758>
    Peds: 22/600   Cars: 24/700   BUILDING: 6910/22500   INSTANCE_LIST: 17239/45000
    Currently running script threads: 1
    

    So: simulation live in the world, pools populated, camera at a real coordinate — exactly your description.

    Correction 1 - slot 101's return value is ignored. Disassembly of the function containing the call site (the log offset is the return address of call qword ptr [rax+0x328], i.e. slot 101 confirmed): the two control-flow joins never test it. One does setne al; the other immediately overwrites rax with mov rax,[rsi+...]. There is no GetCompletedValue or fence wait in the function at all. eax is neither stored nor compared. So 101 is a side-effect call and cannot be "the signal the CPU waits on" - there is no value to wait on. Its arguments are rcx=owner ptr, edx=2, r8d=1 or 0.

    Correction 2 - the watchdog label is inline. "GPU Loc Sig" is not in the string table; it is a 13-byte immediate at +0x23cf62e decoded byte-wise with a per-byte key, inside the same 0x73-byte function that null-writes at +0x23cf683. That idiom occurs once in the image. It is a diagnostic label being assembled for the crash report, not a value being compared.

    New wall on current main, worth knowing. On 7ebf1b8 the same title gets further (8521 buildings, 83 peds, 238 cars, TileHeap 3639 MB) and then dies before the watchdog, ~290 s in:

    D3D12 XDXR Error: DestAccelerationStructureData can not have more than 40b of address set
    C++ exception thrown; stack: xboxbvhbuilder.dll+0xd2538, vcruntime140.dll+0x6480
    process ends with status 0xe06d7363
    

    Our GPU VAs there are above 2^40 (e.g. 0x1d1ae5c0000). On 85bdf21 this never appears - that build dies at the watchdog instead. If you are testing on main, the BVH path may be killing your run before the watchdog does.

    Also: on our side the loader refused every BCPack request with zero decoder present (filled_bytes 0 for BC1/BC5/BC6H/BC7), matching your streaming-stall observation. We would be interested in your local decoder if you are willing to share the approach.

  4. emirduran707 commented on Nov 24, 2026

    @emirduran707
    Contributor

    A data point from AMD, much earlier than the 7–14 min above: the same stop at 161.7 s.

    Setup: RX 9060 XT 16 GB (RDNA4, 64-lane waves), driver 32.0.31044.16, Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, release. Build: main a6f5f7a + #440 (be722a7, the intro video at speed) + #300 (9507d05) + #435 (a94e151), merged locally. XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=60, A pressed by hand on the first menu.

    • unhandled exception 0xc0000005 in <title>+0x23cf683 (write at address 0x0), GPU Loc Sig = 7333478d (the same value as sub-north's run).
    • World streaming starts at ~62 s; ID3D12GraphicsCommandList10::#101 (not on PC) is first called at 99 s.
    • From the activity (2 s) lines: 108–134 s the title submits (14–116 submits, 1–16 presents per 2 s) with heavy DirectStorage (1 100–3 500 requests per 2 s, up to 379 failed: BCPack refusals). From ~136 s to the stop, every line is 0 submits and 0 presents (a few dispatches, no DirectStorage). No device removal, no E_OUTOFMEMORY, no frame-event wait timed out.
    • Process commit was 27.2 GB at the stop (local video memory 13.9 GB).

    So on this machine the watchdog fires after ~26 s in which XCL saw no submit at all from the title, rather than with a backlog of work on the GPU. I have not checked what the title's threads were waiting on.

    AI use: Claude Code with Claude Opus 5.5 read the run's log and wrote this comment from my run.

  5. emirduran707 commented on Nov 24, 2026

    @emirduran707
    Contributor

    Follow-up to my run above: what the title was waiting on in those ~26 s without a submit.

    XCL's thread dump at the stop has four title threads with the same stack, inside XCL. Symbolized with a release build of the same tree with CARGO_PROFILE_RELEASE_DEBUG=line-tables-only (I checked that the code bytes at these offsets are identical to the build that ran):

    xcl.exe+0x2508f6   hle/d3d12x/bind.rs:671        dispatch → pso_async::resolve_wait
    xcl.exe+0xd5d7f    hle/d3d12x/pso_async.rs:173   (resolve_for_bind / resolve_wait)
    xcl.exe+0xd5992    hle/d3d12x/pso_async.rs:162   p.cv.wait(done)  – no time limit
    

    So four of the title's threads are in Dispatch, waiting for a compute pipeline that is still being built. At the same moment 10 of the 11 xcl-pso-* workers are idle, xcl-pso-7 waits on a channel, 9 of 10 xcl-dxc-* threads are idle, and one is inside dxcompiler.dll. That fits one compute program whose DXC compile took longer than the ~26 s, with every Dispatch of it blocked meanwhile – on AMD (no driver compile involved in that wait), not only on NVIDIA. I could not tell which program: XCL logs no per-compile time.

    Related: #174 (DXC time of compute programs) and #267 (a time limit on the wait – for draws; dispatch calls resolve_wait, which has none).

    AI use: Claude Code with Claude Opus 5.5 symbolized the dump and wrote this comment from my run.

  6. requiemsnkrp commented on Nov 24, 2026

    @requiemsnkrp
    Contributor

    Same stop on an RTX 3060 12 GB (Ampere, wave32) with 16 GB of RAM, on current main 508a0c7. The pipeline backlog stands out.

    Setup: RTX 3060 12 GB, driver 621.24; Ryzen 5 5600X; 16 GB RAM; Windows 11 Pro 26200; release build of 508a0c7, unmodified. XCL_NETWORK=0, XCL_ACTIVITY=1, menus walked with XCL_PRESS_AT (A at 14/17/21 s, then every 6 s from 125 to 197 s).

    • unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) at 326.9 s, same stack (+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca).
    • ID3D12GraphicsCommandList10::#101 (not on PC) was first called at 288.2 s from +0x50a6657.
    • From the activity (2 s) lines: presents fall from 19 per 2 s at 142 s to 2 at 162 s and about 0 from 182 s. Submits are 0 in every line from 282 s to the stop, the same ~30–40 s without a submit as @emirduran707's run.
    • report.json at the stop: background_pipelines: [46, 0, 58715], i.e. 46 built, 0 failed, 58 715 still building. That fits the pipeline-backlog lead of @Cattn and the unbounded resolve_wait in dispatch.
    • Memory from the memory: lines: process commit 15.6 GB at 122 s, 26.4 GB at 182 s and 40.1 GB at the stop. Local video memory reached 13.8 GB on the 12 GB card (4.6 GB non-local).
    • No XDXR … more than 40b of address error on 508a0c7: this run gets to the watchdog.
    • After the stop, the process did not end. The log stops at the crash line: no process ends, no thread dump, no breakpad lines. The window stayed black at 0 fps until I killed xcl.exe a few minutes later. So I have no thread dump of this run to add to the one above.

    Not tested: #267 or a time limit on resolve_wait; a run without XCL_NETWORK=0; AMD.

    AI use: Claude Code (Claude Opus 5.5) ran the session on my machine, read the log and report.json, and wrote this comment.

  7. 13hourstilliland commented on Nov 24, 2026

    @13hourstilliland
    Contributor

    Static read of the retail exe (1.0.2.1), RVAs only, no run. Short version: +0x23cf683 looks like the same stall watchdog as #232, not a separate crash.

    • The "GPU Loc Sig" function (+0x23cf620) is installed as the watchdog's report hook: the init code at +0x23cf6f7 does lea rcx,[+0x23cf620]; call +0x22161f0, and that function stores rcx into global +0x71b6348 (only when a per-thread flag byte at [[gs:0x58]]+0x12d8 has bit 0 set).
    • The Retail title: null write at +0x2215c35 (#159) still hits on NVIDIA RTX 4070 Ti, with and without XCL_NETWORK=0 #232 watchdog (+0x2215a60) reads +0x71b6348 before its own null write and does call rax at +0x2215c33. That call's return address is +0x2215c35, which is the +0x2215c35 in your stack. So the fault is inside the hook, with the watchdog already decided to abort. The decode in Retail title: null write at +0x2215c35 (#159) still hits on NVIDIA RTX 4070 Ti, with and without XCL_NETWORK=0 #232 says the hook is NULL; here it evidently isn't.
    • Two ways the watchdog decides to abort, both reaching +0x2215c16: (A) a scoped timer registered through +0xb5b6b0 (push) / +0xb5b6f0 (pop) is >= 300.0f old (the table decode already posted); (B) when no scope is active ([+0x71b6334] == 0), a heartbeat timestamp at +0x71b6338 has not changed for 30 one-second ticks.
    • The heartbeat is written only by +0x22159f0, called from four sites: +0x120799, +0xc9e368, +0x1c82b67, +0x1c82bc1 (the last two in a loop-tick function at +0x1c82b20).
    • Inferred: emirduran707's ~26 s with zero submits fits route B (about 30 s) better than route A (300). If the title threads that post the heartbeat are the ones blocked in Dispatch -> resolve_wait (no time limit), the title aborts itself.
    • Slot 101: both call sites (+0x50a6651, +0x50a666a, args (2,1) / (2,0)) ignore the return value, so I agree with Cattn and sub-north that the stub is not what the watchdog waits on.

    Unknown, one debugger check each: at the stop, [+0x71b6334] (zero means route B); which thread the last heartbeat write came from (watch +0x71b6338); and whether those threads are the ones XCL dumps in resolve_wait.

    AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.

  8. tadymila commented on Nov 24, 2026

    @tadymila
    Author

    Confirming @Cattn's and @emirduran707's pipeline-backlog theory with numbers, and with a way to keep the title alive past the watchdog:

    Update: past the world-loading crash (local patches)

    1. BCPack: I plugged a BCPack decoder (BC1, BC3–BC7) into hle/dstorage.rs for a local test: zlib first, then BCPack, as on the console. 2048+ requests decoded, 0 failed, and streaming no longer stalls on refusals. (The decoder comes from VIctory, GPL-3.0-or-later, so it can't go into XCL as is. It just shows that BCPack is what this title needs to stream the world.)

    2. Correction on #101: VIctory's measured layout for this title names list slot 101 DriverHintX(feature, value), and VIctory also returns 0 there. So that stub is not the cause.

    3. The crash is the title's own watchdog. Thread at +0x2215af6:

    • every second (Sleep(1000)) it checks a main-thread heartbeat; if it hasn't changed 30 times in a row (mov ebp,0x1e … dec ebp; je), it calls the callback at [+0x71b6348] (+0x23cf620, which decodes "GPU Loc Sig" and writes to 0) and then mov dword [0],0 at +0x2215c35;
    • a second check walks a 64-entry table of in-flight timestamps (+0x6844a20, stride 0x48) and fires on the same path when one gets too old (jae at +0x2215bdc).
    • In every crash rbx = 0, which is the heartbeat path: the main thread stalled for 30 s.

    4. With the watchdog off, the title keeps running (in-memory patch before the entry point; the game folder is untouched): +0x2215c70: 74 04 -> 90 90, +0x2215bdc: 73 2e -> 90 90. It's at 40+ minutes now, no crash, still on the loading screen.

    5. What stalls the main thread, on NVIDIA: compute PSO creation. The world's compute pipelines are 130–380 KB of DXIL each (wave64 emulated on wave32) and take 15–25 s each to build in the NVIDIA driver, one after another on one thread:
    [1737 s] 371688 B, [1755 s] 310308 B, [1773 s] 356320 B, [1787 s] 294160 B, [1811 s] 378660 B …
    345 compute PSOs so far, most built once or twice.

    6. Also seen: Wait64BitValueX timed out after 2000 ms at 0x70417fe58 / fe10 / fee8 (op 7, want 0x28e; memory holds 0), only 3 in total, all at ~1240 s.

    Setup: i7-9700F, RTX 5070 Ti, DXC 1.9.2609, NVIDIA shader cache set to unlimited. I'll report what the next run (with a warm cache) shows.

  9. tadymila commented on Nov 24, 2026

    @tadymila
    Author

    @sub-north BCPack: I ported the decoder from VIctory (crates/.../bcpack.rs + bcpack-tables.bin, GPL-3) into xcl/src/hle/bcpack.rs. dstorage.rs now inflates zlib first, then decodes BCPack modes 1,3,4,5,6,7 instead of refusing them. The streaming stall is gone; the log shows "DirectStorage: BCPack decoded N requests (0 failed)". Can share the diff.

  10. Simon-CR commented on Nov 24, 2026

    @Simon-CR

    Independent cross-confirmation and local engineering status from an AMD RX 9070 XT (RDNA4, native wave64, 16 GiB VRAM, Ryzen 7 5800X, 64 GB RAM, Windows 11 26100) lab.

    Where our local branch stands (latest run before integrating our two-pass mesh and async compute PSO fixes)

    • Reaches live world execution (Game State: Game Running, Frame 797, ~191 s, 1,611 presents, 13,551 draws and 2,048 dispatches with translated pipelines and 0 skipped, 46 translated PSOs, 0 DXIL compilation failures).
    • DirectStorage: 0 E_ACCESS_VIOLATION (0x89240009) failures (down from 1,986 in our prior run — fix details below), and 2,087 / 2,088 BC1 BCPack requests unpacked (148.7 MB).
    • Audio: 10,454 Opus packets decoded through xapu with 0 errors (11,050,760 non-zero samples).
    • Exact stop (t = 190.9 s): Reproduced the exact same <title>+0x23cf683 watchdog abort (mov dword [0], 0x4d8bd421).

    Confirmed Root Cause of the 30-Second Stall on RDNA4

    In our crash thread dump at t = 192 s, all 15 xcl-pso-* background worker threads were completely idle while two of the title's own render worker threads were stuck deep inside amdxc64.dll and three more render worker threads were blocked in pso_async::resolve_wait. Because resolve_for_bind / bind::dispatch calls resolve_wait — which steals p.job and executes the driver compile synchronously on the calling render thread — cold large world compute shaders stalled presentation for ~27–30 s and tripped the title's heartbeat watchdog.

    Fixes Implemented & Tested Locally (Ready to Split into Clean PRs if Helpful)

    We have built and unit/GPU-tested the following fixes locally and are about to kick off our combined verification run (we can open clean, focused PRs for any of these the maintainers want):

    1. Non-blocking / time-bounded compute PSO compilation + on-disk CachedPSO binary cache (pso_async.rs, real.rs, bind.rs):

      • Added a priority queue for xcl-pso-* workers so newly bound pipelines jump to the front, stopped resolve_wait from stealing heavy driver compiles onto title render threads, and added resolve_wait_timeout (default 1500 ms, configurable via XCL_COMPUTE_PSO_WAIT_MS) so fast startup compute shaders still run on their first frame while slow 20–30 s driver compiles finish in the background without tripping the 30 s watchdog.
      • Added an adapter + UMD-versioned on-disk GetCachedBlob() / CachedPSO cache (cache/pso_bin/) with stale-blob retry fallback so compiled pipelines reload in under 1 ms on subsequent runs.
    2. Solving the 40+ refused mesh pipelines (AS = 23, MS = 24) & Two-Pass DispatchMesh execution (emit.rs, null.rs, console_list.rs, device_x.rs, real.rs, bind.rs, gpu_pso_e2e.rs):

      • Static analysis of the newer retail title's PSO stream builder confirmed Xbox Scarlett numbers PSO subobjects as AS = 23 (0x17) and MS = 24 (0x18) (whereas PC SDK reserves 23 and uses AS = 24, MS = 25). The 40+ pipelines previously refused as "MS in the AS slot" are normal Xbox mesh shader pipelines.
      • Confirmed newer-layout command list vtable mapping: slot 126 = RSSetShadingRate (PC slot 77), slot 127 = RSSetShadingRateImage (PC slot 78), slot 128 = 2-argument console setter (kept as stub), and slot 129 = DispatchMesh (plus ExecuteIndirect with DISPATCH_MESH command signatures).
      • Added Mode::Mesh root-argument SGPR layout (s[8:9] spill pointer, inline root arguments at s16..s31) and wired full Two-Pass execution (Compute pass -> UAV barrier -> Pass-through DispatchMesh, including companion DISPATCH signatures and GPU-scaled indirect arguments for split-chunk shaders), plus a small split == 1 && mv <= cap fix on top of Recompiler: the mesh pass-through budget accounts DXC’s vertex chunks #304.
      • Verified live on RX 9070 XT: 9 / 9 gpu_pso_e2e tests passing (including synthetic single-chunk and split-chunk direct & indirect DispatchMesh pixel readbacks and 7 / 7 retail MS+PS pipelines).
    3. Stub audit (confirming slot 101 and the other per-frame stubs are not starving the watchdog):

      • Independently verified CommandList slot 101 passes (list, 2, 1) / (list, 2, 0) with an ignored return value (matching the findings above).
      • Also confirmed via static disassembly that the remaining per-frame stubs do not drop draws, copies, or GPU barriers: CommandQueue slot 31 is the copy-queue page-mapping helper paired with XMemMapPhysicalPagesScatter (already handled by XCL's sparse mapping hooks), CommandAllocator slot 9 registers an Xbox segment-grow callback, CommandList slot 75 takes a 1-bit PSO boolean, slot 142 takes a 64-bit CU occupancy mask, and slots 131 / 132 are init-only PM4 buffer sizing calls.
    4. DirectStorage 0x89240009 (1,986 -> 0) + commit/VRAM pressure & lock fixes (dstorage.rs, kernelx.rs, lazy.rs, vram.rs, sparse.rs, real.rs, uma.rs, eh.rs):

      • Eliminated the 1,986 DirectStorage E_ACCESS_VIOLATION burst by: (a) deferring QueueInner's capacity / 2 auto-submit when pending physical-page entries are still unready, (b) refreshing reused non-zero physical-page table slots on write_physical_pages failure (not only zero entries), (c) inserting into PHYS_BLOCKS before publishing page numbers, and (d) making lazy::commit() run VirtualAlloc(MEM_COMMIT) before removing a page from LAZY (same root cause as kernelx: a lazy physical page whose commit fails leaves the lazy set, silently #467).
      • Added fence-safe 64 MiB idle heap retirement and reclaim_idle() to vram::Pages (which otherwise climbed past 9.9 GB / 155 pools on 16 GiB VRAM), cleaned up texture_memory() reservations + LAZY ranges on Release, added reclaim + a 30 s deadline to BIG_COMPILES::wait_for_commit(), refactored sparse::readback_now() into a 3-phase flow that drops STATE across the GPU fence wait, and added frame validation + VEH-guarded recovery around RtlVirtualUnwind in eh::dump_threads() (which previously faulted at ntdll.dll on live mutating thread stacks).
      • Added pure-Rust 8-mode / 285-config BC7 + parameterized BC3 / BC4 / BC5 BCPack modules plus the lanes.rs flushed-fragment zero-restoration fix (bc1-1-8 passes; retail BC7 still hits ~190 cross-mode/preset refusals without unpublished preset tables).

    (Note: we also saw #504 on #486's LAST_CONTENT invalidation bug and are folding that fix in before our next combined run.)

    We'll report back once the combined build (Two-Pass DispatchMesh + async/cached compute PSOs + pool retirement) runs past Frame 797. Happy to open clean, individual PRs for any of the items above.

    AI use: analysis, implementation, and tests assisted by Antigravity (Gemini Pro) on AMD Radeon RX 9070 XT; zero game files or binaries included.

  11. theswiss24 commented on Nov 24, 2026

    @theswiss24

    Another data point for the world-loading stop, on an RTX 4070 (12 GB), with #435 applied.

    Setup: RTX 4070 12 GB (32-lane waves), driver 621.24; i9-9900K (clwb/clzero emulated); 48 GB RAM; Windows 11 26300. Release build of main 7ebf1b8 plus open PRs #300, #321, #468, #463, #451, #510, #487, #490, #348, #522 and #435. Run with XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DXC_THREADS=4.

    Same stop. unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) at 134 s, about 20 s after the world's ambient audio starts, with the screen blank. This matches the watchdog reading above.

    #435 stops the memory growth before it. Without #435, the process's private bytes climbed about 4 GB every 30 s during world loading (10 → 29 GB in 2.5 min) and the stop came at 179 s. With #435, the XCL_ACTIVITY memory line levels off at about 28 GB committed (title textures 22,907 live, 40,150 uploads; target pages 9.6 GB; local video memory 14.0 GB on a 12 GB card) and stays flat for the last 20 s before the stop. So on this machine the stop is not an out-of-memory failure.

    Network: without XCL_NETWORK=0, the title's crash reporter uploaded its minidump after this stop (HTTP 200). With it, WinHttpConnect is refused, as intended. Worth repeating for anyone testing: always set it.

    Next here: pipelines are being pre-built (xcl shaders shaders.rpf --precompile --pipelines, NVIDIA shader cache set to Unlimited). I'll report whether a warm driver cache gets the main thread past the 30 s watchdog.

    Tested and written by Claude (Claude Code).

  12. 13hourstilliland commented on Nov 24, 2026

    @13hourstilliland
    Contributor

    A probe for "who stops feeding the watchdog", from a static read of the exe (1.0.2.1, RVAs only). It follows my comment above.

    When no timed scope is open ([+0x71b6334] == 0) the watchdog aborts after 30 one-second ticks without a change of the heartbeat at +0x71b6338. Only +0x22159f0 writes it. Its callers:

    • +0x1c82b67 / +0x1c82bc1, inside +0x1c82b20: a "wait and keep the heartbeat going" loop (heartbeat, some pumping work, Sleep, repeat until done). It has 20 callers, so blocking loads that go through it are covered.
    • +0x120799 (function +0x120790, no direct callers, so reached through a pointer) and +0xc9e368 (function +0xc9e350, one caller at +0xc9e334). Inferred: one of these is the per-frame tick.

    So the abort means the thread that runs the per-frame tick has been blocked for ~30 s outside that wait loop. That also fits @sperm's #533 run, where bounding compute waits did not stop it: something else blocks that thread.

    Probe, for anyone with a debugger or a vectored handler on the title:

    1. At the stop, read [+0x71b6334] (0 = this route).
    2. Put a hardware write breakpoint on +0x71b6338, log the return address (+0x120799, +0xc9e368, +0x1c82b67, +0x1c82bc1) and the thread id of each hit, and stop logging after a few seconds of normal frames.
    3. When it fails, the thread id of the last writer is the stalled thread. Its stack in XCL's thread dump names what it waits on.

    Also on main: @sub-north's 40b of address set stop. I opened #585 for it. It ends runs before this watchdog can.

    AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.

  13. MJ26gaming commented on Nov 24, 2026

    @MJ26gaming

    Same stop here

    Game and package version

    New Retail Game / 930.048.020

    What happens

    Environment

    • XCL commit: 508a0c7

    • OS: Windows 11 x64

    • CPU: AMD Ryzen 9 8945HS

    • GPU: NVIDIA GeForce RTX 4070 Laptop GPU (8 GB VRAM)

    • RAM: 32 GB DDR5

    • DXC: 1.9.2602.17 (21d28f72)

    • Build: Release with debug symbols

    • Game version: 930.048.020

    • Game executable: game_scarlett_master.exe

    Description

    The game successfully launches and renders its menus. Audio and GameInput are functional, and menu performance reaches approximately 30 FPS.

    When transitioning from the menus into gameplay, the game displays a loading screen before transitioning to a black screen. Shader compilation and audio decoding continue in the background, but the game eventually crashes.

    The crash is reproducible across multiple runs, with the same faulting instruction, write address, and call stack.

    Steps to reproduce

    1. Build XCL using cargo build --release --workspace.

    2. Launch the game through XCL.

    3. Navigate through the menus and attempt to enter gameplay.

    4. Observe the loading screen transitioning to a black screen.

    5. The game eventually terminates with exception 0xc0000005.

    Expected behavior

    The game completes loading and enters gameplay.

    Actual behavior

    The screen goes black and the game eventually crashes with a null pointer write.

    Crash information

    Unhandled exception 0xc0000005
    Module: game_scarlett_master.exe+0x23cf683
    Operation: write at address 0x0
    

    rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 rbp=0x0

    Stack: game_scarlett_master.exe+0x4e4ba89 game_scarlett_master.exe+0x2215c35 game_scarlett_master.exe+0x71b9a20 game_scarlett_master.exe+0x2215eca

    Exit code: 0xc0000005 (3221225477)

    Relevant warnings

    Numerous DirectStorage BCPack requests are refused because the compression modes are unsupported:

    DirectStorage: BCPack BC7: mode 7 unsupported
    DirectStorage: BCPack BC5: mode 5 unsupported
    DirectStorage: BCPack BC1: mode 1 unsupported
    DirectStorage: BCPack BC6H: mode 6 unsupported
    DirectStorage: a request failed (0x89240030)

    At least 2,048 BCPack requests were refused before the crash in one run.

    Other potentially relevant graphics warnings:

    D3D12.X: console shaders in the PSO without a translation:
    mesh pipeline with its MS in the AS slot – refused

    D3D12.X: a UAV of a resource that cannot have one on the PC (a depth buffer) – a null view

    buffer view in the console heap: the buffer is not in UMA – the shader gets an empty V# (num_records 0)

    D3D12.X: CopyMemoryToMemoryX: ... is not in unified memory – not done

    The following unimplemented functions were also called:

    Interface | Slot | Calls -- | -- | -- ID3D12CommandAllocator | 9 | 2206 ID3D12GraphicsCommandList10 | 142 | 2166 ID3D12GraphicsCommandList10 | 75 | 2089 ID3D12GraphicsCommandList10 | 126 | 2088 ID3D12CommandQueue | 31 | 284 ID3D12GraphicsCommandList10 | 101 | 12 ID3D12GraphicsCommandList10 | 131 | 8 ID3D12GraphicsCommandList10 | 132 | 5

    Slots 131 and 132 had identical call counts and calling locations across two consecutive runs.

    Shader statistics

    • Unique shaders: 19,214

    • Xbox-native shaders: 19,099

    • NGG hardware-stage shaders: 6,685

    • RDNA2 instructions decoded: 37,858,913

    • Undecoded instruction words: 0

    • Xbox shader parsing errors: 0

    Compute pipeline compilation continues until immediately before the crash.

    Additional testing

    • Rebuilding XCL from the latest source did not eliminate the gameplay crash.

    • Repairing Windows Gaming Services did not resolve the issue.

    • Shader caches were retained between runs.

    • An earlier build (3516080) crashed during the gameplay transition with an invalid memory read inside VCRUNTIME140.dll, with XCL functions on the stack. After updating to 508a0c7, the crash changed to the reproducible null pointer write described above.

    • I also have an RX 9070 XT available for comparison. Testing through Wine has been substantially slower, and native Windows testing on that GPU is still pending.

    I have not established whether the BCPack refusals, unsupported graphics operations, or another issue directly causes the crash.

    I can provide additional logs, debugger output, and hardware comparison results if useful. Note that this comment report was generated by AI. I have reviewed it though.

  14. emirduran707 commented on Nov 24, 2026

    @emirduran707
    Contributor

    How long the title's compute programs take in DXC, for the resolve_wait lead above: every compute program of the pack compiled once, offline, the way a title's pipeline translates it.

    Run: xcl shaders <the title's shaders.rpf> --precompile --only cs (main a6f5f7a code for the recompiler; the build had #440 / #300 / #435 merged, which do not touch it), with a local timer around each program's pso::console_to_dxil_in (not committed). RX 9060 XT machine, Ryzen 5 5600 (6 cores / 12 threads, 11 DXC threads), DXC 1.9.2602.17, 4 memory windows, an empty DXIL cache.

    compute programs 2 689, all compiled, 0 errors
    DXC time, summed 35 216 s (2 721 s wall on 11 threads)
    programs over 10 s 973
    programs over 26 s 632
    slowest 325.6 s, 322.5 s, 290.8 s, 263.7 s, 253.1 s (the top 10 are all over 179 s)

    So once the world streams in, any of hundreds of compute programs that is not in the DXIL cache yet holds every Dispatch of it for longer than the title's ~30 s heartbeat. The cache never gets them either: the process ends at the watchdog before those compiles finish, so the next run waits for the same ones. This machine's DXIL cache now holds all 2 689; I'll check whether the stop goes away with a warm cache when I can drive the menus again, and post the result here.

    Related: #174 (DXC time of compute programs: linked memory accessors), #267 (a time limit, for draws), and xcl shaders --precompile as a workaround that already exists.

    AI use: Claude Code with Claude Opus 5.5 ran the compile and wrote this comment from my run.

  15. vibryxcx commented on Nov 24, 2026

    @vibryxcx

    An RDNA2 on Windows data point (the reports so far are NVIDIA, RDNA3 and RDNA4), on an Intel CPU that needs the console-instruction emulation: the same stop, at 275 s, with the same pipeline backlog. A second run back to back got past that point and ran into system memory instead.

    Setup: AMD Radeon RX 6800 16 GB (RDNA2, native wave64), driver 32.0.21045.5002; Intel Core i5-10600KF (Comet Lake; clwb / monitorx emulated); 32 GB RAM; Windows 11 build 26200. Release build of plain main 9ce2070, DXC from XCL_DXC_DIR. XCL_NETWORK=0 XCL_ACTIVITY=1, XCL_PRESS_A_AT=14,17,21,125,131,…,197 (A at 14/17/21 s, then every 6 s from 125 to 197 s, as @requiemsnkrp walked the menus). Run limit 600 s.

    Run 1: the same stop.

    • unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) at 275.0 s, rbx=0x0, rcx=0x70024c348 (the heartbeat path, as above).
    • The title's crash context: Game State: Game Running, Game Running Time: 0h:4m:1s, Frame: 3490, Streaming Requests: 4387, TileHeap: used (1600Mb) - total (6236Mb).
    • From the activity (2 s) lines: 60 presents per 2 s up to 191 s, then 12 at 200 s, 3 at 210 s; the last submit at 244 s, then none for 32 s until the stop.
    • report.json at the stop: background_pipelines: [14, 0, 58745] – 14 built, 0 failed, 58,745 still building, close to the RTX 3060's [46, 0, 58715]. So native wave64 does not avoid the backlog here.
    • The thread dump at the stop: the 11 xcl-pso-* workers are all waiting, as in @Simon-CR's RDNA4 dump. One title thread (22808) is running in xcl.exe (top frame xcl.exe+0x1c8454, called from game_scarlett_master.exe+0x4ecc821). I have not symbolized it.
    • Memory (memory: lines): commit 16.3 GB at 150 s, 21.3 GB at 210 s, 28.1 GB at 270 s; local video memory 6.9 → 11.4 GB on the 16 GB card.

    Run 2, right after run 1: past 275 s without the watchdog.

    • Same build, same command. The activity looks the same up to the drop (60 presents per 2 s at 191 s, 2 at 201 s), but presents and submits do not stop for 30 s: there are a few every 20–40 s (last submit at 339 s).
    • No watchdog abort. The run was ended by my own runner at 353 s, when free system memory fell below 1 GB: commit 30.3 GB at 301 s and 32.5 GB at 331 s on the 32 GB machine.
    • The process was killed, so its report.json was not written at the end and I have no pipeline counts for this run.

    I cannot say the second run lived longer because of a warmer cache: run 1 built only 14 pipelines before it stopped, and @emirduran707's numbers above put the pack's compute programs at many hours of DXC time. It may just be variance in when the main thread stalls. What it does show on this machine is that once past the stop, the memory growth (about 4 GB every 30 s, like @theswiss24's runs without #435) is the next limit on 32 GB.

    Not tested: #435 or any other open PR; a run with the pipelines precompiled (xcl shaders … --precompile --pipelines); more than one run of each; symbolizing thread 22808.

    AI use: Claude Code (Claude Opus 5.5): ran the tests and wrote this report.

  16. 200 remaining items

  17. gefydev commented on Nov 25, 2026

    @gefydev
    Contributor

    @not-rex thank you, this is the measurement we were missing. Noted (RTX 3080, main cbc296ab + #1766, one run per form, last cumulative table at ~225 s): GPU time 19,616 ms in the HLSL form against 18,182 ms with XCL_DIRECT_DXIL=1; the heaviest program 71f4ac8ad5eba33c costs about the same per call in both (~60 ms and ~66 ms) with the direct form's worst call about 40 % shorter; a9f2cd53943d5dc4 drops to about 1-2 ms per call with the window out of the way; 50625695d2e6cbe7 and 206ed63b96be21a1 did not run.

    The XCL_PER_LANE=1 run crashed in VCRUNTIME140.dll+0x10a66 at 66.9 s, before the world. I have passed that to the session that writes the code. If the log has a panic message, a per-lane / direct DXIL fallback line or the last few lines before the crash, please post them (no game data or folder names).

    AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

  18. gefydev commented on Nov 25, 2026

    @gefydev
    Contributor

    @not-rex a follow-up on your measurement. With the coherent window out of the way, the split-wave64 programs are no longer the problem (a9f2cd53943d5dc4 at 0.5-1.7 ms per call instead of 3.1 s), and the per-instruction form's GPU time is close to the HLSL form's (18.2 s against 19.6 s). So we will not optimize the split form for now.

    On the XCL_PER_LANE=1 crash: a run here on main 3da2abb with XCL_DIRECT_DXIL=1 XCL_PER_LANE=1 (180 s, menus only) ran to the end, with only the expected fallback lines, so one crash does not show a per-lane bug yet. VCRUNTIME140.dll in your stack is the title's own copy, so a fault in its copy routine is title-side; #646 reports the same kind of crash without per-lane. If you can rerun the per-lane form once and it crashes again at the same place, please post it, together with any panic message, per-lane / fallback line or the last lines before the crash (no game data or folder names).

    AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

  19. chazi123 commented on Nov 25, 2026

    @chazi123

    RTX 3060 Laptop 12 GB / Win10 19045 / 32 GB RAM: the ~49 GB commit OOM is gone on current main with XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1; the world now starts streaming, and the remaining stop on this card is VRAM oversubscription (14.5 GB local on a 12 GB part).

    Setup: Xeon W-1250 (6C/12T), 32 GB RAM, RTX 3060 Laptop 12,288 MiB (driver 610.88, 32–32 lanes → every wave64 program split), Win10 19045, commit limit 65.8 GB (2 GB C: + 32 GB E: pagefile). Retail 1.0.2.1, XCL_NETWORK=0. Agility 1.620.2.

    Tree: main 6020a33 (11-25) + #488 + #929 + a local Win10 ABI / root-signature downgrade + a local env-gated coherency mirror (XCL_COHERENT_MIRROR, default on). Env: XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 XCL_ACTIVITY=1 XCL_BIG_COMPILES=2, and XCL_PSO_WAIT_MS=50 for the world arm.

    1. The commit balloon was the old memory path, not the mirror. On main 17216a14 (no XCL_HEAP_WINDOWS / XCL_DIRECT_DXIL in that tree) with XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512, commit grew to 48.5–49.2 GB and ended in memory allocation of 2211840 bytes failed, with only ~8.7 GB accounted (target pages 3.6 GB + arenas 0.46 GB + sparse 1 GB). Toggling our coherency mirror off changed nothing (49.2 GB), so the mirror is not the cause. On current main with XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 the same coherent settings keep commit at ~16 GB at the menu, no OOM, and 0 Wait64BitValueX timed out, 0 did not complete within, 0 cycle-break warnings.

    2. Menu/intro is stable but CPU-bound here. After the cold intro compiles (a ~20 s 0-FPS burst, 36 pipelines), the menu holds 13–14 presents / 143–165 draws per 2 s (~6–7 fps) with 0 frame-event timeouts. This matches @lucsoft's "30 fps menus with coherent=0" on a 9800X3D; our 6C part is the difference, not a stall.

    3. The world starts, then oversubscribes. After A, DirectStorage ramps (1,265 requests / 97 MB in one 2 s block, 255 dispatches/2 s), then video memory reaches 14,569 MB local on a 12,288 MiB part (+1.1 GB non-local), presents fall to 0–1 per 2 s while dispatches continue (81–103/2 s), and commit reaches ~30 GB. One queue.Wait 5 s timeout, no device removal, no watchdog suicide in this arm. So on a 12 GB card the next wall after the coherent fix is texture/heap placement, not synchronization.

    4. Static confirmation of +0x23cf683 (capstone/pefile on the 120,181,760 B executable): it is mov dword ptr [0], 0x4D8BD421, a deliberate trap, reached from a handler installed into CRT slot 0x71B6348 by 0x23cf6a0; the caller 0x2215acc loads ebp=0x1e (30) and kills after 30 one-second ticks with no progress-counter change, setting the Breakpad key whose decrypted name is "GPU Loc Sig". The crash-stack return +0x4e4ba89 matches 0x2215c16 call 0x4e4ba80. So the recurring +0x23cf683 is the title's own ~30 s GPU watchdog, as this thread concluded; the constant is 30 and the value is a hash of a sorted dword array (reproducible per state, e.g. 7333478d).

    5. Precompile gotcha worth documenting: on a fresh tree, xcl shaders <pack> --precompile --pipelines refuses everything with 0x80070057 (E_INVALIDARG) until D3D12\D3D12Core.dll (Agility) is placed next to the exe; without it the device reports SM 6.5 and every cs_6_6 DXIL is rejected. With it, 75 made / 0 refused.

    Question for the thread: what is the recommended placement for a 12 GB VRAM / 32 GB RAM / split-wave64 card to get the world past the 14.5 GB-local oversubscription — #1702-style texture pages in system memory, the compact form (#1315/#1316), or a smaller XCL_UMA_MB? Our CS cache is only partially precompiled (537 driver blobs of 2,689 CS), so cold builds also contribute; a full --only cs --pipelines warm pass under XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 is our next step, per @kanade333.

  20. gefydev commented on Nov 25, 2026

    @gefydev
    Contributor

    @chazi123 thank you for the measurements on the RTX 3060 Laptop (12 GB): on current main with XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 the commit stays near 16 GB at the menu with no OOM, and the world then oversubscribes video memory (14,569 MB local on a 12,288 MiB part) with presents falling to 0-1 per 2 s. Noted, together with the D3D12Core.dll precompile note. I cannot answer your placement question (texture pages, compact form or XCL_UMA_MB for a 12 GB card); I have passed it to the session that writes the code.

    If you can also run the split-wave64 GPU-time request above (XCL_GPU_PROFILE in the three forms), @not-rex's numbers are on a 10 GB card with the coherent window off; a second card would help.

    AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

  21. chazi123 commented on Nov 25, 2026

    @chazi123

    @chazi123 thank you for the measurements on the RTX 3060 Laptop (12 GB): on current with the commit stays near 16 GB at the menu with no OOM, and the world then oversubscribes video memory (14,569 MB local on a 12,288 MiB part) with presents falling to 0-1 per 2 s. Noted, together with the precompile note. I cannot answer your placement question (texture pages, compact form or for a 12 GB card); I have passed it to the session that writes the code.main``XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1``D3D12Core.dll``XCL_UMA_MB

    If you can also run the split-wave64 GPU-time request above ( in the three forms), @not-rex's numbers are on a 10 GB card with the coherent window off; a second card would help.XCL_GPU_PROFILE

    AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

    @gefydev here is the second-card measurement you asked for, on the RTX 3060 Laptop 12 GB (driver 610.88, 32–32 lanes → every wave64 program split), Win10 19045, Xeon W-1250 6C/12T, 32 GB RAM. Tree: main 6020a33 + #488 + #929 + #1766 (applied clean, no bind.rs conflict on this base) + local Win10 ABI / env-gated coherency mirror. Env: XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 XCL_GPU_PROFILE=1 XCL_ACTIVITY=1 XCL_BIG_COMPILES=2 XCL_PSO_WAIT_MS=50, A scripted at 30–120 s. One form only (XCL_DIRECT_DXIL=1); HLSL and XCL_PER_LANE=1 arms not run, for the reason below.

    World, cumulative since start (partial window, ~150–230 s; the run was capped by a memory guard, see limitation):

    # program threads / form GPU ms calls longest call
    1 CS 80f65d1925a2df48 64x1x1, wave64 split 1290.8 223 479.1 ms (7635x1x1 groups)
    2 CS 44d832b4bdbd5ef8 1024x1x1, wave64 split 445.8 112 36.0 ms (8x1x1)
    3 CS be262edda389c646 64x1x1, wave64 split 277.5 467 11.2 ms (179x1x1)

    World, last 2 s block (137–194 ms of GPU time in ~460 ops, 6,400–6,700 ops in flight): the per-call leaders here are wave32, not split — CS 02eaed46a92d4c93 59.1 ms/32 calls (longest 8.2), d22f746890686a68 40.6/57 (4.8), 73ffa0b705ae2cc0 30.3/32 (1.6); the split-wave64 rows in the same block are cheap per call: 20c629c82e9687b4 21.2 ms/82 (longest 0.9), aa35926a5609067b 7.1/22 (1.6), 8ae101406edc576d 7.0/22 (1.6).

    Reading vs @not-rex's 10 GB table: with the coherent window off, split-wave64 per-call cost is mostly ≤1.6 ms here too, confirming his conclusion that the window, not the split form, was the cliff. But our cumulative heaviest is 80f65d1925a2df48 (the program he lists at 347 ms/2,899 calls HLSL, 824/5,109 direct), not his top 71f4ac8ad5eba33c — and it is dominated by a few enormous-group calls (9,017 and 7,635 groups, 479–565 ms each) rather than by many small ones. 71f4ac8ad5eba33c did not reach our top rows in this window. So on 12 GB the residual world cost concentrates in one split program's huge dispatches, which is a different shape from the 10 GB card.

    Menu stage (same tree/env, before A): 13–14 presents / 143–165 draws per 2 s, commit ~16.5 GB, video 6.7 GB local; heaviest split CS at menu 1e32f25121c1552f 43.7 ms/393 calls, longest 0.3 ms; the 2 s GPU leaders are VS/PS draws (68.5 / 65.3 / 32.1 ms).

    Limitation, stated plainly: this box has 32 GB RAM and a 65.8 GB commit limit. Once the world streams, video local reaches 14,569 MB on the 12,288 MiB part and process commit climbs past 29 GB with heavy pagefile churn; a 20 GB guard was intended but my guard script had a bug (multi-process array) and I killed the run manually at ~29 GB, so the world table is a partial window, not a full 300 s, and only one shader form was run. I am not running further heavy arms on this machine without a hardware change; happy to re-run HLSL / PER_LANE or a longer world window if the thread can suggest a placement that keeps commit under ~20 GB on a 12 GB / 32 GB box (texture pages in system memory, compact form, or a smaller XCL_UMA_MB).

  22. gefydev commented on Nov 25, 2026

    @gefydev
    Contributor

    @chazi123 thank you, this is the second card we asked for. Noted (RTX 3060 Laptop 12 GB, XCL_DIRECT_DXIL=1 only, a partial window of about 150-230 s, stopped by hand at about 29 GB commit): split-wave64 per-call cost is mostly 1.6 ms or less, and the residual world cost concentrates in 80f65d1925a2df48 (1,290.8 ms in 223 calls, with a few huge dispatches of 7,635 to 9,017 groups at 479-565 ms each). I have passed the numbers to the session that writes the code. No need to run the heavy arms again on that box.

    AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

  23. tiagonleal commented on Nov 25, 2026

    @tiagonleal
    Contributor

    @gefydev two facts for the split-wave64 GPU-time request, from an RTX 5070 Ti 16 GB / 32 GB RAM (driver 32.0.16.1742, Ryzen 7 9800X3D, Windows 11 Pro 10.0.26300). Tree: #2057 at f7e08e6 (contains #1766), release.

    1. For 50625695d2e6cbe7, 206ed63b96be21a1 and a9f2cd53943d5dc4 the per-lane arm cannot differ from the direct arm. With XCL_DIRECT_DXIL=1 XCL_PER_LANE=1 the per-lane form refuses all three and the runtime falls back to the split DXIL, byte for byte the same as with XCL_DIRECT_DXIL=1 alone (I compared the dump of xcl shaders <pack> --direct --hash <h> --lanes with the entries in the translated cache of the game runs; the driver blobs are the same files).

    • Refusal, the same for the three: a branch on whether any lane of a mask is set, with lanes in EXEC without its bit (lane_masks.rs:921). In the split form whole-wave branches are switched off (lower.rs:1176-1177, through whole_needs_exchange); with the split off, the survey passes that check for the same programs. It is not the only obstacle: behind it the survey still lists image instructions with NSA addresses for all three, and one structural refusal ("a number read as a mask") for 50625695d2e6cbe7.
    • 4097cf4856634349 (wave32, not split) is refused on unsupported IMAGE_LOAD, reading an NSA address register the bridge did not pass; that looks like what Recompiler: image instructions name the registers they use #1797 fixes.
    • Static counts in the split DXIL that runs today (dxc -dumpbin): per iteration of the loop with the > 9999 exit, 162 GroupMemoryBarrierWithGroupSync in 50625695d2e6cbe7 and 72 in 206ed63b96be21a1; a9f2cd53943d5dc4 has no such loop (two loops of 2 trips, 90 barriers each).

    2. I could not fill the missing row: 50625, 206ed and a9f2 did not run here either. Two runs of 300 s with XCL_GPU_PROFILE=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, compute pipelines precompiled, A at 30 s: the world (first #101) came at 74.2 s and 80.6 s. The first run made no more submits from 86 s while graphics pipelines were still compiling in-game; the second rendered on (21,407 dispatches in 90–100 s) and ran out of physical RAM at about 108 s (working set 19.4 GB), where my memory guard stopped it. None of the three programs is in any profile table. The heaviest entries the 2 s windows did log in the world (90–96 s, window off): CS 24de2aef6c31d55e 823.6 ms in 24 calls (longest 135.9 ms, 79,304 groups), CS d79af1d04922a49b up to 99.7 ms per call, 71f4ac8ad5eba33c 22.6 ms per call. The memory numbers are in my report on #2057.

    Not tested: the HLSL form; the per-lane form in a game run; more than 2 runs. The game runs had two local, unpublished switches on (XCL_EXP_WAIT_SUBMITTED=1: the GPU-wait watchdog keeps a wait whose Signal is already submitted, 0 holds logged; XCL_EXP_APU_MAP1=1: ApuMapVirtualAddress in its one-argument form). The translator is the PR's, unchanged.

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

  24. gefydev commented on Nov 25, 2026

    @gefydev
    Contributor

    @tiagonleal thank you for the two facts and the runs (RTX 5070 Ti, #2057 at f7e08e6). Noted: with XCL_DIRECT_DXIL=1 XCL_PER_LANE=1 the per-lane form refuses 50625695d2e6cbe7, 206ed63b96be21a1 and a9f2cd53943d5dc4 on the whole-wave branch rule in the split form and falls back to the same split DXIL as the direct form, so a per-lane arm cannot differ for them; and none of the three programs ran in your two 300 s runs either. I have passed it to the session that writes the code. No need to run more arms for these three.

    AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

  25. PracticalStudios commented on Nov 25, 2026

    @PracticalStudios

    On an RTX 3090 (24 GB, driver 621.24, 62 GB RAM), most huge driver compiles during the world load skip the big-compile gate because the title is waiting for them. Up to 15 were in flight at once, and process commit kept climbing until the run hit my 38 GB job cap.

    Setup: main cbc296a + #684 + #2120, release, with XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_PSO_WAIT_MS=50. One 300 s run with scripted A presses.

    • Presents: about 60 per 2 s until 74 s, then 0–3 per 2 s. Frame dumps show only the loading screen. The #101 stub is first called at 79.5 s.
    • Commit: 19.1 GB at 70 s, 29.9 GB at 102 s, 38.8 GB at 242 s. The run ended there, at the job cap I set, so the end itself is mine.
      • 70 → 102 s: this rise tracks texture pages. Target pages go from 4.6 to 10.0 GB, sparse pools from 1.0 to 2.0 GB, local video memory from 7.7 to 14.3 GB.
      • 160 → 242 s: this rise comes while pools and video memory are flat, with 10–15 huge compiles in flight on title threads (0.3–1.0 MB of DXIL each). real.rs puts each at about 1.5 GB in the driver. I did not measure each compile's own commit.
    • Huge compiles:
      • 77 of the 93 logged huge compiles finished as wanted at once (no slot), so they skipped both the slot limit and the commit headroom check in big_compile_turn. Only 16 were gated.
      • The bypass is deliberate: holding back a build the title waits for holds the title back. But with the 50 ms pipeline budget the title moves on and asks for the next pipeline, so more of these are wanted at the same time.

    I have not tried any change to this. It may matter for #2130 and #2098, which touch the same gate.

  26. gefydev commented on Nov 25, 2026

    @gefydev
    Contributor

    @PracticalStudios thank you for the RTX 3090 run (main cbc296a + #684 + #2120, 300 s): 77 of the 93 logged huge compiles were "wanted at once" and skipped the slot limit and the commit headroom check, up to 15 were in flight, and commit rose from 29.9 GB at 102 s to 38.8 GB at 242 s while pools and video memory were flat. Noted as measured, including that the end is your job cap. I have passed it to the session that writes the code; your note about #2130 and #2098 is on the thread for their authors.

    AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    goal:world-load

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions