RTX 3070: no crash, black window, 80k graphics pipelines queued, long driver PSO waits (nvidia-dev) #2595
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#2595
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@enykyu on GitHub · 2026-11-26 01:09 UTC · original
Game and package version
Grand Theft Auto VI – RockstarGamesInc.28872443D20A7 1.0.2.1
What happens
Tested
nvidia-dev@c044dc6don an NVIDIA GeForce RTX 3070 (8 GB), Intel i9-10920X, 96 GB RAM, Windows 11 Pro 26H2 (26300.9974), NVIDIA driver 32.0.16.2140 (GeForce 621.40), DXC 1.9.2602.17.Ran ~286 s (window closed by me, exit code 0, no crash). 2261 presents, black window, 0 FPS.
The 40 "mesh pipeline with its MS … in the AS slot – refused" errors from the main branch are gone (translation_errors empty, 3268 translated pipelines).
Ran xcl shaders … --precompile --only cs --used-only first: DXIL cache 111,662 hits / 267 misses.
Bottleneck is now driver PSO compilation: 80,974 background pipelines queued, 75 title-thread waits on graphics pipelines (max 59 s), NGG compute-pass PSOs of ~293 KB DXIL take ~9.4 s each, the slowest driver compile took ~4 min. GPU stays at 1–3% while waiting.
Dedicated VRAM sits at 7.6–7.7 / 8.0 GB.
Still stubbed: ID3D12GraphicsCommandList10 #142 / #126 / #75, ID3D12CommandAllocator #9 (~2.3k calls each). XGameRuntime is missing required dependencies warning appears.
Sanitized report.json and xcl.log attached.
XCL version
c044dc6d(branch nvidia-dev)GPU and driver version
NVIDIA GeForce RTX 3070 (8 GB), 32.0.16.2140 (GeForce 621.40)
Windows version
Windows 11 Pro 26H2 (26300.9974)
report.json and xcl.log
xcl (1).log
report (1).json
Console output
@imnicho on GitHub · 2026-11-26 01:44 UTC · original
RTX 5080 16 GB on a PC with 16 GB of RAM,
nvidia-devc044dc6d: the same pipeline waits, two things that end a run earlier on this branch, and where the memory is when RAM is short.Setup
device_type = "lockhart"),XCL_NETWORK=0.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=2 XCL_UMA_SHADOW=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_DRED=1, afterxcl shaders … --precompile --only cs --pipelines --used-only(88 min here, 2 slices).1. Without #684 the world load ends in
xg::copy_from. One run of one onc044dc6d: access violation inVCRUNTIME140.dllunderxcl::hle::xg::copy_from(xg.rs:713), 64 s after the world's set-up. With #684's commite56dbc3cherry-picked (it applies cleanly) two runs of two pass that point. So this branch needs #684 asmaindoes.2.
XCL_COHERENT_HEAPS=sparse:16stops the title 5 s in, four runs of four (withXCL_COHERENT_MB=1024). The last lines areconsole descriptor heap: the title's memory … not used (window Some(1), committed true)and then the title's own breakpoint (0x80000003). With heaps that small in the sparse windows, the memory the title hands over for its descriptor heap lies in window 1, andconsole_heap.rstitle_memoryonly takes window 0. I did not trysparse:512or more.3. The waits, as in the report above. With #684 and the default heaps:
XCL_PSO_AHEAD=0, 1200 sOne such compile at a time holds the title's thread, so a 20-minute run gets about 20 of them done here. The report above has ~9.4 s for a ~293 KB one; RAM is short here while they compile (next point), so I cannot say how much of the 60 – 90 s is this CPU.
4. Memory with 16 GB of RAM (the first run of the table; Windows' counters sampled once a second beside it)
XCL_UMA_SHADOW=1), and 1.4 GB of the sparse pools is not mapped.VirtualQueryEx+QueryWorkingSetEx): 39.8 GB committed, 8.2 GB resident. Of the resident bytes about 2.7 GB are some 190 private allocations of 15.8 MB each (the size of a full Windows heap segment), 1.7 GB is the driver's own shader cache file (DXCache\*.nvph, 12.3 GB of it mapped into the process), and the coherent window has 0.4 GB resident of its 4,096 MB.XCL_PSO_AHEAD=0made no visible difference to commit in the first 190 s (24.8 against 24.9 GB at 120 s, 25.6 against 26.0 GB at 190 s).Not tested: the Series X profile,
sparse:512or more, and anything behind the waits (no 3D frame here yet; the runs go on, each keeps what the driver compiled).A question for the maintainers: where should a fix go for code that exists only on
nvidia-dev(the build-ahead gate, the shadowed window): as a PR againstnvidia-dev, or held until that code is onmain?AI use: Claude Code with Claude Fable 5.2 ran the runs and wrote this.
@joeypercia on GitHub · 2026-11-26 05:20 UTC · original · edited 2026-11-26 05:21 UTC
Why
nvidia-devc044dc6dstops presenting at about 115 s in the world on NVIDIA, and two commits frommainthat end it. A game thread blocks inExecuteIndirect. The block is behind the whole-form build of a split compute program, which the offline precompile on this branch doesn't produce.Setup: RTX 4070 Ti 12 GB (621.40), Ryzen 7 7800X3D, Windows 11 Pro 26200, release. Retail title 1.0.2.1, Series X profile.
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1, scripted A presses. Compute pipelines precompiled first withxcl shaders … --precompile --only cs --pipelinesfrom the same build.What happens on
c044dc6d(two runs): about 2,700 frames at 30 fps, then from about 115 s no presents and no submits. One run went on like that for 43 minutes until my script ended it, with no device removal. Binds waited 0 ms (lazy pipelines: 84243 made … binds waited 0 ms).Where the title is, from
XCL_THREAD_DUMP_AT=180,300, symbolized with the build'sxcl.pdb. The same stack is in both dumps:An
ExecuteIndirectof a split program needs its whole form (Chain::whole). Another thread holdsbuild_wholewhile the driver builds that whole program on a title thread. Its stack is cut off in the driver, so the dump doesn't show its XCL frames.These programs are the title's largest, and on this branch nothing builds their whole form ahead:
2228be78("prebuild split compute dispatch-chain pieces under --pipelines"): without it, the offline pass builds only the unsplit whole underabi_root_signature_with, a blob that neither the split path norChain::whole()loads.ec80c071("reuse offline whole compute pipelines before splitting").Both are on
main, and neither is innvidia-dev.With both cherry-picked onto
c044dc6d(local,25d74490):2228be78applies cleanly.ec80c071conflicts indispatch_chain.rs, where I kept this branch's refused-PSO warning and passedComputeBuild::Chain. It builds..chain.pso, 234 s.Chain::whole. It then hits the next blocker:0x887a0005at 122.5 s, DRED page fault at VA0x0, no allocations, no list in flight, whileCS 1b5466f261a70cde(160×90 groups, split wave64) had been running for over 500 ms. That is the same removal as on #2057 on this card, so it isn't caused by these two commits.So
nvidia-devneeds2228be78andec80c071frommainfor an offline precompile to help on NVIDIA. #2624 (@theaustinayers) already brings both (it mergesmainthrough #2371), so this explains why the stall should end with it; no separate change is needed.Not tested: more than one run with the two commits, other GPUs, and the Series S profile.
AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine, symbolized the dumps, cherry-picked the commits and wrote this.