D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge) #2057
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2057
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2057"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@theaustinayers on GitHub · 2026-11-25 02:16 UTC · original
theaustinayers:integration/nvidia-world→main· +9547 −1149 · 48 files · 87 commits · draftDraft, 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
mainat568e7db.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:
XCL_UMA_SHADOW=1)globallycoherenton compute memory windows only when the program needs itXCL_GPU_PROFILEAutoSubmitDisabledwaits forSubmittitle_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 hangsmainsince: #1747, #1791, #605New commits, each to become its own PR or a note on the PR it changes:
16826cb,3877446,c28d531the counts of an ExecuteIndirect are read by a program of XCL's before the GPU runs them;f98a1d6#2052's rule for title fences;0d25b89the console's cache flushes (list #131, #132, FlushPipelineX) are UAV barriers;dc651eaa tile a placed buffer uses stays mapped70a160e,0764a57on #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);6112bd8on #1792 (a page with data is told to the sparse windows before its bytes come: a look in between dropped them);f659f75the mapped runs and the pieces to clear are kept in order;77be198a thread that maps memory lets waiting submits have the sparse lock first (171 ms median wait → 0.14 ms in a test);04c2fe7a texture whose memory is not all there is read region by region80dc4dcsmall CPU writes go up in one dispatch;73fc616,0b66349,b659291,f064c82the parts of a texture that changed go up, through lists and buffers that are kept, in order across queues;a261e72what a file read puts into graphics memory is a known write;55e58c3readableasks the working set6e7040b,2987c19what each recorded call looks up is kept in parts with a lock each;680a719,0ba3b8clast releases7c18bc4and after it (blocks written lately, a thread walks the rest; off withXCL_WATCH_HOT=0). Not strict: a write to a block that was idle reaches video memory up to about 20 ms late.a004fe7XCL_LOOK_AHEAD=ms(off; known gaps, see its commit)414adb2one device is opened at a time (two test threads made two and opened the memory windows for each)9baaa6fa compute pipeline's driver blob reaches the disk cache although the memory store is full;5ea55e2XCL_PRECOMPILE_SLICE=i/n1225bb9,5e3c657,b5e8bafon top of #1993XCL_ACTIVITYcall times,XCL_LOOK_STATS)Tested
cargo test --release -p xcl --lib -- --test-threads=4at4df1e6e: 1145 passed, 4 failed, 26 ignored. The 4 aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3(the driver answers E_OUTOFMEMORY to CreateComputePipelineState); they fail the same way onmainwith this card. SKIPPED: the tests that need 64-lane waves.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.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:Regression run
Not tested
AI use
🤖 Generated with Claude Code
readableasks the working set for ranges of any size 55e58c35c7cbc296a) into the NVIDIA world integration d4a31c1ed16987e49) into the NVIDIA world integration 1117fa2d49f5c5bdf) into the NVIDIA world integration 41303e4166@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.
f6efbc8, the parent of the per-queue changef862f5f, initial reference head39c2eeb, updated reference headCherry-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.@not-rex on GitHub · 2026-11-25 03:38 UTC · original
RTX 3080 (10 GB, driver 610.88), this draft at
f862f5f9as 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:
f862f5f9unchanged (it contains #1329, #1850, #1993, #1766, #1983, #1599). Warm caches and save from earlier HLSL-path runs (so theXCL_DIRECT_DXILpipelines are all new here), A at 30 and 40 s, 600 s, noXCL_PSO_WAIT_MS.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512ListX #101#101So with cold
XCL_DIRECT_DXILcaches the title blocks on its first pipelines, as you'd expect from the description; I didn't get to a HUD. The 0 failed DirectStorage requests fit #1599's effect (my earlier HLSL-path runs had 10-849 per run). A run on caches prebuilt for the direct-DXIL path would be the fair comparison; at this machine's build rate that's several hours, so not tonight.AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine through a scripted runner and wrote this report.
@HKEY-Funk-Machine 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=1removes 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 atf862f5f), with one local change inxgameruntime/api.rs(a start-up hang on this machine; run withXCL_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, noXCL_DRED(it keeps the driver from taking cached pipelines, per #1323).1.
XCL_UMA_SHADOW=1(atf862f5f): 2 s in, before the first frame,UMA not available to the GPU: CreateHeap (window 3, 4095 MB of video memory): … suspended (0x887A0005), thendevice removed: 0x887a0020(driver internal error) and the title's0x80000003at+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/4withXCL_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. WithXCL_PIPELINE_THREADS=3 XCL_DXC_THREADS=10and #1774'sXCL_PIPELINE_MAX_KB=1536cherry-picked into a separate build used only for the precompile (the translator unchanged), they finished without hitting the cap.8ff4b02)XCL_SKIP_CS(withXCL_GPU_PROFILE=1)ListX #1010x887a000639f23deaf6a633108e0da70f49ca611c, 8×8×1, 160×90 groups, 16 KB DXIL, "RUNNING for 517 ms and not finished"39f23deaf6a63310,8e0da70f49ca611c6da1f38b06d6c735, 64×1×1, 3 099 groups, 155 KB DXIL, "RUNNING for 1 607 ms and not finished"0x80000003at+0x2474606.39f23deaf6a63310is the program DRED put the hang in onmain(#675, 7150865142). On this branch, with it skipped, the profiler shows8e0da70f49ca611crunning 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.Wait64BitValueXtimeouts: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.
@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.@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:
8ff4b02with0d25b89cherry-picked on top (its runtime part; the test hunk conflicted with the test module at8ff4b02and I left it out). One local change inxgameruntime/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).ListX #101)8ff4b020x887a0006at 120–154 s, ~30 s into the world load8ff4b02+0d25b890x887a0006at 172–184 s in those three; the fourth hung at 108 s before world loading (2 048 dispatches, nothing skipped)0d25b89the 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.main, @madaraXor's RX 6700 XT got past it with39f23deaf6a63310andb78fa10b425b8e54refused (#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 head41303e4(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.
@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 compared14d7a3c+ #751 (59f8e7c) with the same build plus just0d25b89. I relocated the upstream test to fit that base and added one log at the first eligible range flush.cache_flushes_are_uav_barrierspassed 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_LOSTon 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
ExecuteIndirectguard reported that its program did not compile. I independently passed the unmodified string returned byindirect_guard::program()to Proton'sd3dcompiler_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 forLoad. 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 06:09 UTC · original
Tested a fix for the Proton
ExecuteIndirectguard compilation failure on41303e41661f0dc741737f8a59d328892fdd772c: keepD3DCompileas the first choice, then use XCL's DXC compiler withcs_6_0if 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 bothan_execute_indirect_with_garbage_counts_draws_nothingandan_execute_indirect_with_garbage_counts_runs_no_groupspassed (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
AI assistance: Codex (GPT-6.2 Astra) wrote the fallback, ran the builds and tests, and checked the capture.
@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 --libfilterauto_submit_disableda_destination_page_rewritten_after_enqueuecache_flushes_are_uav_barriersAll 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
0d25b89tomainat6020a33. The only patch conflict was the test insertion context inlist_x.rs. After relocating that test and adding a slot-table check for old/new slot 69, new slot 71, and slots 131/132, thecache_flushfilter 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
mainwith both fixes. On the same Windows setup, I applied #1405 atbb27ed6and #1599 at5b1518ftogether tomainat6020a33.cargo test --offline -j 2 -p xcl --lib hle::dstorage:: -- --test-threads=1reported 33 passed, 0 failed, 0 ignored in each of two runs (XCL_DSTORAGE_PARALLEL_DECOMPRESS=0and=1).XCL_SAMPLE_BCPACKwas 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
41303e4tests above cover the persistent-list case. That revision lacks the newer stack-list check, and applyingbb27ed6directly to it conflicts indstorage.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=1passed 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).
@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
41303e4andf7e08e6, unchanged.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_NETWORK=0, scripted A presses,XCL_FRAME_DUMP=90.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.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, bugcheck0x13A(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.0x887a0005at 375 s.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,0x887a0005at 173 s.f7e08e6, three runs:0x887a0005at 127, 135 and 119 s, each just as the loading artwork fades. Local video memory before the removal: 19.4 GB withXCL_UMA_SHADOW=1; without it the peak is 14.8 GB but the removal comes at 119 s all the same. Nonvlddmkmevent in the System log for these removals (there is one for each0x887a0006hang below), andGetDeviceRemovedReasongives0x887a0005itself. WithXCL_GPU_PROFILE=1, the op still running 0.8 s before one of them wasCS 1b5466f261a70cde(8x8x1, split wave64, 160x90 groups), the slow program already listed on #505; one sample.41303e4: its 40 AS-slot mesh pipelines are translated instead of refused, but this tree never runs a two-pass pipeline (they reachexecute_indirect's PC path with the title's root signature):XCL_GPU_PROFILEshowsExecuteIndirect with a PC pipeline … RUNNING for 7774 ms, then0x887a0006(2 of 2 runs, before the world). With #2092 merged on top as well, two-passExecuteIndirect(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 onf7e08e6(the sharded list state inbind.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;
f7e08e6with #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.
@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 --pipelineswith yourXCL_PRECOMPILE_SLICE=i/12in 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: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.On
mainthis 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 theXCL_WATCH_HOTpart ("a write to a block that was idle reaches video memory up to about 20 ms late"), but I haven't run withXCL_WATCH_HOT=0yet.Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Update, two more runs on the same caches:
XCL_WATCH_HOT=0): crashed at 93.3 s intitle_textures::subresources(memcpy read at0xce8bf8000). That is the detile race of #1359 / #751, whichmainhas too, so one crash does not tie it to the setting.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+0x2474606int3 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_DREDwas not set).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 VA0x0, 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.@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
f7e08e6plus 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 whoseSignalis 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:ApuMapVirtualAddressis 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.f7e08e6. The translator sources andTRANSLATOR_VERSION(10) are identical to41303e4.cargo test --release -p xcl --lib -- d3d12x::list_x d3d12x::fence_x d3d12x::sparse hle::acphal gpu::fence.--test-threads=1: 68 passed, 0 failed, 1 ignored.f7e08e6hangs the same way:list_x::tests::cross_queue_cycle_and_same_queue_fifo_do_not_deadlockcross_queue_wait64_before_signal_does_not_deadlock_submit_threadmid_list_write64_wait64_split_avoids_cycle_and_reuses_spareswrite_buffer_immediate_on_open_existing_heap_visible_to_cpusparse::tests::a_copy_back_does_not_wait_for_the_title_queuesmall_runs_go_up_in_dispatches_and_leave_what_lies_between41303e4the same filter passed in parallel (67 passed, 0 failed, 1 ignored).Caches
xcl shaders <pack> --precompile --only cs --pipelines, first with--used-only(the used list came from earlier runs), withXCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1.XCL_PRECOMPILE_SLICE,XCL_DXC_THREADS=4,XCL_PIPELINE_THREADS1 and then 2.--precompileonly runs DXC on VS/PS, and--pipelinesbuilds compute pipelines only, so the graphics cache warms up only in-game. The window title showedcompiling shaders: 4 running … 36255 pipelines queued. Graphics PSOs compiled in-game, at 2–3.7 s each, gated: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. NoXCL_DRED, noXCL_PSO_WAIT_MS.xcl.exewhen free physical memory drops below 1.0 GB; that is what ended runs 1, 2 and 4.ID3D12GraphicsCommandList10::#101call.XCL_UMA_SHADOW=1XCL_UMA_SHADOWXCL_GPU_PROFILE=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512Wait64BitValueXtime-out, a watchdog release, or an nvlddmkm / Display event.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:
and from run 2 (no shadow):
What fits and what does not on 32 GB / 16 GB
XCL_UMA_SHADOW. WithXCL_UMA_SHADOW=1local video memory reaches the card's 16 GB.XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512did not change the outcome once the world kept rendering (run 4).Not tested
AI use
Run and written with Claude Code (Claude Fable 5.2 and Claude Opus 5.5).
@Filip722 on GitHub · 2026-11-25 07:34 UTC · original
I tested the published world-render revision
14d7a3c56cb816a5b2babf3e42b7fbdc8e4d5f44on 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.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.@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 runsA 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 (noXCL_PSO_WAIT_MS).XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_HUGE_PSO_CONCURRENCY=2.TdrDelayis 8 s on this PC.Tree (local, not pushed): this branch at
41303e4+ #2067 at9b35718+ #684 + #266 + #1515 + #495 + #1405 atbb27ed6+ #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 inkernel.rs,emit.rs,lower_dxil.rsandrecomp/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 indstorage.rs, this branch's earlier form of that change against the PR's!dest_on_stackform (I took the PR's).1. Caches without running the title.
xcl shaders <pack> --precompile --only cs --pipelines --used-onlyin two processes (XCL_PRECOMPILE_SLICE=0/2and1/2), with aused-pipelines.txtfrom 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 inpso_async::resolve_waitunderbind::execute_indirect, twoxcl-dxcthreads indxcompiler.dll.2. Series X profile
0x887a0005at 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 4101Wait64BitValueX timed outin either run. Onf862f5f(+ 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 intiling::Chain::detile_levelundertitle_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 ownint3at 51 s and 73 s (two runs onf862f5f). 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, and0x887a0006at 726 s (System event 4101) aftersparse: the queue has not reached fence value … after 5 stwice.4. Without
XCL_UMA_SHADOWon this card (onf862f5f): 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
AI use: Claude Code with Claude Fable 5.2 built the tree, ran the title and wrote this.
@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_HOTcauses the black-frame flicker,XCL_UMA_SHADOWis 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
XCL_NETWORK=0, scripted pad presses.41303e4plus #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.xcl shaders … --precompile --only cs --pipelinesbuilt all 2,689 compute pipelines (0 errors), thenxcl pipelinesbuilt the 6,749 pipelines of the journal (0 failed); only 3 new driver builds in a run after that.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. WithXCL_FRAME_DUMP=2, frames 700–1500 (the loading screen), counting dumps with none of the 518,400 sampled texels lit:XCL_WATCH_HOT0All presents came from one queue, alternating two back buffers. The cost of
XCL_WATCH_HOT=0is 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=1is 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 (5prod=qNonewaits 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::subresourceson asubresources_onworker, reading a page the title had unmapped 3 ms earlier (XCL's page log). With #751 applied (one conflict with this branch'ssubmit_costtiming, 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 byNvMemMapStoragex.dllwhile the device is created). Measured withQueryWorkingSetEx, 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 forxcl.exehad 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:The new cache file was 0.75 GB after that run. Capping NVIDIA's "Shader Cache Size" for
xcl.exekeeps it there; XCL's own driver blobs still supply the pipelines. A smaller coherent window helped too:XCL_COHERENT_MB=2048instead 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 sameCopyResourceinto a 2560x1440 format-28 title texture on title pages; with that copy skipped (a local diagnostic), the removal still came at 249.9 s, with no list in flight. DXGI local video memory ended at 11.2–12.7 GB; the sparse pools grow steadily (0.3 → 3.8 GB) through the run. RAM had 8–13 GB free.Not tested: this PR's newer heads (
f7e08e6,4df1e6e); AMD; the tree without the PRs added above; more than one run per row in the tables.AI use: Claude Code (Claude Opus 5.5) made the runs on this machine, wrote the diagnostics and wrote this report, posted with my OK.
@Rednaxeh on GitHub · 2026-11-25 08:29 UTC · original
AMD RDNA3 (RX 7800 XT 16 GB) on head
f7e08e6: the branch runs on AMD withoutXCL_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
f7e08e6(merge ofmain568e7db), Rust 1.100.0 MSVC, DXC 1.9.2602.17. The newer retail title of #505, offline (XCL_NETWORK=0), Series X profile.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, first withXCL_UMA_SHADOW=1, then without.1.
XCL_UMA_SHADOW=1removes the device on AMD before the title's device existsWith the switch
open_umadoes not tryOpenExistingHeapFromAddress(which works on this card:mainlogs "UMA opened") and creates the coherent window as a 4095 MB heap of video memory instead; the driver removes the device inside thatCreateHeap: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 withoutOpenExistingHeapFromAddress.2. Without it: smoke 60 s like
main(
main568e7dbthis 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 endCreateComputePipelineStateon its own thread.maine591a8c) the 22.8 MB (HLSL) / 3.9 MB (direct, yesterday)ActivateProbesrecord56c0cd3b82a00c6eis 417 468 B; the biggest DXIL of the two runs is 1 254 828 B. The other giant,ActivateRays95cc13288a27a96e, was not asked for within the 300 s here; onmainit was (see 4): 3 345 980 B, not in the compact form, and its compile never returned.56c0cd3b82a00c6ein 27.8 s). Driver compile time per 30 s bucket in run 2: 33, 26, 56, 97, 54, 26, 27, 26, 40, 25 s.So on RDNA3 this tree reaches where
mainreaches: 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:
main568e7db, same switches, same 300 s run1532 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.
ActivateRays95cc13288a27a96e(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 andmainbehave the same within 300 s.Not tested
16826cbon in the world (not reached); NVIDIA; cold HLSL path on this branch; a run longer than 300 s.AI use: Claude Code (Claude Fable 5.1) read the logs and wrote this report; the runs were mine.
@frenziedcoder on GitHub · 2026-11-25 08:33 UTC · original
RTX 5080 16 GB / 64 GB RAM, Windows, this branch unchanged:
4df1e6ewithXCL_UMA_SHADOW=1plays 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 VA0x0).f7e08e6and41303e4without the shadow lose the device as the loading artwork fades.@imnicho's 5080 report above is of
41303e4plus seven other PRs, so these are the branch heads as they are, on a machine where RAM is not the limit.Setup
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.xcl shaders <pack> --precompile --only cs --pipelineswithXCL_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
f7e08e60x887a0005at 405.8 sXCL_DRED=1f7e08e60x887a0005at 115.7 s, DRED page fault at VA0x041303e40x887a0005at 84.8 s, DRED page fault at VA0x04df1e6e0x887a0005at 578.0 s, DRED page fault at VA0x0+0x2474606(#1508). DRED lists no allocation at VA0x0and 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.f7e08e6.Not tested: more than one run per row;
4df1e6ewithout 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.
@dhillonjagdeep650-boop on GitHub · 2026-11-25 08:59 UTC · original
Two tests of
4df1e6estop in their helper in a debug build, before they test anything:pieces_hold_the_texels_of_their_levelsandgpu_parts_of_a_texture_go_up_and_the_rest_stayspanic withattempt to multiply with overflowinsome_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
4df1e6emerged into a local tree that also has741cb5a, #2131 and two local diagnostic commits (748753d); the helper is the same line in4df1e6ecargo test -p xcl --locked --lib -- --test-threads=2: 1149 passed, 2 failed (the two above), 26 ignored... --lib -- hle::d3d12x::texture_upload --test-threads=1with the wrapping helper: 7 passed, 0 failed, 3 of 3 runsNot tested
4df1e6eon its own; the integration tests; releaseAI use: Claude Code with Claude Opus 5.5 ran the tests, made the one-line experiment and wrote this.
@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):
main689f2db+ #1329 (+ #1326, #1327), #1448, #1323, #889, #684, #929, #640, #1850, #765, #1982, #1405, #1464, three allocator-lifetime commits fromwondercrash/xcl, then #541, #2092's3442b58state, #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:
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.
@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>withXCL_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.cbc296ab65a20x887a0005); vkd3d logged a Vulkan timeline semaphore wait returningVK_TIMEOUT. The coherent window import check passed.8ff4b02e69ecThe 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 loggedVK_ERROR_DEVICE_LOSTon queue submit. The pending NVIDIA breadcrumb (top 38, bottom 37) brackets aDispatch(320,180,1)with shader hash7d1e95a171b6f27b. Hashing the cached DXIL with the pinned vkd3d hash function matched XCL compute record520a7d5cb893a9f7(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 exact520a7d5cb893a9f7dispatch at320×180×1completed 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 reported0x887a0005; vkd3d logged a timeline wait returningVK_TIMEOUT, withDispatch(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 reported0x887a0005; vkd3d logged queue submission returningVK_ERROR_DEVICE_LOST. The pending breadcrumb spansDispatch(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
14d7a3cbase with the2570d0async trace and local timing around D3D12 Wait/Signal calls, the loading artwork again gave way to a uniform screen. At threshold0x640the 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 subsequentVK_ERROR_DEVICE_LOSTat about 116 s. Tested with Codex (GPT-6.2 Astra).Opening credits confirmed on Linux / RTX 5080. Tested integration
70a7e1d579d2c9083f5c3b9066a66429c3f9df21with 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 andXCL_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 announcedID3D12Heap1. No specific failing call or assertion was established. With our local vkd3d-proton 3.1 pair (4522cc1plus 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
70a7e1dthrough4df1e6e3d4onto 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.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.
@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:main568e7dbf7e08e6(the head of your report)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)41303e4sparse::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)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
4df1e6eoverlapped a build on this machine; runs 2 and 3 had the machine to themselves and hung the same way.One difference from your report:
41303e4hangs 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,41303e4hung 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).mainwasn'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'smainmerge-basef5c5bdfup to41303e4(f5c5bdfchecked clean first, 2 of 2) namedcbba2d9d. Checked against its parent, 3 runs each:4de1452d0 of 3 hung;cbba2d9d2 of 3 hung;cbba2d9dwitha_copy_back_does_not_wait_for_the_title_queueskipped, 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: #1993AI-assisted (Claude Code). Synthetic tests only.
@kole07139 on GitHub · 2026-11-25 09:59 UTC · original
RTX 3070 8 GB / 32 GB RAM, Windows,
4df1e6eunchanged: 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 inDXGI_ERROR_DEVICE_HUNG. In every run whose log has one, the stop comes within 2 s of the first mid-listWait64split.After that stop, the title and XCL are both waiting and nothing runs:
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
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1, plusXCL_NETWORK=0 XCL_ACTIVITY=1.XCL_RUN_SECONDS), with A pressed every 5 s from 15 s.xcl shaders <pack> --precompile --only cs --pipelineswithXCL_PRECOMPILE_SLICE=i/3, 3 processes, into a freshXCL_DXIL_CACHE. The six runs came one after another on that cache.Precompile (2 689 compute programs)
4df1e6e8ff4b02Title runs on
4df1e6e0x887a0006at 104.9 sXCL_DRED=1XCL_DRED=1 XCL_WATCH_HOT=0XCL_THREAD_DUMP_AT=140,200,300¹
D3D12.X: split command list (type 2) around mid-list Wait after Write64 (#1). Run 1 has none before its removal.For comparison,
8ff4b02on the same cache method:In runs 2 and 3 it presented 2–7 frames per second from ~40–60 s on.
What the stop looks like
Wait64BitValueX … bridged to GPU queue.Wait (… wait-before-signal, after_write64=false).0x704180158, withprod=qNone. In run 4 they are on0x70417fe58/0x70417fe10/0x70417fee8, alsoprod=qNone.0x704180268–0x7041802a8 >= 0x8e1withprod=qSome(1).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.xcl-pso-*andxcl-dxc-*waiting for work;xcl-dstorage×17 inQueueInner::runwaiting on its channel;xcl-sync-watchdogin its condvar wait (no armed GPU waits);xcl-fences,xcl-copy-*andxcl-sparse-readbackwaiting.KERNELBASE(WaitForSingleObject-style) at the same game address in all three dumps:+0x221c3c2;xcl::loader::main_thread, at+0x56a0d < +0x23cf735 < +0x8126a7 ….XCL_WATCH_HOT=0(run 5) it is much less: thin horizontal stripes at the top and bottom of the screen.XCL_WATCH_HOTfinding holds here too, butXCL_WATCH_HOT=0does not move the stop.memory:line reports 17.5–18.4 GB of local video memory on this 8 GB card (14.9 GB on8ff4b02), so the driver is presumably paging. I have not measured whether that matters for the stop.main6c89285+ #1448 + #1660 + #1798, HLSL path, compute precompiled the same way), two runs ended in0x887a0005at 228 s and 131 s.Not tested
XCL_DRED=1on a run that loses the device. Run 1, the one removal, was without it.0x704180158are for.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.
@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:
main568e7dbstops at the same point (~2400 frames, 117 s).main1ec4c98hit 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:
Other observations:
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 MBin every run.Not tested: AMD; a run long enough to get through all the huge compiles.
AI use: Claude Code (Claude Opus 5.5) ran the builds and runs on the hardware above, read the logs and wrote this report.
@kole07139 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 withXCL_UMA_SHADOW=1only.@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_ATdumps 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: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 plusXCL_UMA_SHADOW=1), two runs.0x887a0005at 363 s0x70417fef8,0x70417fe68; producer one submit behind)3. Why the shadow could leave the title waiting: a reading of the code, not measured.
sparse::readback_after_executecopies back, after each submit, the ranges a title list wrote through explicit memory operations (Write32/64,FillMemoryWith32BitValueX,CopyMemoryToMemoryX). #1329's description addsMapand PC copies into console buffers.Not tested
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.
@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 lateDXGI_ERROR_DEVICE_HUNGwith 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.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
CopyTextureRegionbracketing 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 completeentries 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.
@MrEjecutor on GitHub · 2026-11-25 10:00 UTC · original · edited 2026-11-25 11:16 UTC
Test of
41303e4on a mid-range Blackwell card: the caches fill cleanly, but world loading stops presenting at 80–90 s in 3 of 3 runsSetup: 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/8and 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.XCL_UMA_SHADOWWait64BitValueX … bridged to GPU queue.Wait (…, prod=qNone…; wait-before-signal)on queues 0 and 1, which looks like theWait64BitValueXitem still open in your description.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.
@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
4df1e6e+ #2195 (T# index bound = the shared heap's 1,000,000) + #1592 (DRED pipeline names) + two local diagnostics: withXCL_DRED=1eachCreatePlacedResourceXresource is namedtitle <va> dim w x h fmt flags kind, and the DRED page-fault report readsObjectNameWwhenObjectNameAis null (SetNamesets only the wide name, so before this every allocation printed without a name – #2131 does the same).XCL_NETWORK=0, A pressed through the menus. All 2,689 compute pipelines built ahead (XCL_PRECOMPILE_SLICE0/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
8ff4b02needed 240–300 s on this machine), the intro's opening credits over a grey scene from ~250 s.XCL_COHERENT_MB=2048bind::execute_indirect→pso_async::resolve_waitwhile thexcl-pso-preworkers build graphics pipelines of 280–500 KB DXIL one at a time (huge, "driver blob absent", 2.6–3.4 s each)XCL_PSO_WAIT_MS=50 XCL_HUGE_PSO_CONCURRENCY=40x887a0006) at 261.5 sXCL_DRED=10x0, no allocation; just before it 6ExecuteIndirectwith garbage group counts (0x4729aa76 x 0x46ab67c2 x …) were refused as out of rangeXCL_PSO_WAIT_MS(nothing skipped)0x14c8fb0000inside a resource; the list there had done 25 of 52CopyTextureRegion0x0(after aWait64BitValueXtime-out)CopyTextureRegion0x15737a0000intitle 0x12a6a78000 dim3 1024x512 fmt83 flags0x300000 sampled(a BC5 texture onvram::Pagestiles, not GPU-owned); the list there: 7 of 11 operations done, allCopyTextureRegion– the shape oftexture_upload::recordSo 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:
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 –
vramhas mapped to nothing (unmap_superseded) left out (a local skip intexture_upload::plan_item; 128+ left out by 150 s): still removed at 201.8 s, page fault intitle 0xdef534000 dim3 1024x1024 fmt72 flags0x300000 sampled, again insideCopyTextureRegion(32 of 69 done) – a texture that was mapped when its copy was planned.Evictkept resident (hooked, counted): the title never called it. That run ended on a title access violation at 131 s (write at0x279ab0f015,+0x4f878ae) instead.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 at0x0. Just before it, as before run 58's:ExecuteIndirectof CSa6724f20f309a480,51788b20c402ace3,4401d482ef24797crefused as out of range, their "counts" shaped like addresses (0xf4b482d0 x 0x100004 x 0x1, arguments at0x4f4b480e0).lockhart): the title stops on an int3 at+0x1cf336c1.5 s after start.Not tested: more than one run per row; AMD; the tree without #2195 (it changes no behaviour here unless an index lands in 1,000,000 – 2^21); whether the faulting texture's tiles were mapped at the moment of the copy (the next thing I'm looking at).
AI use: Claude Code (Claude Opus 5.5) made the builds and runs on this machine, wrote the two diagnostics and wrote this report.
@Dezmonius on GitHub · 2026-11-25 11:35 UTC · original
@joeypercia I ran your unchanged synthetic probe at
b39608eaa8f5f079f7413173e67c9e07146b9597on 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.r_null_during_copyq, reported device removal0x887A0006after 1.8 s. Each case had a fresh process. I stopped the series at that point, so the two remaining concurrent cases are untested here.This matches the device-removal HRESULT on this hardware. The synthetic probe does not establish that the title lost the same resource or took the same code path.
AI-assisted (Codex) for execution and reporting. The probe ran without title files.
@upipibi on GitHub · 2026-11-25 11:47 UTC · original
@joeypercia Your unchanged probe at
b39608e(on4df1e6e) 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.other=0in every case. The System log has 0nvlddmkm153 events since the first case started.So on this card
r_null_during_copyqfinishes all 20 rounds, while on Dezmonius's RTX 5070 the same case reported0x887A0006after 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.
@joeypercia on GitHub · 2026-11-25 10:59 UTC · original · edited 2026-11-25 11:55 UTC
Update:
r_null_during_copyqremoves the device on an RTX 5070 (Dezmonius) and passes on an RTX 3070 (upipibi). The fix is #2270:unmap_supersededwaits 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
CopyTextureRegionpage 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 off7e08e6with 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/xclprobe/reserved-copy-faults(b39608e, one test file plus itsmodline, on #2057's4df1e6e). Each case writes withCopyTextureRegioninto a 64 KiB-tiled reserved texture, the kindvram::place_pagesmakes for the texturesresource_atcreates, and reads it back. One process per case:a–j: tiles in aDEFAULTheap, 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 whatvram::unmap_supersededcan do to a texture with an upload still in flight: it maps the old texture's tiles to NULL on thePagesqueue 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_ADAPTERif yours differs.If any
r_*case removes the device on your card, the likely fix is to makeunmap_superseded's NULL mapping wait for the GPU work submitted before it. I can write that.AI use
@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 takesXCL_WATCH_HOT(on by default) together with eitherXCL_HEAP_WINDOWS=1orXCL_COHERENT_HEAPS=sparse:16;XCL_WATCH_HOT=0orXCL_WATCH_HOT_MS=60000avoids it.This looks like the same stop as @kanade333's first row (
0x887a0006at 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
4df1e6e, no local change).XCL_NETWORK=0, a fresh data folder per run, scriptedXCL_PRESS_ATA presses every 3 s from 6 to 60 s (the title is idle on Legal Notices from ~45 s).xcl shaders <pack> --precompile --only cs --pipelinesin 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)XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1(the description's)0x887a0006at 52.0, 51.2, 51.8, 50.4, 50.5 sXCL_WATCH_HOT=0XCL_WATCH_HOT_MS=60000XCL_UMA_SHADOWXCL_HEAP_WINDOWS=1onlyXCL_COHERENT_HEAPS=sparse:16onlyXCL_UMA_SHADOW=1onlyXCL_DIRECT_DXIL=1onlyXCL_LOOK_SKIP=1onlymain568e7dbwith the description's switches (no hot looks there)XCL_COHERENT_MB=512(@kanade333's change)XCL_COHERENT_MB=512changes nothing on this card because its coherent window is already 512 MB with the description's switches (coherent 64/512 MBin every run, with or without it), where @kanade333's 5080 hadcoherent 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-listsplits 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:16only) 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
nvlddmkmid 13 events in the same second —Graphics Exception: ESR …plusGraphics SM Warp Exception on (GPC 4, TPC 0, SM 1): MMU Fault/Multiple Warp Errorson 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 nonvlddmkmevent 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
XCL_WATCH_HOT=0.Edit (world load on the same card,
XCL_WATCH_HOT=0added 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-smi22.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; withXCL_DRED=1DRED records no page fault (VA0x0, 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=1no longer stalls start-up here on this head.XCL_RUN_SECONDS, no removalXCL_RUN_SECONDS, no removalXCL_RUN_SECONDS, no removal0x887a0005at 361.4 s, then the title'sint3at+0x2474606; local video memory 19.7 GB, 39.1 GB committedXCL_DRED=1)0x887a0005at 179.4 s, sameint3at+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 committedwould close a GPU cyclein all five; 1, 1, 10, 10 and 10mid-listsplits.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-4is insidedxcompiler.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.XCL_WATCH_HOT=0keeps 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=60000instead ofXCL_WATCH_HOT=0at world load.AI use: Claude Code (Claude Opus 5.5) ran the precompile and every run above, read the logs and wrote this report.
@vakaobr 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 is568e7db+ those two.Results
main+ the two above: #1993, #929, #2052, #1599, #1517, #1792, #1184, #1850, #1766, #1453, #1422 (#1983 is onmainnow). Their other failures here (f64 and 64-bit atomics,OpenExistingHeapFromAddress, twolist_xtests, some pixel-shader draws timing out) are the same onmain.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
16826cb/3877446):an_execute_indirect_with_garbage_counts_runs_no_groupsand…_draws_nothingfail, and the log saysExecuteIndirect: the counts are not checked (its program does not compile). Wine'sD3DCompile(vkd3d-shader) refuses the guard'scs_5_0program, so on a Mac (and probably Linux Wine) garbage counts go to the GPU unchecked. A fallback inreal::compilefixes it: whenD3DCompilerefuses 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 sayscompiled with DXC as cs_6_0; Windows is unchanged. The diff (+15/−1,real.rs): Glad to open it as a PR once the guard has one of its own.a_copy_back_does_not_wait_for_the_title_queueis flaky here on the tree (1225bb9on 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 insideExecuteCommandListsof 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.a_refused_program_of_xcls_own_is_refused(f064c82):CreateComputePipelineStateon 64 garbage bytes page-faults inside D3DMetal (read at0x18) and then hangs; it doesn't refuse the bytes the way the test expects. Not on the world-load path.texture_upload::gpu_parts_of_a_texture_go_up_and_the_rest_staysandpieces_hold_the_texels_of_their_levels(73fc616): in a debug build they stop onattempt to multiply with overflowin the test's own generator (some_ranges,n * 1103515245, line 896); both pass in release here. That's any platform's debug build, sowrapping_multhere would do.Not tested: a title (so nothing about the freeze in the world or the frame pacing), Windows, release for the whole tree.
AI use: Claude Code. Claude Opus 5.5 agents built the trees and ran the tests; Claude Opus 5.5 wrote the DXC fallback, ran it and the #433 load test, and wrote this report.
@HKEY-Funk-Machine 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, plus0d25b89(its runtime part), plus #2163's two commits (637b82a,78fba7b; one line inreal.rsconflicted 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 anXCL_REFUSE_CSlist (the program takes the untranslated path; its dispatches are skipped) with39f23deaf6a63310,b78fa10b425b8e54(@madaraXor's pair on #675) and95cc13288a27a96e.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, noXCL_UMA_SHADOW, compute caches filled first (XCL_PRECOMPILE_SLICE), the same exe name as earlier runs.ListX #101)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 tooWait64BitValueXtime-outs / GPU waits over 5 s0x887a0007(reset) at ~543 s and the title's0x80000003at+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 reportXCL_RUN_SECONDS) until that is understood.Not tested: more runs (this is one); the newer heads of this branch; graphics pipelines precompiled; why the two refused programs do not finish on AMD; why the reset brought the system down.
AI use: Claude Code (Claude Opus 5.5) built the tree, ran the run, read the logs and the Windows event log, and wrote this comment.
@minimalhipster990 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.
execute_indirect → resolve_wait → Condvar::waitin all three0x887a0005at 244.098 s, then title breakpoint0x80000003at+0x2474606.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 insideExecuteIndirectin all four samples taken after presents stopped.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):
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.
@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 suppliedin 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--pipelinespass under another exe name, is refused by design: AMD keys its cache by application).@frenziedcoder on GitHub · 2026-11-25 14:53 UTC · original
RTX 5080 16 GB, driver 621.40: #1798 on top of
4df1e6eremoves 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 VA0x0at 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
4df1e6eunchanged, and4df1e6ewith #1798 (55e7beb) merged (clean merge, onlybind.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 withXCL_PRECOMPILE_SLICE=i/4(2,689, 0 refused); graphics pipelines warm from earlier runs for both rows.Without
XCL_UMA_SHADOW:4df1e6e4df1e6e+ #17980x887a0005at 424 s; DRED: page fault at GPU VA0x0, no allocation there or recently freedWith
XCL_UMA_SHADOW=1(same switches otherwise): the #1798 tree kept presenting from 66 to 118 s, then0x887a0006at 121 s with a DRED page fault at VA0x0; the one list DRED shows partly done (25 of 30) stopped inside a run ofCopyTextureRegions (op 8), the same picture as @kanade333's. Video memory sat at ~15,845 MiB from 99 s. The4df1e6erun 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
0x0page fault. My frame rate in the world is far below @kanade333's 10–12 fps on the same card; I ran withoutXCL_COHERENT_MB=512and withXCL_WATCH_HOTat its default, and with DRED and frame dumps on.Not tested: more than one run per row;
XCL_COHERENT_MB=512/XCL_WATCH_HOT=0with #1798; #2270 together with #1798; runs without DRED.AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine, read the logs and frame dumps, and wrote this report.
@claudetools-gh 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.
4df1e6e) + treybertram06's upload wait intitle_textures.rs+mainafc5ee8merged 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.XCL_PSO_WAIT_MSinstead 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 hadXCL_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.mainmerge, the silent0x887a0005at 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.Still open here:
24de2aef6c31d55e,b78fa10b425b8e54,1b5466f261a70cde,d79af1d04922a49b).0xFFFFFFFFFFFFFFFF(game+0x54a5543at 314 s,game+0x4e8b4beat 183 s), the same kind @DTsordas reported on AMD.Not tested: more runs of the HUD configuration; AMD; this PR alone without the rest of the stack.
AI-assisted.
@frenziedcoder 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
0x0page 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. NoXCL_UMA_SHADOW: with it this card's video memory reaches my 15.9 GB guard. One run each.4df1e6e4df1e6e+ #17980x887a0005at 153.6 s0x887a0005at 227.9 s0x0, no allocationXCL_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.
@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. WithXCL_DRED=1it is a page fault inside a list ofCopyTextureRegions, twice out of two runs.XCL_COHERENT_MB=512is what gets this card past 53 s, andXCL_WATCH_HOT=0removes 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
4df1e6ewith 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 --pipelinesin 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 onmain6020a33took 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):0x887a0006at 53.4 s, System eventnvlddmkm153XCL_COHERENT_MB=5120x887a0005at 127.5 s, nonvlddmkmeventXCL_COHERENT_MB=512 XCL_WATCH_HOT=00x887a0005at 176.3 sXCL_DRED=1, run 10x887a0006at 70.9 sXCL_DRED=1, run 20x887a0006at 56.5 scoherent 64/4095 MB); at 512 MB it used 76–81 MB.console shaders in the PSO without a translation: mes…warnings), 2D overlays are right.submit cost, textures in these 1024: … 6264 uploaded, 1853.2 MB/9130 uploaded, 3060.6 MB).DRED, the two runs:
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=1did not keep the driver from taking the kept blobs here (476driver 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 withXCL_FRAME_DUMP=3, counting single all-black dumps between pictures of the 2D loading screens: 4 with the switches above, 1 withoutXCL_LOOK_SKIP, 0 withXCL_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 withXCL_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,0x887a0005at 185.7 s. With 3,072 MB and textures evictable after 1 s instead of 5 (a local knob): 15,859 MB,0x887a0005at 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): withsparse:16the title stops on its ownint3at 2.0 s (+0x1cf336c), afterconsole descriptor heap: the title's memory 0x501400000 (0x2600000 bytes) not used (window Some(1), committed true). WithXCL_COHERENT_HEAPS=sparse:1024 XCL_COHERENT_MB=1024it 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 in0x887a0006at 193 s.Not tested
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):CopyTextureRegion, but DRED now reports the page fault at GPU VA0x0with no allocation, not inside a live resource.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=0but withoutXCL_COHERENT_MB=512(so the 4,095 MB shadow of the coherent window,coherent 64/4095and81/4095 MB), no DRED, 240 s limit:0x887a0006at 68.0 s0x887a0006at 103.2 sSo on this 16 GB card both switches count, for different stops:
XCL_WATCH_HOT=0is 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).
@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*.exeand 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),
main06c9f55+0d25b89(local),XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50, 300 s, nothing refused: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.mainwith nothing refused (the earlier8ff4b02runs needed39f23deaf6a63310/b78fa10b425b8e54refused).So on RDNA4 too, the cached blobs work when the names match. For AMD testers: run
--precompile … --pipelinesunder the same exe the title runs as.AI use: Claude Code (Claude Opus 5.5) ran the runs and wrote this comment.
@bstillbstill on GitHub · 2026-11-25 16:42 UTC · original
Test report for #2057 at
4df1e6eon a smaller machine than the 5090: the recommended settings run the menus at3–5 fps here; without
XCL_COHERENT_HEAPS=sparse:16it runs at 30 fps and gets through the scene start, then thesilent
0x887a0005comes ~18 s later.Setup
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 coldin the first run.
XCL_PRESS_A_AT15 s then every 6 s),XCL_NETWORK=0,XCL_ACTIVITY=1,XCL_HUGE_PSO_CONCURRENCY=6,XCL_FRAME_DUMP=30.4df1e6eas it is. g3–g6 add treybertram06's one-line upload wait from #1452(
vram::before_execute(&q)beforesubmit_onintitle_textures::upload_all's title-queue arm).Runs (all with
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1)4df1e6eXCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1UMA import check: ok)0x887a0006+nvlddmkm153 at 70.2 sXCL_UMA_SHADOW=1 XCL_LOOK_SKIP=10x887a0005(nonvlddmkmevent) at 83.3 s0x887a0005at 73.6 s0x887a0006at 74.8 ssubmit 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:16put 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.
cutscene's subtitles (the "grey scene").
Not tested:
mainalone with these switches; AMD; runs past 300 s; the 0x887a0006 in g3 with Aftermath (no dump).AI use: Claude Code (Claude Opus 5.5) built the trees, ran everything above and wrote this report.
@jennydeth on GitHub · 2026-11-25 18:20 UTC · original
RTX 3060 12 GB / 32 GB RAM, this merged tree
4df1e6ein the game: the loading screens present for longer than onmain, but the world is not reached. With the description's settings the device is removed (0x887a0006) at 98 s; withoutXCL_UMA_SHADOWthere 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 overmainon 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
4df1e6eas 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 mymainrun in #846. Before run 1,xcl shaders <shaders.rpf> --precompile --only cs --pipelines --used-only: 325 made, 0 refused, 0 errors, 76.8 s.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1XCL_UMA_SHADOW, right after run 1 (driver blobs from run 1 in the cache)main06c9f55(#846)D3D12 device removed: 0x887a0006at 98.2 sAS slot – refused/would close a GPU cycle/wanted at oncedriver blob absent) started at 592 and 595 s. Three huge graphics pipelineswanted at once (no slot)at 182 s (738–740 KB of DXIL, the first 11.9 s), like the description's second 5090 run.XCL_UMA_SHADOWoff did not lower the commit (39.5 → 40.8 GB). Againstmain, the visible differences in the memory line are the sparse pools (6.1 vs 1.9 GB) and the local video memory over the card's 12 GB. I have not split it further by setting or commit.Not tested: a second run of each setting; the tree without
XCL_HEAP_WINDOWS/XCL_COHERENT_HEAPS; the unit / GPU suite on this tree; AMD; a machine with more RAM.AI use: Claude Code (Claude Opus 5.5) built the tree, ran the precompile and the title on my machine, read the logs and wrote this.
@bstillbstill 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
mainmerge is the likelier half of what stopped it for you; if it doesn't, the difference is the card. Merging #2057 into today'smainmyself conflicts in 10 files, and I'd rather test what you ran than my own resolution of it.The branch and its commit are all I need; the switches are in your comment.
AI use: Claude Code (Claude Opus 5.5) wrote this comment.
@claudetools-gh 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
main1a0bbe3, 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 (withXCL_PSO_WAIT_MS=50and the whole-form change; on a tree that also hadmainafc5ee8merged and #2306 + the #2308 stack) had no silent0x887a0005either: the three that ran to their end ended in a title crash reading0xFFFFFFFFFFFFFFFFat 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:4df1e6e.title_textures.rs(super::vram::before_execute(&q);beforesubmit_on(dev, &q, &items)in the title-queue arm, as on #1452).99b9816…47c7cc1), #541's own four commits (70f9185,48c1517,7654a2a,6bd8f64; its threeRecompiler:commits are already in the base), #1803 (cb00751), #1887 (5fe5b41), plus #1803's heap addresses passed to both two-pass stages (two_pass_iotakes the list's heaps and callswith_heaps(l, None, user_data_ms(..), heaps)for the compute pass andwith_heaps(l, None, user_data_gfx(..), heaps)for the mesh pass).git merge origin/mainat1a0bbe3. Conflicts in six files; every one kept both sides:emit.rs: thecoherent_memfield next to main'simg_writes(#2156).device_x.rscreate_placed_resource_x: both the timer and main'spso_async::pc_call()guard (#1782).list_x.rsend_query_x: main's(forward, force_visible)(#1991); main's newnote_dropped_drawhas to go through the shardedrecording()instead ofLISTS.lock()(no textual conflict, but it doesn't compile otherwise).title_list.rsrelease: main'sb.first(#2163) unmapped too.real.rs:NEWER_LIST_SLOTSmust 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'sDuelist andtexture_upload::content_hash, and a re-queued texture also has to go intopending_res.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
mainitself today plus #2057's handful of commits you need, since Kalmarv's #2372 / #2404 now cover the ExecuteIndirect whole form properly.AI-assisted.
@shortside on GitHub · 2026-11-25 19:18 UTC · original
A Mac data point for the stop @kole07139 describes above (#2057) and again on
mainin #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/integrationat5f9a58f(the Mac branchmac7plus #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
Wait64BitValueX at … >= 0xeec bridged to GPU queue.Wait (waiter=q0/q2/q3/q4, prod=qSome(1)/tySome(0); wait-before-signal, after_write64=false)split command list (type 2) around mid-list Wait after Write64 (#1)GPU queue.Wait at … >= 0xeee did not complete within 5000 ms (… recorded=0xeef, submitted=0xeed/0xeee, completed=0xeed) – released on CPU to prevent GPU hangwrites after the GPU … although their queue had not got there after 10000 msevery 10 – 20 s; the title's stall watchdog fires three times and is skipped;D3D12 queue drain: GPU fences still pending after 10 sat exitSame as on the RTX 3070: the burst of dispatches with no presents, the mid-list split right after it, the
Wait64BitValueX … wait-before-signallines, and a flat-colour frame followed by black.Different: here the producer of every wait is named (
prod=qSome(1)orqSome(4), noneqNone), the title presents twice more about 25 s after the first split, and the stop is reported: the GPU-wait watchdog releases four waits at 229 s. I have no thread dumps of that run, so I cannot say what the title's threads wait on.Not tested: this PR's tree on the Mac;
main; a second run; compute pipelines built ahead (the 25 s without presents may be nothing but pipeline builds).AI use: Claude Code with Claude Fable 5.2 built the tree, ran the run on my machine, read the log and wrote this comment.
@BillyBuilds 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 theaccount 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:
on this driver); the precompiled compute ones came back blob-supplied in 0.3-0.5 s, the >1 MB
ones included
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
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
4df1e6eI added 16 lines to
log_device_removed(crates/xcl/src/hle/d3d12x/real.rs): log whenGetAutoBreadcrumbsOutput()returnsErr, 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: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-levelDRED: 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:
driver_cache::keep's 250 msKEEPwrote 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.keep_graphics_blob's map only memoizes finished builds, so concurrent requests for the same key all build it. Cheap once the driver cache is warm (1 ms), but three cold 3 s builds would be one.@justrhoto on GitHub · 2026-11-25 21:40 UTC · original
RTX 4070 Ti SUPER 16 GB: #2057 with the fixes from this thread, merged with
mainatc56e744(70 commits behindmainnow). 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 thetexture_uploadtest fix;f8526ed: merged withmainc56e744(103 commits). Conflicts were resolved invram.rs,sparse.rs,title_textures.rs,kernelx.rs,bind.rs,pso_async.rsanddstorage.rs; main's sparse tile quarantine (10e9fb7) was ported onto this tree'ssparse.rs;06053a1: Shaders:--pipelinesmakes a split program's chain pipelines.--precompile --pipelinesmade only the plain blob of a split program. The runtime builds that program as a dispatch chain, with each piece and the whole ondispatch_chain_root_signature, and looks for.chain.psoblobs.a_split_program_keeps_the_blobs_of_its_pieces_and_whole_as_chain_blobs. It fails without the fix (1 made instead of 3).mainhas since landed the same fix as2228be7, which prebuilds the pieces. The difference in06053a1is that it also builds the whole program as a chain pipeline, which the runtime builds lazily on the same root signature.2228be7leaves that pipeline to be compiled in the run.Head
06053a1(github.com/justrhoto/xcl@06053a18cb), no uncommitted changes.Setup
Tests:
cargo test --release -p xcl --lib -- --test-threads=4: 1327 passed, 0 failed, 26 ignored.no wave64tests, oneno dxil.dll, one0x887A002D, and f16 refusals.xcllib only, not--workspace.Precompile:
xcl shaders <pack> --precompile --only cs --pipelineswithXCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, in four processes (XCL_PRECOMPILE_SLICE=0/4…3/4)..chain.psoblobs 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 on06053a1, each keeping the graphics blobs of the runs before it:0x887a0006at 373.3 s, then the title'sint3at+0x24746060x887a0005onCreatePlacedResourceX), then the sameint3; the process then hung and had to be ended0x887a0005onCreatePlacedResourceX), then the sameint3Wait64BitValueXtimeout;Wait64split.report.jsonwas written only when I ended the process.Next: a run with
XCL_DRED=1to name the work in flight at the removal. I'll edit this comment with the result.Not tested
cargo test --workspaceand the integration tests;scripts/smoke.ps1.XCL_HUGE_PSO_CONCURRENCYabove the default.XCL_DRED/XCL_GPU_PROFILEon this head.XCL_UMA_SHADOW.AI use: Claude Code (Claude Opus 5.5) did the following:
main;--pipelineschain fix and its test;I ran the precompile and the title, and checked the comment before posting.
@DavidM1911 on GitHub · 2026-11-26 00:59 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.@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
mainon the same machine, with local video memory at 21.6 GB on a 12 GB card; the first loading screen flickers.Tested
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.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1, plusXCL_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 ofmaintoday.What happened
main08db802with default settings on this machine). The frame dumps, one per 300 frames, are too sparse to show it.XCL_UMA_SHADOWwindow adds 4 095 MB); peak commit 41.6 GB. No out-of-memory message, no device removal.ExecuteIndirect of CS … arguments at … – out of range, not runfor three programs (9387facebc35be6d,4401d482ef24797c,1ada490879c33c0e; 46 so far at the first line).For comparison,
main08db802on 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=50andtitle_memory_mb = 10240do not change that, and Series S mode (XCL_DEVICE_TYPE=lockhart) ends in the title's assert withE_OUTOFMEMORYat 161 s.Update: the loading-screen flicker is the hot-block looks (
7c18bc4);XCL_WATCH_HOT=0removes 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 includingmain, is left out.main08db802, noneXCL_DIRECT_DXIL=1onlyXCL_HEAP_WINDOWS=1onlyXCL_COHERENT_HEAPS=sparse:16onlyXCL_LOOK_SKIP=1onlyXCL_UMA_SHADOW=1onlyXCL_WATCH_HOT=0XCL_WATCH_HOT=0That 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; withXCL_UMA_SHADOWthe GPU reads only that uploaded copy. One run each, so the counts are rough.Separately: the all-switches run with
XCL_WATCH_HOT=0lost 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
7f7e768.AI use
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.Merge
Merge the changes and update on Forgejo.