External control for the first story-load GPU hang #2
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ThatRecompDev--five-star-recomp#2
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?
@NinosTech on GitHub · 2026-11-24 09:23 UTC · original
Your wiki places the GPU hang after the first-run UI as story loading starts. On patched XCL (Nobara, GE-Proton11-1, RTX 5060 Ti), original artwork also gave way to a black window at first-story prestream. At least six seconds of game audio survived the fade. We identified no words, subtitles, location card or visible world in that capture.
One proposed explanation can be narrowed on our host. Our authored two-shader control reduced peak concurrent native compute-pipeline creations from two to one. Both 64-word GPU readbacks still matched. A separate XCL title trial reached a host D3D12 error even with one active large pipeline creation. A cold or slow compile remains possible, and the exact shader identity across trials remains unknown. This is a comparator for your D3D12 work, with no Five Star Recomp reproduction claimed. Test details and revisions. AI-assisted report.
@ThatRecompDev on GitHub · 2026-11-24 09:38 UTC · original
Thanks for writing this up, it's really helpful!
We're stuck in the same spot. For us the GPU hangs on the very first frame after the story load, right when the compute queues get their first work. I added GPU breadcrumbs and the stall lands on compute queue 2, in the meshlet culling pass (
CS_AllocBatchCSCullOutput). My best guess right now is its ExecuteIndirect: it uses a console-only argument type that we just turn into a plain dispatch for now, so we may be feeding it the wrong thing.Your one-compile-at-a-time test lines up with what we see too. Memory and fence waits look fine on our side, and limiting our pipeline builds didn't change anything, so compile concurrency doesn't seem to be it. Two different loaders dying on the same compute work makes me think the game expects something there that neither of us gives it yet. Also nice catch on the audio carrying on after the fade, that suggests the game itself keeps going.
I'll update here once we know more.
@ThatRecompDev on GitHub · 2026-11-24 14:32 UTC · original
Follow-up: the ExecuteIndirect guess was wrong. The hang was compute shaders looping forever on bad inputs. Two things fixed it: the console's buffer range checks (out-of-range loads read 0, stores are dropped), which our translation didn't apply, and a safety cap on loops. With those, the story load runs past that point, and once reached the intro title card ("Vice City, two years ago"). Audio continuing after the fade matched our findings too: the game keeps running.
@dcastell1 on GitHub · 2026-11-24 15:05 UTC · original
Your remaining blocker sounds like the one XCL just solved, and their fix was not fewer builds or less concurrency — it was never blocking the title's thread on a compile. Worth checking against your loader before you go after the watchdog's own exit checks.
From ivall/xcl#891 (public, merged into
main): a compute pipeline bind calledpso_async::resolve_wait, which built the program on the title's thread (or waited unbounded for the worker). The NVIDIA driver took 30 s and more on the biggest translated compute programs (378 KB of DXIL: 16 s; 685 KB: 31 s), the title's thread stopped, nothing was presented for that long, and the title's own watchdog ended the run 30 s later — exactly the shape you describe ("frames had slowed to 400-500 ms while about 1,300 programs were still queued"). TheirXCL_PSO_WAIT_MSthen bounded the wait, moved every build to workers, and marked the pipeline late: until it is built, its binds get a stand-in and their dispatches are skipped (opt-in, because skipped dispatches leave outputs unwritten). With a 50 ms budget the world rendered; with no budget the same build died at the watchdog.Two things that may transfer directly:
For the record on hardware: on a 5090 the whole 26,503-record corpus builds 1,151 of 1,151 sampled compute pipelines with 0 failures in seconds, while 996
*_CS_RaytracingResolve_*records take over 7 minutes each and a fewcompute_graph_ops_*over 6 — so the tail is real and it is in the corpus, not in the queue policy.(Counts and API behaviour only; no game data. Context: I run the retail 1.0.2.1 package against VIctory and XCL on Windows/RTX 5090 and report numbers back to both projects.)