Skip to content

External control for the first story-load GPU hang #2

Done

Description

@NinosTech

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.

Activity

  1. ThatRecompDev commented on Nov 24, 2026

    @ThatRecompDev
    Owner

    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.

  2. ThatRecompDev commented on Nov 24, 2026

    @ThatRecompDev
    Owner

    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.

  3. dcastell1 commented on Nov 24, 2026

    @dcastell1

    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 xcl-dev/xcl#891 (public, merged into main): a compute pipeline bind called pso_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"). Their XCL_PSO_WAIT_MS then 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:

    1. A capped wait beats a shorter queue. If your load blocks anywhere on "this pipeline must exist now", a 65,536-iteration loop cap and a bounded queue will not save it: the thread is parked for the driver's minutes. A stand-in that becomes real, plus a skipped dispatch until then, is what turned XCL's stall into a picture.
    2. "Limiting pipeline builds didn't change anything" is consistent with that. Concurrency was never the variable in their case either; the variable was whether the frame's thread waits.

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions