kernelx: Sleep does not count the time a bind waits for a pipeline build #1288

Manually merged
github merged 1 commit from gh-pr/1288/head into gh-pr/1288/base 2026-11-26 04:49:32 +00:00
Owner

@⁠imnicho on GitHub · 2026-11-24 14:20 UTC · original
imnicho:kernelx-sleep-hold → main · +184 −0 · 2 files · 1 commits · merged 2026-11-24 19:48 UTC

A retail title ends itself half a minute to a little over a minute after the set-up of its world begins. Its own stall check – a thread that ticks once a second with Sleep and gives up after 30 ticks without a sign of the main thread, decoded in #505 – fires while the main thread is held in binds for compute pipelines the driver is still building. A console title never waits there. The ways around it so far skip the dispatches of a pipeline not built yet (XCL_PSO_WAIT_MS, #891: later passes then run on what the skipped ones left unwritten, #675) or change the title.

Here XCL takes the title's Sleep, and the time a bind is waiting for a pipeline's build does not count as the title's time: the check does not tick while XCL holds the thread it watches. Only a sleep of 100 ms or more is taken so; a shorter one is a poll and goes on as before (changed after @⁠Royalflamejlh's question below, with the comparison under Tested). Nothing of the title is changed and no dispatch is skipped. The plan was posted in #505 (https://github.com/ivall/xcl/issues/505#issuecomment-7130709574). Part of #505.

What is in it

  • crates/xcl/src/hle/d3d12x/pso_async.rs: title_held() – whether a bind is waiting in resolve_wait for a pipeline still being built (a counter around the wait, with or without XCL_PSO_WAIT_MS). Test a_bind_waiting_for_a_build_holds_the_title.
  • crates/xcl/src/hle/kernelx.rs: Sleep (a title imports it through api-ms-win-core-synch, which XCL resolves to kernelx): a sleep of 100 ms or more returns after ms of time in which the title was not held, taken in steps of at most 20 ms; a shorter sleep, a yield (0) and INFINITE are passed on as they are. XCL_SLEEP_HOLD=<ms> sets that length, 0 leaves the PC's Sleep. Tests a_sleep_does_not_count_the_time_the_title_is_held, a_sleep_stops_counting_when_the_title_gets_held, a_short_sleep_is_passed_on_while_the_title_is_held, a_sleep_of_a_title_not_held_takes_its_time.
  • 184 lines added, about 105 of them tests. With the rule taken out, the first two Sleep tests and the pso_async one fail ("back after 300.8 ms: the 300 ms held were counted", "a bind waits for a build, but the title is not held").

Tested

  • hardware: Intel Core i7-7700K (4 cores / 8 threads), 16 GB RAM, NVIDIA GeForce RTX 5080 16 GB (driver 610.47, 32-lane waves), Windows 10 22H2 (19045), DXC 1.9.2602.17, rustc 1.100.0 stable-x86_64-pc-windows-msvc; debug for the tests, release for the title.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 on 9cdae10: 754 passed, 0 failed, 41 ignored (SKIPPED GPU tests: gpu_wave32_program_in_wave64_hardware, gpu_geometry_wave32_prefix_count_over_a_mask – no wave64).
  • game checked: the newer retail title of the README, XCL_NETWORK=0, scripted pad, binds waiting (no XCL_PSO_WAIT_MS). First, with this PR's first head (95299f4, every sleep held): main b8b1f49 + #684 (without #684 the title stops earlier, at its CopyFromSubresource call) against the same + the PR; 330 s runs, the two builds in turn, 3 rounds, release. Every run starts from the same DXIL and driver-blob cache: the folder is put back before each run to the state one earlier run of the first build left (3,051 files, 109 driver blobs).
round build the world's set-up begins end of the run dispatches skipped compute pipelines made
1 main + #684 93.2 s the title's stall exit at 164.4 s, 71.2 s after the set-up began 0 209
1 the same + 95299f4 148.7 s running at the limit (330 s), 181 s after the set-up began 0 288
2 main + #684 145.9 s the title's stall exit at 177.5 s, 31.6 s after the set-up began 0 291
2 the same + 95299f4 122.7 s running at the limit (330 s), 207 s after the set-up began 0 289
3 main + #684 111.8 s the title's stall exit at 185.5 s, 73.6 s after the set-up began 0 297
3 the same + 95299f4 157.0 s running at the limit (330 s), 173 s after the set-up began 0 298
  • So without the rule the title ends itself 31.6 to 73.6 s after its world's set-up begins, in every run (the process then stays, #967; the run script ends it 40 s later). With the rule the title was still running at the time limit in every run, 173 to 207 s after the set-up began, with no dispatch skipped and no device removal.
  • Since 25c6f7e and 9a272d4 a build or a compile the title waits for goes on at once on main; the runs above have both. Before the rebase, on 47efa2e + #684, it was the same: the title's exit 32.1 s and 31.5 s after the set-up in two runs without the rule, and running at the limit in the one run with it.
  • Reports by others in #505 fit this. With binds waiting, no bind goes on without its pipeline and no GPU wait times out, and what ends the title is its stall check (RTX 4090, 31.2 s after the set-up: https://github.com/ivall/xcl/issues/505#issuecomment-7131317484; RTX 5070 Ti, about 30 s after the last present, with thread dumps – the frame loop waits for workers that are in resolve_wait: https://github.com/ivall/xcl/issues/505#issuecomment-7133841574). @⁠sander110419 ran a local implementation of the plan on Linux / Wine: the title did not end itself in 930 s after the set-up, 0 dispatches skipped (https://github.com/ivall/xcl/issues/505#issuecomment-7133063012).
  • Second, the two rules against each other: the first head (every sleep held) and this head (100 ms or more), each on the same main b8b1f49 + #684, in turn, 330 s runs from the same cache start state as above. What the load did is counted over the 170 s after the set-up began, or up to the time limit where that came first:
run sleeps held the world's set-up begins end of the run time compared after the set-up frames draws dispatches compute pipelines made (of 10 s or more) dispatches skipped GPU wait timeouts
1 every sleep (95299f4) 151.4 s running at the limit 170 s 8 221 7287 115 (4) 0 0
1 100 ms or more (this head) 184.5 s running at the limit 146 s 20 361 7874 131 (2) 0 0
2 every sleep (95299f4) 152.5 s running at the limit 170 s 9 227 7375 120 (2) 0 0
2 100 ms or more (this head) 151.0 s running at the limit 170 s 12 262 7873 115 (3) 0 0
3 every sleep (95299f4) 149.8 s running at the limit 170 s 14 295 7733 131 (1) 0 0
3 100 ms or more (this head) 166.2 s running at the limit 164 s 14 316 7416 122 (2) 0 0
4 100 ms or more (this head) 151.0 s running at the limit 170 s 41 594 7752 128 (1) 0 0
  • So with only the longer sleeps held the title was running at the time limit in every run as well (4 of 4), nothing was skipped and no GPU wait timed out, and the load got as far or a little further in the same time. That is why this head has the narrower rule.
  • One more run of the first head is not in the table: it ended at 110.5 s, before the world's set-up, in an access violation in XCL's reading of a title texture (tiling::Chain::detile_level under title_textures::subresources). Sleep is not on that stack; one event, so I cannot say whether the timing had a part in it. It did not come in the 14 other runs of these three builds today (4 without the PR, 6 of the first head, 4 of this one).
  • What it does not do: the title is then slow, not dead. It waits in the bind for each pipeline (single builds of 43 to 182 s among them in the first table's runs, for programs of 262 KB to 787 KB of DXIL), and these runs end at their time limit with builds still going. Building the pipelines ahead and in parallel (#889, #1007) and making each build cheaper (#680) shorten that; this keeps the title alive meanwhile.

Regression run (default settings)

main:

xcl-smoke v1
commit: b8b1f491ea5e075a82293f6ebefd8eceffc74de7
gpu: NVIDIA GeForce RTX 5080
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1401 (PresentX 1401)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14319 MB

PR:

xcl-smoke v1
commit: 9cdae10f0bdf21b64a80958a87498b8f8124ac1d
gpu: NVIDIA GeForce RTX 5080
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1383 (PresentX 1383)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14320 MB

A second round of the same two binaries: main 1405 frames, PR 1377. The PR's head is on b8b1f49, the commit of the main block; main has gone on to b7aa9f3 since (no file in common with this PR, and it merges cleanly).

Not tested

  • AMD and Intel GPUs; Windows 11.
  • Other titles: only this one was run. A title that is never held in a bind takes its sleeps of 100 ms or more through the same code, in steps of at most 20 ms (the 60 s regression runs above are such runs). A check that ticks with sleeps shorter than 100 ms is not covered unless XCL_SLEEP_HOLD is set lower.
  • No log line says that sleeps are being held: a bind's long wait shows in the log when its build ends. A line while the hold goes on (suggested in the Wine report above) is not in this PR.
  • SleepEx, waits with a timeout and the title's clocks are not taken. A check that reads a clock is not covered – this title's other route (a scope older than 300 s) is one; it did not come in these runs.
  • Sound and video while the title is held: a thread that waits with sleeps of 100 ms or more stands still with it, shorter polls go on. Not judged by ear or eye.
  • Whether the world is drawn once the pipelines are built: not reached in these runs.

AI use

  • Claude Code with Claude Fable 5.2: found the approach, wrote the change and its tests, ran the suite and the title runs on the machine named, and wrote this description.

Duplicate check (16:47 UTC, 24 Nov): no open PR takes the title's Sleep or keeps its stall check from counting a bind's wait; read #889, #1007, #828, #1442 (build ahead: they shorten the wait), #1273 (with XCL_PSO_WAIT_MS, a bind does not wait for a build behind the workers' queue), #1046 (the release of GPU waits), #967 and #1062 (what happens after the title's exit), and the closed #980 (stepped over the title's exit), #533 and #267 (bound the wait and skip).

🤖 Generated with Claude Code

**@⁠imnicho** on GitHub · 2026-11-24 14:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288) `imnicho:kernelx-sleep-hold` → `main` · +184 −0 · 2 files · 1 commits · merged 2026-11-24 19:48 UTC A retail title ends itself half a minute to a little over a minute after the set-up of its world begins. Its own stall check – a thread that ticks once a second with `Sleep` and gives up after 30 ticks without a sign of the main thread, decoded in #505 – fires while the main thread is held in binds for compute pipelines the driver is still building. A console title never waits there. The ways around it so far skip the dispatches of a pipeline not built yet (`XCL_PSO_WAIT_MS`, #891: later passes then run on what the skipped ones left unwritten, #675) or change the title. Here XCL takes the title's `Sleep`, and the time a bind is waiting for a pipeline's build does not count as the title's time: the check does not tick while XCL holds the thread it watches. Only a sleep of 100 ms or more is taken so; a shorter one is a poll and goes on as before (changed after @⁠Royalflamejlh's question below, with the comparison under **Tested**). Nothing of the title is changed and no dispatch is skipped. The plan was posted in #505 (https://github.com/ivall/xcl/issues/505#issuecomment-7130709574). Part of #505. **What is in it** - `crates/xcl/src/hle/d3d12x/pso_async.rs`: `title_held()` – whether a bind is waiting in `resolve_wait` for a pipeline still being built (a counter around the wait, with or without `XCL_PSO_WAIT_MS`). Test `a_bind_waiting_for_a_build_holds_the_title`. - `crates/xcl/src/hle/kernelx.rs`: `Sleep` (a title imports it through `api-ms-win-core-synch`, which XCL resolves to kernelx): a sleep of 100 ms or more returns after `ms` of time in which the title was not held, taken in steps of at most 20 ms; a shorter sleep, a yield (`0`) and `INFINITE` are passed on as they are. `XCL_SLEEP_HOLD=<ms>` sets that length, `0` leaves the PC's `Sleep`. Tests `a_sleep_does_not_count_the_time_the_title_is_held`, `a_sleep_stops_counting_when_the_title_gets_held`, `a_short_sleep_is_passed_on_while_the_title_is_held`, `a_sleep_of_a_title_not_held_takes_its_time`. - 184 lines added, about 105 of them tests. With the rule taken out, the first two `Sleep` tests and the `pso_async` one fail ("back after 300.8 ms: the 300 ms held were counted", "a bind waits for a build, but the title is not held"). **Tested** - hardware: Intel Core i7-7700K (4 cores / 8 threads), 16 GB RAM, NVIDIA GeForce RTX 5080 16 GB (driver 610.47, 32-lane waves), Windows 10 22H2 (19045), DXC 1.9.2602.17, rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; debug for the tests, release for the title. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` on `9cdae10`: 754 passed, 0 failed, 41 ignored (SKIPPED GPU tests: `gpu_wave32_program_in_wave64_hardware`, `gpu_geometry_wave32_prefix_count_over_a_mask` – no wave64). - game checked: the newer retail title of the README, `XCL_NETWORK=0`, scripted pad, binds waiting (no `XCL_PSO_WAIT_MS`). First, with this PR's first head (`95299f4`, every sleep held): `main` `b8b1f49` + #684 (without #684 the title stops earlier, at its `CopyFromSubresource` call) against the same + the PR; 330 s runs, the two builds in turn, 3 rounds, release. Every run starts from the same DXIL and driver-blob cache: the folder is put back before each run to the state one earlier run of the first build left (3,051 files, 109 driver blobs). | round | build | the world's set-up begins | end of the run | dispatches skipped | compute pipelines made | |---|---|---|---|---|---| | 1 | `main` + #684 | 93.2 s | the title's stall exit at 164.4 s, 71.2 s after the set-up began | 0 | 209 | | 1 | the same + `95299f4` | 148.7 s | running at the limit (330 s), 181 s after the set-up began | 0 | 288 | | 2 | `main` + #684 | 145.9 s | the title's stall exit at 177.5 s, 31.6 s after the set-up began | 0 | 291 | | 2 | the same + `95299f4` | 122.7 s | running at the limit (330 s), 207 s after the set-up began | 0 | 289 | | 3 | `main` + #684 | 111.8 s | the title's stall exit at 185.5 s, 73.6 s after the set-up began | 0 | 297 | | 3 | the same + `95299f4` | 157.0 s | running at the limit (330 s), 173 s after the set-up began | 0 | 298 | - So without the rule the title ends itself 31.6 to 73.6 s after its world's set-up begins, in every run (the process then stays, #967; the run script ends it 40 s later). With the rule the title was still running at the time limit in every run, 173 to 207 s after the set-up began, with no dispatch skipped and no device removal. - Since `25c6f7e` and `9a272d4` a build or a compile the title waits for goes on at once on `main`; the runs above have both. Before the rebase, on `47efa2e` + #684, it was the same: the title's exit 32.1 s and 31.5 s after the set-up in two runs without the rule, and running at the limit in the one run with it. - Reports by others in #505 fit this. With binds waiting, no bind goes on without its pipeline and no GPU wait times out, and what ends the title is its stall check (RTX 4090, 31.2 s after the set-up: https://github.com/ivall/xcl/issues/505#issuecomment-7131317484; RTX 5070 Ti, about 30 s after the last present, with thread dumps – the frame loop waits for workers that are in `resolve_wait`: https://github.com/ivall/xcl/issues/505#issuecomment-7133841574). @⁠sander110419 ran a local implementation of the plan on Linux / Wine: the title did not end itself in 930 s after the set-up, 0 dispatches skipped (https://github.com/ivall/xcl/issues/505#issuecomment-7133063012). - Second, the two rules against each other: the first head (every sleep held) and this head (100 ms or more), each on the same `main` `b8b1f49` + #684, in turn, 330 s runs from the same cache start state as above. What the load did is counted over the 170 s after the set-up began, or up to the time limit where that came first: | run | sleeps held | the world's set-up begins | end of the run | time compared after the set-up | frames | draws | dispatches | compute pipelines made (of 10 s or more) | dispatches skipped | GPU wait timeouts | |---|---|---|---|---|---|---|---|---|---|---| | 1 | every sleep (`95299f4`) | 151.4 s | running at the limit | 170 s | 8 | 221 | 7287 | 115 (4) | 0 | 0 | | 1 | 100 ms or more (this head) | 184.5 s | running at the limit | 146 s | 20 | 361 | 7874 | 131 (2) | 0 | 0 | | 2 | every sleep (`95299f4`) | 152.5 s | running at the limit | 170 s | 9 | 227 | 7375 | 120 (2) | 0 | 0 | | 2 | 100 ms or more (this head) | 151.0 s | running at the limit | 170 s | 12 | 262 | 7873 | 115 (3) | 0 | 0 | | 3 | every sleep (`95299f4`) | 149.8 s | running at the limit | 170 s | 14 | 295 | 7733 | 131 (1) | 0 | 0 | | 3 | 100 ms or more (this head) | 166.2 s | running at the limit | 164 s | 14 | 316 | 7416 | 122 (2) | 0 | 0 | | 4 | 100 ms or more (this head) | 151.0 s | running at the limit | 170 s | 41 | 594 | 7752 | 128 (1) | 0 | 0 | - So with only the longer sleeps held the title was running at the time limit in every run as well (4 of 4), nothing was skipped and no GPU wait timed out, and the load got as far or a little further in the same time. That is why this head has the narrower rule. - One more run of the first head is not in the table: it ended at 110.5 s, before the world's set-up, in an access violation in XCL's reading of a title texture (`tiling::Chain::detile_level` under `title_textures::subresources`). `Sleep` is not on that stack; one event, so I cannot say whether the timing had a part in it. It did not come in the 14 other runs of these three builds today (4 without the PR, 6 of the first head, 4 of this one). - What it does not do: the title is then slow, not dead. It waits in the bind for each pipeline (single builds of 43 to 182 s among them in the first table's runs, for programs of 262 KB to 787 KB of DXIL), and these runs end at their time limit with builds still going. Building the pipelines ahead and in parallel (#889, #1007) and making each build cheaper (#680) shorten that; this keeps the title alive meanwhile. **Regression run** (default settings) main: ``` xcl-smoke v1 commit: b8b1f491ea5e075a82293f6ebefd8eceffc74de7 gpu: NVIDIA GeForce RTX 5080 title: retail-title seconds: 60 exit: 0x0 frames shown: 1401 (PresentX 1401) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14319 MB ``` PR: ``` xcl-smoke v1 commit: 9cdae10f0bdf21b64a80958a87498b8f8124ac1d gpu: NVIDIA GeForce RTX 5080 title: retail-title seconds: 60 exit: 0x0 frames shown: 1383 (PresentX 1383) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14320 MB ``` A second round of the same two binaries: `main` 1405 frames, PR 1377. The PR's head is on `b8b1f49`, the commit of the main block; `main` has gone on to `b7aa9f3` since (no file in common with this PR, and it merges cleanly). **Not tested** - AMD and Intel GPUs; Windows 11. - Other titles: only this one was run. A title that is never held in a bind takes its sleeps of 100 ms or more through the same code, in steps of at most 20 ms (the 60 s regression runs above are such runs). A check that ticks with sleeps shorter than 100 ms is not covered unless `XCL_SLEEP_HOLD` is set lower. - No log line says that sleeps are being held: a bind's long wait shows in the log when its build ends. A line while the hold goes on (suggested in the Wine report above) is not in this PR. - `SleepEx`, waits with a timeout and the title's clocks are not taken. A check that reads a clock is not covered – this title's other route (a scope older than 300 s) is one; it did not come in these runs. - Sound and video while the title is held: a thread that waits with sleeps of 100 ms or more stands still with it, shorter polls go on. Not judged by ear or eye. - Whether the world is drawn once the pipelines are built: not reached in these runs. **AI use** - Claude Code with Claude Fable 5.2: found the approach, wrote the change and its tests, ran the suite and the title runs on the machine named, and wrote this description. Duplicate check (16:47 UTC, 24 Nov): no open PR takes the title's `Sleep` or keeps its stall check from counting a bind's wait; read #889, #1007, #828, #1442 (build ahead: they shorten the wait), #1273 (with `XCL_PSO_WAIT_MS`, a bind does not wait for a build behind the workers' queue), #1046 (the release of GPU waits), #967 and #1062 (what happens after the title's exit), and the closed #980 (stepped over the title's exit), #533 and #267 (bound the wait and skip). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A bind of a pipeline still being built holds the title's thread until the build is
done (pso_async::resolve_wait): a console title never waits there. A retail title's
own stall check is a thread that ticks once a second with Sleep and ends the process
after 30 ticks without a sign of its main thread. While the driver built the compute
pipelines of its world the main thread was held in binds, and the title ended itself
about 30 s after the world's set-up began (#505, #232).

XCL now takes the title's Sleep (it comes in through api-ms-win-core-synch): a sleep
of 100 ms or more returns after its time has gone by in which no bind was waiting for
a build (pso_async::title_held), taken in steps of 20 ms. A shorter sleep is a poll
and is passed on as it is, like a yield and an endless sleep: a thread that paces
streaming or sound with short sleeps goes on while a bind waits. XCL_SLEEP_HOLD=<ms>
sets that length; 0 leaves the PC's Sleep as it is.

Nothing of the title is changed and no dispatch is skipped; a title that is not held
sleeps as before.

Tests: a_sleep_does_not_count_the_time_the_title_is_held,
a_sleep_stops_counting_when_the_title_gets_held,
a_short_sleep_is_passed_on_while_the_title_is_held,
a_sleep_of_a_title_not_held_takes_its_time,
a_bind_waiting_for_a_build_holds_the_title.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:49:30 +00:00
github manually merged commit 9cdae10f0b into gh-pr/1288/base 2026-11-26 04:49:32 +00:00
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-24 14:27 UTC · original

Independent overlapping-bind check on 95299f4, Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug.

I gated two synthetic pipeline builds and called the production kernelx::Sleep(60) from a third thread. A 500 ms bind returned its stand-in while the other bind was still held. Sleep stayed pending, then returned after the last bind was released and its 60 ms elapsed (664 ms total in this run). In a fresh process with XCL_SLEEP_HOLD=0, the same call returned in 61 ms while both binds were still waiting. The bounded pipeline also resolved to its built result once its gate opened.

Both runs and all three stock a_sleep_ tests passed. This covers synthetic scheduler timing. Retail and driver compile behavior were outside this run. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the scratch fixture and drafted this report.

**@⁠thehollowedone** on GitHub · 2026-11-24 14:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7134418898) Independent overlapping-bind check on [`95299f4`](https://github.com/ivall/xcl/commit/95299f47ddc4dc842045f4c1b48cc7910eb7aa68), Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug. I gated two synthetic pipeline builds and called the production `kernelx::Sleep(60)` from a third thread. A 500 ms bind returned its stand-in while the other bind was still held. `Sleep` stayed pending, then returned after the last bind was released and its 60 ms elapsed (664 ms total in this run). In a fresh process with `XCL_SLEEP_HOLD=0`, the same call returned in 61 ms while both binds were still waiting. The bounded pipeline also resolved to its built result once its gate opened. Both runs and all three stock `a_sleep_` tests passed. This covers synthetic scheduler timing. Retail and driver compile behavior were outside this run. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the scratch fixture and drafted this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 14:33 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib lib kernelx: 35 passed, 0 failed.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 14:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7134568623) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - cargo test -p xcl --lib lib kernelx: 35 passed, 0 failed. Thanks!
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 14:37 UTC · original

Full-suite run to go with the subset check above. Tested exact head 95299f4 (on its base b8b1f49).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 753 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: a_bind_waiting_for_a_build_holds_the_title, a_sleep_does_not_count_the_time_the_title_is_held, a_sleep_stops_counting_when_the_title_gets_held, a_sleep_of_a_title_not_held_takes_its_time.

Not tested

  • AMD, a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 14:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7134681472) Full-suite run to go with the subset check above. Tested exact head `95299f4` (on its base `b8b1f49`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **753 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `a_bind_waiting_for_a_build_holds_the_title`, `a_sleep_does_not_count_the_time_the_title_is_held`, `a_sleep_stops_counting_when_the_title_gets_held`, `a_sleep_of_a_title_not_held_takes_its_time`. **Not tested** - AMD, a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-24 14:53 UTC · original

Linux (Wine + vkd3d-proton) + NVIDIA test of 95299f4 on main 930e8b4 + #684, 2 runs of 140 s each way of a retail title: without it the title's watchdog ended the run at 132.6 s and 131.6 s; with it the watchdog had not fired by 140 s in either run, and pipeline builds went on to the end. Presents did not come back within those 140 s.

Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, VKD3D_CONFIG=ignore_shared_fence. RTX 4070 12 GB (driver 615.71.09, 32-lane waves), Ryzen 9 9950X3D, 64 GB RAM. Release, cross-compiled to x86_64-pc-windows-gnu (rustc 1.98.0), DXC 1.9.2609.5, XCL_NETWORK=0, XCL_PSO_PRELOAD=0, XCL_PSO_WAIT_MS unset. Retail title 1.0.2.1, the first-run screens completed once and no story progress, one A press at 44.8 s through XCL_PRESS_AT. 95299f4 merged onto main 930e8b4 + #684 (e56dbc3) without conflicts; #684 is there because main alone faults in copy_from before this point.

Tested

  • cargo test --release -p xcl --lib for a_sleep and a_bind_waiting under Wine, on the merge: 4 passed, 0 failed.
930e8b4 + #684, run 1 / 2 the same + 95299f4, run 1 / 2
last 2 s with a present 102.6 s / 102.2 s 102.3 s / 100.4 s
the title's null write at game+0x23cf683 132.6 s / 131.6 s none by 140 s / none by 140 s
the run ended at the null write at the 140 s asked for
compute pipeline builds of 4 s or more that finished after 103 s 5 (the last at 129 s) / 0 7 (the last at 140 s) / 3 (the last at 133 s)
frames presented 2163 / 2152 2180 / 2115

The card's video memory was full (9.6 to 9.7 GB local) from about 76 s in all four, as in every run of ours that reaches the world load on this 12 GB card.

Read

  • pso_async.rs:145 (title_held) is one counter for the process, and kernelx.rs:1405 (title_sleep) checks it for every Sleep the title makes. So while one bind waits, every thread of the title that paces itself with Sleep stops, not only the stall check: in these runs that is the 38 s and more from the last present to the end of the run. Is that the intent, or should only the thread that counts the ticks be held? A thread that polls with Sleep(1) for streaming or sound would resume all at once when the build ends.
  • pso_async.rs:543: the hold covers the wait in resolve_wait with or without XCL_PSO_WAIT_MS, as the description says. With the limit unset, as here, nothing was skipped (0 draws and 0 dispatches skipped in both runs with the change), so what it buys is time: the builds that were cut off at 132 s without it went on.
  • These runs stop at 140 s, so they do not show whether the title goes on once the builds are done; the description's run does.

Not tested: past 140 s (the card would be measured, not the change); XCL_SLEEP_HOLD=0; the preload of #690 on; the rest of the test suite; AMD and Intel.

AI use: Claude Code (Claude Fable 5.2) read the diff, built the trees, ran the tests and the four runs with XCL_PRESS_AT, compared the logs and wrote this report.

**@⁠Royalflamejlh** on GitHub · 2026-11-24 14:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7135126517) Linux (Wine + vkd3d-proton) + NVIDIA test of `95299f4` on `main` `930e8b4` + #684, 2 runs of 140 s each way of a retail title: without it the title's watchdog ended the run at 132.6 s and 131.6 s; with it the watchdog had not fired by 140 s in either run, and pipeline builds went on to the end. Presents did not come back within those 140 s. **Setup:** Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, `VKD3D_CONFIG=ignore_shared_fence`. RTX 4070 12 GB (driver 615.71.09, 32-lane waves), Ryzen 9 9950X3D, 64 GB RAM. Release, cross-compiled to `x86_64-pc-windows-gnu` (rustc 1.98.0), DXC 1.9.2609.5, `XCL_NETWORK=0`, `XCL_PSO_PRELOAD=0`, `XCL_PSO_WAIT_MS` unset. Retail title 1.0.2.1, the first-run screens completed once and no story progress, one A press at 44.8 s through `XCL_PRESS_AT`. `95299f4` merged onto `main` `930e8b4` + #684 (`e56dbc3`) without conflicts; #684 is there because `main` alone faults in `copy_from` before this point. **Tested** - `cargo test --release -p xcl --lib` for `a_sleep` and `a_bind_waiting` under Wine, on the merge: 4 passed, 0 failed. | | `930e8b4` + #684, run 1 / 2 | the same + `95299f4`, run 1 / 2 | |---|---|---| | last 2 s with a present | 102.6 s / 102.2 s | 102.3 s / 100.4 s | | the title's null write at `game+0x23cf683` | 132.6 s / 131.6 s | none by 140 s / none by 140 s | | the run ended | at the null write | at the 140 s asked for | | compute pipeline builds of 4 s or more that finished after 103 s | 5 (the last at 129 s) / 0 | 7 (the last at 140 s) / 3 (the last at 133 s) | | frames presented | 2163 / 2152 | 2180 / 2115 | The card's video memory was full (9.6 to 9.7 GB local) from about 76 s in all four, as in every run of ours that reaches the world load on this 12 GB card. **Read** - `pso_async.rs:145` (`title_held`) is one counter for the process, and `kernelx.rs:1405` (`title_sleep`) checks it for every `Sleep` the title makes. So while one bind waits, every thread of the title that paces itself with `Sleep` stops, not only the stall check: in these runs that is the 38 s and more from the last present to the end of the run. Is that the intent, or should only the thread that counts the ticks be held? A thread that polls with `Sleep(1)` for streaming or sound would resume all at once when the build ends. - `pso_async.rs:543`: the hold covers the wait in `resolve_wait` with or without `XCL_PSO_WAIT_MS`, as the description says. With the limit unset, as here, nothing was skipped (0 draws and 0 dispatches skipped in both runs with the change), so what it buys is time: the builds that were cut off at 132 s without it went on. - These runs stop at 140 s, so they do not show whether the title goes on once the builds are done; the description's run does. **Not tested:** past 140 s (the card would be measured, not the change); `XCL_SLEEP_HOLD=0`; the preload of #690 on; the rest of the test suite; AMD and Intel. **AI use:** Claude Code (Claude Fable 5.2) read the diff, built the trees, ran the tests and the four runs with `XCL_PRESS_AT`, compared the logs and wrote this report.
Author
Owner

@⁠jessenic on GitHub · 2026-11-24 15:04 UTC · original

Test report for 95299f4, on the retail title's story load, without pre-built pipelines.

Tested

  • RTX 5070 Ti 16 GB (driver 610.88), Ryzen 7 9700X, 32 GB RAM (72 GB commit limit), Windows 11 Pro 26300, rustc 1.97.0, release build.
  • Tree: main 930e8b4 + this PR (95299f4) + #684 (e56dbc3), merged locally.
  • XCL_NETWORK=0, XCL_ACTIVITY=1, no XCL_PSO_WAIT_MS (binds wait). Scripted input (XCL_PRESS_AT), save past the first-run menus. Driver-blob and DXIL caches kept from earlier runs. No xcl pipelines pass.
  • cargo test -p xcl --lib with the PR's tests and fine_timer_makes_short_sleeps_short: 5 passed, 0 failed. The whole suite was not run.

Runs (the same build and caches; the off run uses XCL_SLEEP_HOLD=0)

run first #101 last present end
rule off 89.3 s ~100 s +0x23cf683 at 129.6 s
rule on, 330 s 82.3 s ~104 s still running at the limit, exit 0
rule on again, 420 s 97.6 s ~102 s still running at the limit, exit 0
  • Both rule-on runs: 0 draws and 0 dispatches skipped, no device removal, no GPU-wait timeout. Commit 27.9 → 29.7 GB.
  • Slow, not dead, as you describe. After the last present the title binds and builds its compute pipelines one after another. Bursts of up to ~6,700 dispatches follow each finished build, then 0–2 draws per 2 s.
  • Second rule-on run: 230 compute pipelines compiled in the run, 660 s of driver time in all. Per minute after 120 s: 25, 9, 17, 3 and 3 builds, the longest 28–94 s each. It was still building new ones at 420 s, and no frame was presented after ~102 s.
  • So on this card, without the offline pass, the rule keeps the title alive, but the world load needs far more than 7 minutes of on-demand builds.

Not tested

  • With xcl pipelines (#759) or #889 / #1007. AMD. XCL_PSO_WAIT_MS together with the rule.

AI use: Claude Code (Claude Opus 5.5) built the tree, ran the runs on this PC, read the logs and wrote this report.

**@⁠jessenic** on GitHub · 2026-11-24 15:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7135412447) Test report for 95299f4, on the retail title's story load, without pre-built pipelines. **Tested** - RTX 5070 Ti 16 GB (driver 610.88), Ryzen 7 9700X, 32 GB RAM (72 GB commit limit), Windows 11 Pro 26300, rustc 1.97.0, release build. - Tree: `main` `930e8b4` + this PR (95299f4) + #684 (e56dbc3), merged locally. - `XCL_NETWORK=0`, `XCL_ACTIVITY=1`, no `XCL_PSO_WAIT_MS` (binds wait). Scripted input (`XCL_PRESS_AT`), save past the first-run menus. Driver-blob and DXIL caches kept from earlier runs. No `xcl pipelines` pass. - `cargo test -p xcl --lib` with the PR's tests and `fine_timer_makes_short_sleeps_short`: 5 passed, 0 failed. The whole suite was not run. **Runs** (the same build and caches; the off run uses `XCL_SLEEP_HOLD=0`) | run | first `#101` | last present | end | |---|---|---|---| | rule off | 89.3 s | ~100 s | `+0x23cf683` at 129.6 s | | rule on, 330 s | 82.3 s | ~104 s | still running at the limit, exit 0 | | rule on again, 420 s | 97.6 s | ~102 s | still running at the limit, exit 0 | - Both rule-on runs: 0 draws and 0 dispatches skipped, no device removal, no GPU-wait timeout. Commit 27.9 → 29.7 GB. - Slow, not dead, as you describe. After the last present the title binds and builds its compute pipelines one after another. Bursts of up to ~6,700 dispatches follow each finished build, then 0–2 draws per 2 s. - Second rule-on run: 230 compute pipelines compiled in the run, 660 s of driver time in all. Per minute after 120 s: 25, 9, 17, 3 and 3 builds, the longest 28–94 s each. It was still building new ones at 420 s, and no frame was presented after ~102 s. - So on this card, without the offline pass, the rule keeps the title alive, but the world load needs far more than 7 minutes of on-demand builds. **Not tested** - With `xcl pipelines` (#759) or #889 / #1007. AMD. `XCL_PSO_WAIT_MS` together with the rule. *AI use: Claude Code (Claude Opus 5.5) built the tree, ran the runs on this PC, read the logs and wrote this report.*
Author
Owner

@⁠JoaoPauluu on GitHub · 2026-11-24 15:28 UTC · original

A regression run under Wine on Linux, on a retail title.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. 95299f4 as it is and main 930e8b4, no uncommitted changes. This PR's merge base is b8b1f49; the main runs are of 930e8b4, a later commit of main. Retail title 1.0.2.1, scripts/linux/smoke.sh (#257) for 60 s, no input. Nine runs in a row, main first and last, other PRs in between.
  • A regression check: I did not check whether GTA VI reaches the changed code in these 60 s.

Regression run

main (first run):

xcl-smoke v1
commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1371 (PresentX 1371)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

this PR:

xcl-smoke v1
commit: 95299f47ddc4dc842045f4c1b48cc7910eb7aa68
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1296 (PresentX 1296)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

The last main run: 1338 frames, exit: 0x0, no device removal, no crash. Under Wine, peak commit reads 0 MB, so these blocks do not check memory.

Not tested

  • the test suite on this head; native Windows; AMD.

AI use

  • Claude Code (Claude Opus 5.5) built both commits, ran the runs and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
**@⁠JoaoPauluu** on GitHub · 2026-11-24 15:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7136080391) A regression run under Wine on Linux, on a retail title. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `95299f4` as it is and `main` `930e8b4`, no uncommitted changes. This PR's merge base is `b8b1f49`; the `main` runs are of `930e8b4`, a later commit of `main`. Retail title 1.0.2.1, `scripts/linux/smoke.sh` (#257) for 60 s, no input. Nine runs in a row, `main` first and last, other PRs in between. - A regression check: I did not check whether GTA VI reaches the changed code in these 60 s. **Regression run** main (first run): ``` xcl-smoke v1 commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1371 (PresentX 1371) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` this PR: ``` xcl-smoke v1 commit: 95299f47ddc4dc842045f4c1b48cc7910eb7aa68 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1296 (PresentX 1296) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` The last `main` run: 1338 frames, `exit: 0x0`, no device removal, no crash. Under Wine, `peak commit` reads 0 MB, so these blocks do not check memory. **Not tested** - the test suite on this head; native Windows; AMD. **AI use** - Claude Code (Claude Opus 5.5) built both commits, ran the runs and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
Author
Owner

@⁠mastrr9 on GitHub · 2026-11-24 15:30 UTC · original

Verified head 95299f47ddc4dc842045f4c1b48cc7910eb7aa68 on Windows 11 / NVIDIA RTX 5080 (DXC 1.9.2602.17, Rust MSVC, debug build, clean worktree):

  • cargo build --workspace + cargo test --workspace -- --test-threads=4: 753 passed, 0 failed, 41 ignored (0 new compiler warnings).

Not tested: AMD, Linux/Wine, retail smoke (scripts/smoke.ps1).
AI use: T3 Code (Antigravity / Claude Sonnet 5.5) ran the build and tests on our RTX 5080 and drafted this report.

**@⁠mastrr9** on GitHub · 2026-11-24 15:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7136147385) Verified head `95299f47ddc4dc842045f4c1b48cc7910eb7aa68` on Windows 11 / NVIDIA RTX 5080 (DXC 1.9.2602.17, Rust MSVC, debug build, clean worktree): - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4`: **753 passed, 0 failed, 41 ignored** (0 new compiler warnings). **Not tested:** AMD, Linux/Wine, retail smoke (`scripts/smoke.ps1`). **AI use:** T3 Code (Antigravity / Claude Sonnet 5.5) ran the build and tests on our RTX 5080 and drafted this report.
Author
Owner

@⁠imnicho on GitHub · 2026-11-24 15:39 UTC · original

@⁠Royalflamejlh thanks for the runs and for reading the diff. On your question:

Yes, as written it is every Sleep of the title, on purpose: XCL does not know which thread counts the ticks, so the rule is "the time a bind is held is not the title's time" for all of them. The cost you name is real. A thread that polls with short sleeps (streaming, sound) stands still for the hold as well and gets going again all at once; the description's "Not tested" only says that sound and video were not judged.

A narrower rule is possible without knowing the thread: pass a short sleep on as it is and hold only a sleep that is long enough to be a wait for time. @⁠sander110419's local version of the plan did that (100 ms or more) and their title stayed alive under Wine for 930 s after the set-up, so a threshold does not have to cost the fix. What I do not know is whether it changes how the load goes on (pipelines built and dispatches in the same time), or lets another time-out of the title through.

I will measure it here, the PR as it is against a variant that holds only sleeps of 100 ms or more: same main + #684, the same cache start state for every run, three rounds in turn. I will post the numbers in this thread and change the PR to the narrower rule if it keeps the title alive in every run and the load is not worse.

AI use: Claude Code with Claude Fable 5.2 wrote this reply.

**@⁠imnicho** on GitHub · 2026-11-24 15:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7136397544) @⁠Royalflamejlh thanks for the runs and for reading the diff. On your question: Yes, as written it is every `Sleep` of the title, on purpose: XCL does not know which thread counts the ticks, so the rule is "the time a bind is held is not the title's time" for all of them. The cost you name is real. A thread that polls with short sleeps (streaming, sound) stands still for the hold as well and gets going again all at once; the description's "Not tested" only says that sound and video were not judged. A narrower rule is possible without knowing the thread: pass a short sleep on as it is and hold only a sleep that is long enough to be a wait for time. @⁠sander110419's local version of the plan did that (100 ms or more) and their title stayed alive under Wine for 930 s after the set-up, so a threshold does not have to cost the fix. What I do not know is whether it changes how the load goes on (pipelines built and dispatches in the same time), or lets another time-out of the title through. I will measure it here, the PR as it is against a variant that holds only sleeps of 100 ms or more: same `main` + #684, the same cache start state for every run, three rounds in turn. I will post the numbers in this thread and change the PR to the narrower rule if it keeps the title alive in every run and the load is not worse. AI use: Claude Code with Claude Fable 5.2 wrote this reply.
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-24 16:00 UTC · original

Test report: #1288 (95299f4) with #751 (1a480bc) on AMD RDNA4, Windows: the watchdog no longer fires, and the intro renders

Tested

  • RX 9070 (RDNA4), driver 32.0.32015.7029 · Ryzen 9 7945HX3D · 32 GB · Windows 11 Pro 26300 · release build
  • Tree: main 930e8b4 + #751 1a480bc + #1288 95299f4, both applied cleanly. Also one local patch that skips InitializeApiImplEx2 (it hangs for this title here). XCL_NETWORK=0, otherwise defaults.
  • Retail title, story intro, one 15-minute run. The driver blob cache was partly warm from earlier runs (137 compute PSOs from kept blobs, 281 built by the driver).

Why #751 is in the tree: on a warm run of plain main, the run died at 1m14s with 0xC0000005 in VCRUNTIME140.dll (memcpy) ← title_textures::subresources ← a subresources_on worker, which is the fault #751 fixes. With #751 alone, the run went past that point and hit the usual +0x23cf683 watchdog at 2m50s.

main (cold) main (warm) + #751 (warm) + #751 + #1288
Result watchdog at 2m22s memcpy fault at 1m14s watchdog at 2m50s no crash; killed by my 15-min timeout
Frames presented none shown (2421 by the title's count) — — first frame at 3840×2160, 1500 frames at ~30 fps

After 1500 frames, presents stop for the rest of the run (about 10 minutes). During that time the log shows 85 compute PSOs taking 554 s of driver time in total, the longest 47.1 s. So the title is held in binds for pipelines the driver is still building, as #1288 describes, and its stall check no longer counts that time. #1288 does what it says on AMD. The remaining wall is the driver's compile time for these programs, the subject of #1269.

Not tested

  • One run only; no clean (non-warm) run with #1288; #1288 without #751.
  • Whether frames would resume after the builds finish: the run was cut at 15 minutes.
  • The test suite was not run; no scripts/smoke.ps1 pair.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title, extracted counts and timings from the XCL logs, symbolised the memcpy fault against xcl.pdb, and drafted this report.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-24 16:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7136962935) **Test report: #1288 (`95299f4`) with #751 (`1a480bc`) on AMD RDNA4, Windows: the watchdog no longer fires, and the intro renders** **Tested** - RX 9070 (RDNA4), driver 32.0.32015.7029 · Ryzen 9 7945HX3D · 32 GB · Windows 11 Pro 26300 · release build - Tree: `main` `930e8b4` + #751 `1a480bc` + #1288 `95299f4`, both applied cleanly. Also one local patch that skips `InitializeApiImplEx2` (it hangs for this title here). `XCL_NETWORK=0`, otherwise defaults. - Retail title, story intro, one 15-minute run. The driver blob cache was partly warm from earlier runs (137 compute PSOs from kept blobs, 281 built by the driver). Why #751 is in the tree: on a warm run of plain `main`, the run died at 1m14s with `0xC0000005` in `VCRUNTIME140.dll` (memcpy) ← `title_textures::subresources` ← a `subresources_on` worker, which is the fault #751 fixes. With #751 alone, the run went past that point and hit the usual `+0x23cf683` watchdog at 2m50s. | | `main` (cold) | `main` (warm) | + #751 (warm) | **+ #751 + #1288** | |---|---|---|---|---| | Result | watchdog at 2m22s | memcpy fault at 1m14s | watchdog at 2m50s | **no crash; killed by my 15-min timeout** | | Frames presented | none shown (2421 by the title's count) | — | — | **first frame at 3840×2160, 1500 frames at ~30 fps** | After 1500 frames, presents stop for the rest of the run (about 10 minutes). During that time the log shows **85 compute PSOs taking 554 s of driver time in total, the longest 47.1 s**. So the title is held in binds for pipelines the driver is still building, as #1288 describes, and its stall check no longer counts that time. #1288 does what it says on AMD. The remaining wall is the driver's compile time for these programs, the subject of #1269. **Not tested** - One run only; no clean (non-warm) run with #1288; #1288 without #751. - Whether frames would resume after the builds finish: the run was cut at 15 minutes. - The test suite was not run; no `scripts/smoke.ps1` pair. **AI use:** Claude Code (Claude Opus 5.5) built the trees, ran the title, extracted counts and timings from the XCL logs, symbolised the memcpy fault against `xcl.pdb`, and drafted this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 16:04 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib -- --test-threads=1: all passed, 0 failed, 21 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 16:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7137072031) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib -- --test-threads=1`: all passed, 0 failed, 21 ignored. Thanks!
Author
Owner

@⁠iLucasRT on GitHub · 2026-11-24 16:35 UTC · original

Test report: #1288 (95299f4) on AMD RDNA3, Windows: the watchdog no longer fires (2 of 2 runs); presents do not come back within 300 s, and audio decoding nearly stops

Tested

  • RX 7900 XTX 24 GB (RDNA3, native wave64), driver 32.0.32029.2010 · Ryzen 7 5800X3D · 64 GB RAM · Windows 11 Pro 26300 · rustc 1.100.0, DXC 1.9.2602.17, release builds, game on NVMe
  • main b7aa9f3 against b7aa9f3 + this PR's diff (95299f4, applied cleanly with git apply, uncommitted). Without #684 and #751.
  • Retail title 1.0.2.1, XCL_NETWORK=0, XCL_ACTIVITY=1, XCL_RUN_SECONDS=300, A every 5 s (XCL_PRESS_A_AT), binds waiting (no XCL_PSO_WAIT_MS).
  • Every run starts from the same title data and XCL caches (DXIL, driver blobs), put back from one earlier run of main. Order: main, PR, PR, main.
  • The PR's 4 tests and fine_timer_makes_short_sleeps_short pass on that tree (5 passed, 0 failed).
main r1 main r2 PR r1 PR r2
end +0x23cf683 at 112.7 s +0x23cf683 at 115.7 s ran to 300 s, exit 0 ran to 300 s, exit 0
last 2 s interval with a present ends 84.1 s 86.1 s 84.1 s 82.1 s
frames presented 1514 1557 1507 1503
dispatches after 88 s 244 583 8020 6902
compute pipelines made (from kept blobs) 111 (9) 115 (9) 254 (9) 308 (10)
driver builds of 1 s or more 17 11 66 26
driver time in all (sum over threads) 89.9 s 31.7 s 420.4 s 108.5 s
peak commit / local VRAM 31.0 / 15.7 GB 32.8 / 15.9 GB 33.2 / 15.9 GB 35.1 / 17.0 GB
xapu packets decoded (report.json) 45465 72905 3176 2973
  • main: the stall exit comes 28.7 s and 29.6 s after the last present. With the PR it does not come in either run; pipelines are still being built at the end (last one at 296 s). No present after 82–84 s. No device removal, no failed pipeline, no GPU-wait timeout. Dispatches skipped: 0 in the last counter line of each log (78–153 s; it does not cover the rest).
  • DirectStorage requests that failed (0x89240009, 54–78 s): 259 and 1686 on main, 5516 and 15 with the PR. They vary too much between equal runs to say anything about the PR.
  • Driver times drop between the first and second round of both builds; the AMD driver's own disk cache was not put back between runs, so they should not be compared across builds.
  • Sound: up to about 81 s all four runs decode ~50 Opus packets/s. On main this goes up to ~1300–1600 (r1) and ~1900–2700 (r2) packets/s until the crash. With the PR there are no more xapu lines after 81 s, and ~430–620 more packets in total by 300 s. I did not listen to these runs; this is the counter only. It is in line with the "threads that pace themselves with Sleep stand still" point above.
  • The heavy programs of PR r2 come in the same order as in @⁠HQasper's report (430,604 / 359,908 / 411,296 / 339,724 / 423,444 B of DXIL, first builds at 234–297 s). My run ends before a second round could show.

Not tested

  • The PR's own base; runs longer than 300 s; XCL_SLEEP_HOLD=0; with #684, #751, #889 or #1007; other titles.
  • The full test suite and scripts/smoke.ps1 (no smoke blocks); sound by ear; more than 2 runs per build.

AI use: Claude Code (Claude Opus 5.5) read the diff, built the trees, ran the unit tests and the runs on this machine, read the logs and wrote this report.

**@⁠iLucasRT** on GitHub · 2026-11-24 16:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7137904631) **Test report: #1288 (`95299f4`) on AMD RDNA3, Windows: the watchdog no longer fires (2 of 2 runs); presents do not come back within 300 s, and audio decoding nearly stops** **Tested** - RX 7900 XTX 24 GB (RDNA3, native wave64), driver 32.0.32029.2010 · Ryzen 7 5800X3D · 64 GB RAM · Windows 11 Pro 26300 · rustc 1.100.0, DXC 1.9.2602.17, release builds, game on NVMe - `main` `b7aa9f3` against `b7aa9f3` + this PR's diff (`95299f4`, applied cleanly with `git apply`, uncommitted). Without #684 and #751. - Retail title 1.0.2.1, `XCL_NETWORK=0`, `XCL_ACTIVITY=1`, `XCL_RUN_SECONDS=300`, A every 5 s (`XCL_PRESS_A_AT`), binds waiting (no `XCL_PSO_WAIT_MS`). - Every run starts from the same title data and XCL caches (DXIL, driver blobs), put back from one earlier run of `main`. Order: main, PR, PR, main. - The PR's 4 tests and `fine_timer_makes_short_sleeps_short` pass on that tree (5 passed, 0 failed). | | `main` r1 | `main` r2 | PR r1 | PR r2 | |---|---|---|---|---| | end | `+0x23cf683` at 112.7 s | `+0x23cf683` at 115.7 s | ran to 300 s, exit 0 | ran to 300 s, exit 0 | | last 2 s interval with a present ends | 84.1 s | 86.1 s | 84.1 s | 82.1 s | | frames presented | 1514 | 1557 | 1507 | 1503 | | dispatches after 88 s | 244 | 583 | 8020 | 6902 | | compute pipelines made (from kept blobs) | 111 (9) | 115 (9) | 254 (9) | 308 (10) | | driver builds of 1 s or more | 17 | 11 | 66 | 26 | | driver time in all (sum over threads) | 89.9 s | 31.7 s | 420.4 s | 108.5 s | | peak commit / local VRAM | 31.0 / 15.7 GB | 32.8 / 15.9 GB | 33.2 / 15.9 GB | 35.1 / 17.0 GB | | `xapu` packets decoded (`report.json`) | 45465 | 72905 | 3176 | 2973 | - `main`: the stall exit comes 28.7 s and 29.6 s after the last present. With the PR it does not come in either run; pipelines are still being built at the end (last one at 296 s). No present after 82–84 s. No device removal, no failed pipeline, no GPU-wait timeout. Dispatches skipped: 0 in the last counter line of each log (78–153 s; it does not cover the rest). - DirectStorage requests that failed (`0x89240009`, 54–78 s): 259 and 1686 on `main`, 5516 and 15 with the PR. They vary too much between equal runs to say anything about the PR. - Driver times drop between the first and second round of both builds; the AMD driver's own disk cache was not put back between runs, so they should not be compared across builds. - **Sound:** up to about 81 s all four runs decode ~50 Opus packets/s. On `main` this goes up to ~1300–1600 (r1) and ~1900–2700 (r2) packets/s until the crash. With the PR there are no more `xapu` lines after 81 s, and ~430–620 more packets in total by 300 s. I did not listen to these runs; this is the counter only. It is in line with the "threads that pace themselves with `Sleep` stand still" point above. - The heavy programs of PR r2 come in the same order as in @⁠HQasper's report (430,604 / 359,908 / 411,296 / 339,724 / 423,444 B of DXIL, first builds at 234–297 s). My run ends before a second round could show. **Not tested** - The PR's own base; runs longer than 300 s; `XCL_SLEEP_HOLD=0`; with #684, #751, #889 or #1007; other titles. - The full test suite and `scripts/smoke.ps1` (no smoke blocks); sound by ear; more than 2 runs per build. **AI use:** Claude Code (Claude Opus 5.5) read the diff, built the trees, ran the unit tests and the runs on this machine, read the logs and wrote this report.
Author
Owner

@⁠HQasper on GitHub · 2026-11-24 16:09 UTC · original · edited 2026-11-24 16:39 UTC

RTX 5090 test of #1288 (95299f4): the watchdog no longer ends the run, but presents stay at 0 from 82 s to 300 s

Setup

  • NVIDIA GeForce RTX 5090 (32 GB, 32-lane waves), driver 32.0.16.2124; AMD Ryzen 9 9950X3D; Windows 11 Pro 26300
  • rustc 1.100.0, release builds; DXC 1.9.2602.17 (21d28f72)
  • Retail title 1.0.2.1 (TitleId 7952987A), first-run setup already done (saves present)
  • Every run: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_AT=30:A,40:A, scripts/smoke.ps1 -Seconds 300; no XCL_PSO_WAIT_MS

Runs

run commit caches end frames presents stop peak commit
main 1 930e8b4 DXIL warm, driver blobs partly +0x23cf683 write at 0x0, 110.1 s 1756 ~82 s 28.8 GB
main 2 930e8b4 warmer +0x23cf683, 110.4 s 1792 ~82 s 29.5 GB
#1288 1 95299f4 warm 0xC0000005 at 46.7 s in XCL (see below) 1263 – 16.1 GB
#1288 2 95299f4 warm ran to 300 s, no crash 1767 ~82 s 31.6 GB
#1288 3 95299f4 + 425 compute pipelines from xcl shaders --precompile --only cs --pipelines ran to 300 s, no crash 1765 ~82 s 32.4 GB
  • On main, ListX #101 is first called at 62–78 s, presents stop at ~82 s and the title's watchdog fires about 30 s later in both runs.
  • With #1288 the watchdog did not fire in either full run (300 s each). The title still never got past the world load: 0 presents from ~82 s to 300 s, with only 0–13 dispatches per 2 s. So on this card #1288 turns the crash into a stall that did not end within 300 s.
  • #1288 run 1 ended at 46.7 s, right after the story load began, with 0xc0000005 in VCRUNTIME140.dll+0x1c45a (read at 0xc49059f00) on a title_textures::subresources_on worker: tiling::Chain::detile_level (tiling.rs:438) ← title_textures::subresources (title_textures.rs:1182). That is the in-place title memory read that #751 replaces. I don't think #1288 causes it: the code is not touched, and the same build ran clean twice after.

What the title waits for in the #1288 runs

  • Run 2 (blobs partly warm): after 82 s, one compute pipeline after another is built in the driver, each taking 1–33 s (52 builds over 1 s; the biggest is 928,928 B DXIL in 33.4 s).
  • Run 3 (warmer, 215 pipelines from disk blobs): from 120 s to 297 s, one thread builds 8 compute programs (430,604 / 359,908 / 411,296 / 339,724 / 423,444 / 352,852 / 404,008 / 332,644 B DXIL, 4.8–8.1 s each) and then the same 8 sizes again, in the same order. The driver-blob directory has two files with different DXIL hashes for each of these 8 lengths (one from each round). So the second round is not a cache miss. A shader dump shows that they are the title's own permutation pairs: two console programs whose code is the same except for the inline multiplier of one s_mul_i32 (e.g. 23 vs 31) and the header nop literals. Each one needs its own driver compile (details in #505: https://github.com/ivall/xcl/issues/505#issuecomment-7137870075).
  • xcl shaders shaders.rpf --precompile --only cs --pipelines saved 425 pipelines in ~45 min, then stayed on a single driver compile for over 30 min at 85 GB private / one core, so I stopped it (it can be resumed). This matches what #1278 says about the screen-probe programs.

Tests on 95299f4

  • cargo test --workspace -- --test-threads=4: 753 passed, 0 failed, 41 ignored (19 test binaries)
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)
  • The PR's own tests (a_sleep_*, a_bind_waiting_for_a_build_holds_the_title) pass

Not tested

  • #1288 rebased onto 930e8b4 (the PR head is on b8b1f49, so it doesn't have 930e8b4's copy-scratch fix); runs longer than 300 s; AMD; XCL_PSO_WAIT_MS together with #1288; #1273 / #1278 on this machine.

Smoke blocks (same title, 300 s)

xcl-smoke v1
commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56
gpu: NVIDIA GeForce RTX 5090
title: game files
seconds: 300
exit: 0xc0000005
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 2
peak commit: 29512 MB
xcl-smoke v1
commit: 95299f47ddc4dc842045f4c1b48cc7910eb7aa68
gpu: NVIDIA GeForce RTX 5090
title: game files
seconds: 300
exit: 0x0
frames shown: 1765 (PresentX 1765)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 32429 MB

AI use: Claude Code with Claude Opus 5.5 ran the builds, tests and game runs on this machine, read the logs and wrote this report.

**@⁠HQasper** on GitHub · 2026-11-24 16:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7137213934) · edited 2026-11-24 16:39 UTC ### RTX 5090 test of #1288 (`95299f4`): the watchdog no longer ends the run, but presents stay at 0 from 82 s to 300 s **Setup** - NVIDIA GeForce RTX 5090 (32 GB, 32-lane waves), driver 32.0.16.2124; AMD Ryzen 9 9950X3D; Windows 11 Pro 26300 - rustc 1.100.0, release builds; DXC 1.9.2602.17 (21d28f72) - Retail title 1.0.2.1 (TitleId 7952987A), first-run setup already done (saves present) - Every run: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_AT=30:A,40:A`, `scripts/smoke.ps1 -Seconds 300`; no `XCL_PSO_WAIT_MS` **Runs** | run | commit | caches | end | frames | presents stop | peak commit | |---|---|---|---|---|---|---| | main 1 | `930e8b4` | DXIL warm, driver blobs partly | `+0x23cf683` write at 0x0, 110.1 s | 1756 | ~82 s | 28.8 GB | | main 2 | `930e8b4` | warmer | `+0x23cf683`, 110.4 s | 1792 | ~82 s | 29.5 GB | | #1288 1 | `95299f4` | warm | 0xC0000005 at 46.7 s in XCL (see below) | 1263 | – | 16.1 GB | | #1288 2 | `95299f4` | warm | ran to 300 s, no crash | 1767 | ~82 s | 31.6 GB | | #1288 3 | `95299f4` | + 425 compute pipelines from `xcl shaders --precompile --only cs --pipelines` | ran to 300 s, no crash | 1765 | ~82 s | 32.4 GB | - On `main`, `ListX #101` is first called at 62–78 s, presents stop at ~82 s and the title's watchdog fires about 30 s later in both runs. - With #1288 the watchdog did not fire in either full run (300 s each). The title still never got past the world load: 0 presents from ~82 s to 300 s, with only 0–13 dispatches per 2 s. So on this card #1288 turns the crash into a stall that did not end within 300 s. - **#1288 run 1** ended at 46.7 s, right after the story load began, with `0xc0000005` in `VCRUNTIME140.dll+0x1c45a` (read at `0xc49059f00`) on a `title_textures::subresources_on` worker: `tiling::Chain::detile_level` (`tiling.rs:438`) ← `title_textures::subresources` (`title_textures.rs:1182`). That is the in-place title memory read that #751 replaces. I don't think #1288 causes it: the code is not touched, and the same build ran clean twice after. **What the title waits for in the #1288 runs** - Run 2 (blobs partly warm): after 82 s, one compute pipeline after another is built in the driver, each taking 1–33 s (52 builds over 1 s; the biggest is 928,928 B DXIL in 33.4 s). - Run 3 (warmer, 215 pipelines from disk blobs): from 120 s to 297 s, one thread builds 8 compute programs (430,604 / 359,908 / 411,296 / 339,724 / 423,444 / 352,852 / 404,008 / 332,644 B DXIL, 4.8–8.1 s each) **and then the same 8 sizes again**, in the same order. The driver-blob directory has two files with different DXIL hashes for each of these 8 lengths (one from each round). So the second round is not a cache miss. A shader dump shows that they are the title's own permutation pairs: two console programs whose code is the same except for the inline multiplier of one `s_mul_i32` (e.g. 23 vs 31) and the header nop literals. Each one needs its own driver compile (details in #505: https://github.com/ivall/xcl/issues/505#issuecomment-7137870075). - `xcl shaders shaders.rpf --precompile --only cs --pipelines` saved 425 pipelines in ~45 min, then stayed on a single driver compile for over 30 min at 85 GB private / one core, so I stopped it (it can be resumed). This matches what #1278 says about the screen-probe programs. **Tests on `95299f4`** - `cargo test --workspace -- --test-threads=4`: 753 passed, 0 failed, 41 ignored (19 test binaries) - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64) - The PR's own tests (`a_sleep_*`, `a_bind_waiting_for_a_build_holds_the_title`) pass **Not tested** - #1288 rebased onto `930e8b4` (the PR head is on `b8b1f49`, so it doesn't have `930e8b4`'s copy-scratch fix); runs longer than 300 s; AMD; `XCL_PSO_WAIT_MS` together with #1288; #1273 / #1278 on this machine. **Smoke blocks** (same title, 300 s) ``` xcl-smoke v1 commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56 gpu: NVIDIA GeForce RTX 5090 title: game files seconds: 300 exit: 0xc0000005 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 2 peak commit: 29512 MB ``` ``` xcl-smoke v1 commit: 95299f47ddc4dc842045f4c1b48cc7910eb7aa68 gpu: NVIDIA GeForce RTX 5090 title: game files seconds: 300 exit: 0x0 frames shown: 1765 (PresentX 1765) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 32429 MB ``` *AI use: Claude Code with Claude Opus 5.5 ran the builds, tests and game runs on this machine, read the logs and wrote this report.*
Author
Owner

@⁠imnicho on GitHub · 2026-11-24 16:47 UTC · original

@⁠Royalflamejlh the comparison is done, and the PR now has the narrower rule (head 9cdae10, one commit; the description has both tables).

The first head (every sleep held, 95299f4) against the new rule (only a sleep of 100 ms or more is held), each on main b8b1f49 + #684, in turn, 330 s runs from the same cache start state. Counted over the 170 s after the world's set-up began, or up to the time limit where that came first:

sleeps held runs end frames draws dispatches skipped GPU wait timeouts
every sleep 3 running at the limit, 3 of 3 8, 9, 14 221, 227, 295 7287, 7375, 7733 0 0
100 ms or more 4 running at the limit, 4 of 4 20, 12, 14, 41 361, 262, 316, 594 7874, 7873, 7416, 7752 0 0
  • So the narrower rule keeps the title alive as well, and the load gets as far or a little further in the same time. Two of its four runs are counted over a shorter time (146 and 164 s: their set-up began later).
  • One more run of the first head is not in the table: it ended at 110.5 s, before the world's set-up, in an access violation in XCL's reading of a title texture (tiling::Chain::detile_level under title_textures::subresources). Sleep is not on that stack. It is one event in 15 runs of these builds today, so I cannot say whether the timing had a part in it.
  • What changed in the code: title_sleep passes a sleep shorter than SLEEP_HOLD_MIN_MS (100) on as it is, like a yield; XCL_SLEEP_HOLD=<ms> sets that length and 0 still turns the rule off. One more test, a_short_sleep_is_passed_on_while_the_title_is_held.
  • On the new head: suite 754 passed, 0 failed, 41 ignored; regression pair 1401 frames on main b8b1f49, 1383 on the PR (second round 1405 and 1377).

The earlier test reports here were on 95299f4. What differs for them is only which sleeps go through the rule.

AI use: Claude Code with Claude Fable 5.2 ran the builds and runs on the machine named in the description and wrote this.

**@⁠imnicho** on GitHub · 2026-11-24 16:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7138211826) @⁠Royalflamejlh the comparison is done, and the PR now has the narrower rule (head `9cdae10`, one commit; the description has both tables). The first head (every sleep held, `95299f4`) against the new rule (only a sleep of 100 ms or more is held), each on `main` `b8b1f49` + #684, in turn, 330 s runs from the same cache start state. Counted over the 170 s after the world's set-up began, or up to the time limit where that came first: | sleeps held | runs | end | frames | draws | dispatches | skipped | GPU wait timeouts | |---|---|---|---|---|---|---|---| | every sleep | 3 | running at the limit, 3 of 3 | 8, 9, 14 | 221, 227, 295 | 7287, 7375, 7733 | 0 | 0 | | 100 ms or more | 4 | running at the limit, 4 of 4 | 20, 12, 14, 41 | 361, 262, 316, 594 | 7874, 7873, 7416, 7752 | 0 | 0 | - So the narrower rule keeps the title alive as well, and the load gets as far or a little further in the same time. Two of its four runs are counted over a shorter time (146 and 164 s: their set-up began later). - One more run of the first head is not in the table: it ended at 110.5 s, before the world's set-up, in an access violation in XCL's reading of a title texture (`tiling::Chain::detile_level` under `title_textures::subresources`). `Sleep` is not on that stack. It is one event in 15 runs of these builds today, so I cannot say whether the timing had a part in it. - What changed in the code: `title_sleep` passes a sleep shorter than `SLEEP_HOLD_MIN_MS` (100) on as it is, like a yield; `XCL_SLEEP_HOLD=<ms>` sets that length and `0` still turns the rule off. One more test, `a_short_sleep_is_passed_on_while_the_title_is_held`. - On the new head: suite 754 passed, 0 failed, 41 ignored; regression pair 1401 frames on `main` `b8b1f49`, 1383 on the PR (second round 1405 and 1377). The earlier test reports here were on `95299f4`. What differs for them is only which sleeps go through the rule. AI use: Claude Code with Claude Fable 5.2 ran the builds and runs on the machine named in the description and wrote this.
Author
Owner

@⁠alpz1000 on GitHub · 2026-11-24 17:07 UTC · original

I ran a paired test on an RTX 3060 12 GB / Core i5-8400 / Windows 11. Both runs used the same local release binary from 9cdae10 with b8b1f49 reverted to avoid the separate memory regression reported in #1307. Each run started with a copy of the same profile and caches. Networking was disabled, and no pipeline wait budget was set.

Setting Last interval with presents Result
XCL_SLEEP_HOLD=0 116.6 s Access violation 0xc0000005 at 145.3 s
XCL_SLEEP_HOLD=100 118.4 s Clean exit at the configured 210 s limit

Both runs reached world loading and logged zero GPU device removals. With the change enabled, the process survived for the rest of the test, but it did not resume presenting frames. The end reports showed 1,252 built / 57,511 queued with the change off and 1,329 built / 57,434 queued with it on. Those totals do not identify the pipeline holding up the game.

This was one run per setting. AI assistance: OpenAI Codex ran the comparison and drafted this report.

**@⁠alpz1000** on GitHub · 2026-11-24 17:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7138723545) I ran a paired test on an RTX 3060 12 GB / Core i5-8400 / Windows 11. Both runs used the same local release binary from `9cdae10` with `b8b1f49` reverted to avoid the separate memory regression reported in #1307. Each run started with a copy of the same profile and caches. Networking was disabled, and no pipeline wait budget was set. | Setting | Last interval with presents | Result | | --- | --- | --- | | `XCL_SLEEP_HOLD=0` | 116.6 s | Access violation `0xc0000005` at 145.3 s | | `XCL_SLEEP_HOLD=100` | 118.4 s | Clean exit at the configured 210 s limit | Both runs reached world loading and logged zero GPU device removals. With the change enabled, the process survived for the rest of the test, but it did not resume presenting frames. The end reports showed 1,252 built / 57,511 queued with the change off and 1,329 built / 57,434 queued with it on. Those totals do not identify the pipeline holding up the game. This was one run per setting. AI assistance: OpenAI Codex ran the comparison and drafted this report.
Author
Owner

@⁠not-rex on GitHub · 2026-11-24 17:40 UTC · original

RTX 3080 (10 GB, driver 610.88, Windows 11), retail 1.0.2.1 into the world: with this PR and without XCL_PSO_WAIT_MS, the title's watchdog no longer fires and the GPU never hangs. The world then waits on pipeline builds that drain at about 1.5 per second.

Tested

  • Tree: main 930e8b4 + #1123 + #1254 (diagnostics) + this PR at 95299f4 (its head when I ran it; it has since been amended to 9cdae10f, kernelx.rs only), clean merge, release. Warm DXIL cache and save from earlier runs (setup screens done), no full pipeline precompile. A pressed at 30 and 40 s, XCL_ACTIVITY=1, XCL_NETWORK=0, 400 s limit, GPU sampled with nvidia-smi every 2 s.
  • Two runs, one with XCL_PSO_WAIT_MS=50 and one without. Same machine as my #1252 runs, where main alone ends in 0x887A0006 at 168.5 s.
this PR, XCL_PSO_WAIT_MS=50 this PR, no XCL_PSO_WAIT_MS
first ListX #101 79.9 s 94.5 s
presents after #101 136 (last at 124.1 s) 14 (last at 100.1 s)
GPU queue.Wait … did not complete within 5000 ms 19 (first 127.0 s) 0
"would close a GPU cycle" 27 0
end 0x887A0006 at 171.1 s, then 0x80000003 at +0x2474606 normal end at 400 s, exit 0x0
title watchdog (+0x23cf683) no no
GPU after presents stop 100 % until the hang (from the earlier runs' sampling) 0-3 % from 104 s to the end
peak commit 32.5 GB 31.1 GB (flat)

Without the PSO wait, presents and submissions stop at about 100 s and the GPU goes idle. The window's title bar shows the pipeline queue: "compiling shaders: 1 running, 37 done, 58185 queued" at 121 s and "1 running, 443 done, 57818 queued" at 394 s. So a title thread is held in a bind for a pipeline still building, as this PR intends, and it is the build rate (one at a time, ~1.5/s) that keeps the world from resuming within 400 s. With the PSO wait, the skipped binds bring back the GPU stall and the hang, as on main.

Next on this machine: the same run after a full offline pipeline precompile, to see whether the world resumes once the builds are cached.

Not tested: a precompiled pipeline cache; more than one run per arm; AMD; Linux.

AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine through a scripted runner and wrote this report.

**@⁠not-rex** on GitHub · 2026-11-24 17:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7139528379) **RTX 3080 (10 GB, driver 610.88, Windows 11), retail 1.0.2.1 into the world: with this PR and without `XCL_PSO_WAIT_MS`, the title's watchdog no longer fires and the GPU never hangs. The world then waits on pipeline builds that drain at about 1.5 per second.** **Tested** - Tree: `main` `930e8b4` + #1123 + #1254 (diagnostics) + this PR at `95299f4` (its head when I ran it; it has since been amended to `9cdae10f`, kernelx.rs only), clean merge, release. Warm DXIL cache and save from earlier runs (setup screens done), no full pipeline precompile. A pressed at 30 and 40 s, `XCL_ACTIVITY=1`, `XCL_NETWORK=0`, 400 s limit, GPU sampled with `nvidia-smi` every 2 s. - Two runs, one with `XCL_PSO_WAIT_MS=50` and one without. Same machine as my #1252 runs, where `main` alone ends in `0x887A0006` at 168.5 s. | | this PR, `XCL_PSO_WAIT_MS=50` | this PR, no `XCL_PSO_WAIT_MS` | |---|---|---| | first `ListX #101` | 79.9 s | 94.5 s | | presents after `#101` | 136 (last at 124.1 s) | 14 (last at 100.1 s) | | `GPU queue.Wait … did not complete within 5000 ms` | 19 (first 127.0 s) | 0 | | "would close a GPU cycle" | 27 | 0 | | end | `0x887A0006` at 171.1 s, then `0x80000003` at `+0x2474606` | normal end at 400 s, exit `0x0` | | title watchdog (`+0x23cf683`) | no | no | | GPU after presents stop | 100 % until the hang (from the earlier runs' sampling) | 0-3 % from 104 s to the end | | peak commit | 32.5 GB | 31.1 GB (flat) | Without the PSO wait, presents and submissions stop at about 100 s and the GPU goes idle. The window's title bar shows the pipeline queue: "compiling shaders: 1 running, 37 done, 58185 queued" at 121 s and "1 running, 443 done, 57818 queued" at 394 s. So a title thread is held in a bind for a pipeline still building, as this PR intends, and it is the build rate (one at a time, ~1.5/s) that keeps the world from resuming within 400 s. With the PSO wait, the skipped binds bring back the GPU stall and the hang, as on `main`. Next on this machine: the same run after a full offline pipeline precompile, to see whether the world resumes once the builds are cached. **Not tested:** a precompiled pipeline cache; more than one run per arm; AMD; Linux. AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine through a scripted runner and wrote this report.
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-24 18:00 UTC · original · edited 2026-11-24 18:06 UTC

@⁠imnicho the narrower rule holds here too. On Linux (Wine + vkd3d-proton) + NVIDIA, 9cdae10 on main 9e3831e + #684, 2 runs of 140 s each way: without it the title's watchdog ended the run at 119.9 and 107.8 s, with it there was no watchdog by 140 s in either run.

Setup: as in my comment above, except: main is 9e3831e now, and the A press comes at 16 to 18 s instead of 44.8 s, so the times are 8 to 24 s earlier than in that comment, and this card's shader caches have had a 3-minute offline pipeline pass since (200 pipelines; both trees here share them). 9cdae10 merged onto 9e3831e + #684 (e56dbc3) without conflicts. XCL_PSO_PRELOAD=0, XCL_PSO_WAIT_MS and XCL_SLEEP_HOLD unset.

Tested

  • The five tests of the pull request under Wine, on the merge: 5 passed, 0 failed.
9e3831e + #684, run 1 / 2 the same + 9cdae10, run 1 / 2
last 2 s with a present 90.1 s / 78.6 s 94.1 s / 90.4 s
the title's null write at game+0x23cf683 119.9 s / 107.8 s none by 140 s / none by 140 s
compute pipeline builds of 4 s or more that finished after 80 s 11 (the last at 124 s) / 2 (the last at 97 s) 7 (the last at 138 s) / 8 (the last at 132 s)
draws and dispatches skipped 0 / 0 0 / 0
frames presented 1448 / 1345 1496 / 1513

Presents did not come back within 140 s, as before. With no present after 94.1 and 90.4 s and no watchdog by 140 s, the title's stall check sleeps 100 ms or more at a time here as well, and the threshold costs the fix nothing in these runs.

Read

  • kernelx.rs:1419 (in title_sleep): a sleep shorter than min now returns through the PC's Sleep on the first line, with the yield and the endless sleep. That is the change I asked about, and a_short_sleep_is_passed_on_while_the_title_is_held covers it.

Not tested: past 140 s (this 12 GB card is full from about 50 s); XCL_SLEEP_HOLD set to anything; sound and video during the hold; the preload of #690 on; AMD and Intel.

AI use: Claude Code (Claude Fable 5.2) read the new commit, built the trees, ran the tests and the four runs, compared the logs and wrote this reply.

Edited 2026-11-24: removed a sentence that said the runs with the change logged NVIDIA kernel messages and the runs without it did not. All four runs logged the same 12 lines (_threadNodeCheckTimeout) about 12 s after XCL's process had ended; our harness had caught them in two of the four. The setup line now says 8 to 24 s where it said "about 12 s", and names the offline pass.

**@⁠Royalflamejlh** on GitHub · 2026-11-24 18:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7140023760) · edited 2026-11-24 18:06 UTC @⁠imnicho the narrower rule holds here too. On Linux (Wine + vkd3d-proton) + NVIDIA, `9cdae10` on `main` `9e3831e` + #684, 2 runs of 140 s each way: without it the title's watchdog ended the run at 119.9 and 107.8 s, with it there was no watchdog by 140 s in either run. **Setup:** as in my comment above, except: `main` is `9e3831e` now, and the A press comes at 16 to 18 s instead of 44.8 s, so the times are 8 to 24 s earlier than in that comment, and this card's shader caches have had a 3-minute offline pipeline pass since (200 pipelines; both trees here share them). `9cdae10` merged onto `9e3831e` + #684 (`e56dbc3`) without conflicts. `XCL_PSO_PRELOAD=0`, `XCL_PSO_WAIT_MS` and `XCL_SLEEP_HOLD` unset. **Tested** - The five tests of the pull request under Wine, on the merge: 5 passed, 0 failed. | | `9e3831e` + #684, run 1 / 2 | the same + `9cdae10`, run 1 / 2 | |---|---|---| | last 2 s with a present | 90.1 s / 78.6 s | 94.1 s / 90.4 s | | the title's null write at `game+0x23cf683` | 119.9 s / 107.8 s | none by 140 s / none by 140 s | | compute pipeline builds of 4 s or more that finished after 80 s | 11 (the last at 124 s) / 2 (the last at 97 s) | 7 (the last at 138 s) / 8 (the last at 132 s) | | draws and dispatches skipped | 0 / 0 | 0 / 0 | | frames presented | 1448 / 1345 | 1496 / 1513 | Presents did not come back within 140 s, as before. With no present after 94.1 and 90.4 s and no watchdog by 140 s, the title's stall check sleeps 100 ms or more at a time here as well, and the threshold costs the fix nothing in these runs. **Read** - `kernelx.rs:1419` (in `title_sleep`): a sleep shorter than `min` now returns through the PC's `Sleep` on the first line, with the yield and the endless sleep. That is the change I asked about, and `a_short_sleep_is_passed_on_while_the_title_is_held` covers it. **Not tested:** past 140 s (this 12 GB card is full from about 50 s); `XCL_SLEEP_HOLD` set to anything; sound and video during the hold; the preload of #690 on; AMD and Intel. **AI use:** Claude Code (Claude Fable 5.2) read the new commit, built the trees, ran the tests and the four runs, compared the logs and wrote this reply. **Edited 2026-11-24:** removed a sentence that said the runs with the change logged NVIDIA kernel messages and the runs without it did not. All four runs logged the same 12 lines (`_threadNodeCheckTimeout`) about 12 s after XCL's process had ended; our harness had caught them in two of the four. The setup line now says 8 to 24 s where it said "about 12 s", and names the offline pass.
Author
Owner

@⁠Gruzzberry on GitHub · 2026-11-24 18:14 UTC · original

Test report for #1288 (Sleep does not count the time a bind waits for a pipeline build) – PR head 95299f4 merged into main b7aa9f3 (local merge c074057, no conflicts). Written for the stop at game_scarlett_master.exe+0x23cf683 (#846, #675).

Tested

  • RTX 4070 12 GB (driver 32.0.16.1088), i7-13700K, 64 GB RAM, Windows 11 Home 26200, rustc stable stable-x86_64-pc-windows-msvc, release build; DXC 1.9.2609 (XCL_DXC_DIR).
  • Retail 1.0.2.1, own package, XCL_NETWORK=0, warm DXIL and driver-blob caches, first-run setup done; menus walked with XCL_PRESS_A_AT (same script every run). No XCL_PSO_WAIT_MS.
  • Runs, in turn, same machine, same caches: main b7aa9f3 against the merge above, one clean run each (330 s limit, started only after the machine-wide shader precompile had exited); XCL_PRESS_A_AT=30,45,60,90,120, nobody at the controls.
main b7aa9f3 with #1288
end 0xc0000005 write at 0, +0x23cf683, 140.0 s no abort; ran to the 330 s limit, presents stopped at ~92 s (see below)
presents (report.json) 2315 2232
world load starts (#101) 93.9 s 91.3 s
last 2 s window with presents ends ~110 s ~92 s
longest compute PSO build 14.1 s (252 KB DXIL) 17.2 s (431 KB)
device removal none none
  • With #1288 the title did not abort within 330 s (no +0x23cf683), but it stopped presenting at ~92 s and never recovered: 0 presents and 0 draws in every 2 s window from 94 s to 330 s, and no dispatches apart from one at ~146 s, right after a background compute PSO build finished (360 KB DXIL, 12.0 s). The window title read 0.0 FPS | compiling shaders: 0 running, 1 done, 56995 pipelines queued (seen by eye); the screen went black after the opening cutscene played normally.
  • At 92.2 s three Wait64BitValueX ... bridged to GPU queue.Wait (wait-before-signal, prod=qNone) lines are logged, the last activity before the stop. So the watchdog no longer ends the run here, and the next stop is a wait for a signal that is never submitted (#505 family).

Not tested

  • One clean run per build, so run-to-run spread is not known. AMD, other NVIDIA cards, the Series S profile.
  • cargo test on the merge (not run).
  • Why presents stop at ~92 s; not investigated.

AI use

  • Claude Code (Claude Sonnet 5.5) ran the title and wrote this report from XCL's logs; the runs are on my hardware. No game data attached.
**@⁠Gruzzberry** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7140368393) **Test report for #1288 (Sleep does not count the time a bind waits for a pipeline build)** – PR head `95299f4` merged into `main` `b7aa9f3` (local merge `c074057`, no conflicts). Written for the stop at `game_scarlett_master.exe+0x23cf683` (#846, #675). **Tested** - RTX 4070 12 GB (driver 32.0.16.1088), i7-13700K, 64 GB RAM, Windows 11 Home 26200, rustc stable `stable-x86_64-pc-windows-msvc`, release build; DXC 1.9.2609 (`XCL_DXC_DIR`). - Retail 1.0.2.1, own package, `XCL_NETWORK=0`, warm DXIL and driver-blob caches, first-run setup done; menus walked with `XCL_PRESS_A_AT` (same script every run). No `XCL_PSO_WAIT_MS`. - Runs, in turn, same machine, same caches: `main` `b7aa9f3` against the merge above, one clean run each (330 s limit, started only after the machine-wide shader precompile had exited); `XCL_PRESS_A_AT=30,45,60,90,120`, nobody at the controls. | | main `b7aa9f3` | with #1288 | |---|---|---| | end | `0xc0000005` write at 0, `+0x23cf683`, 140.0 s | no abort; ran to the 330 s limit, presents stopped at ~92 s (see below) | | presents (report.json) | 2315 | 2232 | | world load starts (`#101`) | 93.9 s | 91.3 s | | last 2 s window with presents ends | ~110 s | ~92 s | | longest compute PSO build | 14.1 s (252 KB DXIL) | 17.2 s (431 KB) | | device removal | none | none | - With #1288 the title did not abort within 330 s (no `+0x23cf683`), but it stopped presenting at ~92 s and never recovered: 0 presents and 0 draws in every 2 s window from 94 s to 330 s, and no dispatches apart from one at ~146 s, right after a background compute PSO build finished (360 KB DXIL, 12.0 s). The window title read `0.0 FPS | compiling shaders: 0 running, 1 done, 56995 pipelines queued` (seen by eye); the screen went black after the opening cutscene played normally. - At 92.2 s three `Wait64BitValueX ... bridged to GPU queue.Wait (wait-before-signal, prod=qNone)` lines are logged, the last activity before the stop. So the watchdog no longer ends the run here, and the next stop is a wait for a signal that is never submitted (#505 family). **Not tested** - One clean run per build, so run-to-run spread is not known. AMD, other NVIDIA cards, the Series S profile. - `cargo test` on the merge (not run). - Why presents stop at ~92 s; not investigated. **AI use** - Claude Code (Claude Sonnet 5.5) ran the title and wrote this report from XCL's logs; the runs are on my hardware. No game data attached.
Author
Owner

@⁠ezamelczyk on GitHub · 2026-11-24 18:17 UTC · original

Linux / AMD RDNA4 run of #1288 (9cdae10): the title's stall check no longer ends the run. With #1288 it went 93 s without a present while its render thread built compute pipelines, and nothing fired. On the same machine without #1288 the title ended itself at +0x23cf683 about 30 s into such a stall, in 12 of 12 runs.

Setup

  • AMD Radeon RX 9070 XT (RADV / Mesa 26.3.1), 32 GB RAM (+ zram), CachyOS, kernel 7.3.6
  • GE-Proton 11-14 Wine, vkd3d-proton v3.1 + #257's patch, dxil-spirv 53aac418, DXVK from GE-Proton, DXC 1.9.2609.5
  • XCL release, cross-built for x86_64-pc-windows-msvc: main 47efa2e + #1316 c3d119c + this PR 9cdae10, merged locally without conflicts. So this is not this PR's head alone
  • Retail 1.0.2.1, saved setup, XCL_NETWORK=0, XCL_COHERENT_MB=512, scripted A presses, XCL_PSO_PRELOAD=0, dxil-spirv's legacy structurizer through a local vkd3d-proton switch (see my comment on #1316)

What happened

  • Before (12 runs: main, main + diagnostics, and #1316 without this PR): the title stopped presenting when world loading started and ended itself 29–31 s later at +0x23cf683. At that point, thread dumps showed title threads in bind::set_pipeline_state → pso_async::resolve_for_bind → resolve_wait, with one of them in real::build_compute → finish_pso inside vkd3d-proton.
  • With this PR: presents went from 58 per 2 s to 0 at 88 s and stayed at 0. The title's render thread built about 40 compute pipelines, 1–3 s each, on its own thread until 171 s, and the stall check did not fire. The run ended at 181 s for an unrelated reason: the kernel's OOM killer at 22.7 GB anon RSS, while the next very large compute program was being built (details on #1316).
  • So, as in @⁠HQasper's Windows run, the watchdog is held off, but presents stay at 0 while the builds go on. I could not see what comes after, because the run ran out of memory first.

Not tested

  • This PR's head alone, without #1316
  • Whether audio or other timing that uses Sleep noticed the held time (XCL_SLEEP_HOLD was left at its default)
  • The unit tests on this head (built, not run)
  • Windows, NVIDIA

AI use: Claude Code (Claude Opus 5.5) ran the game on this machine, read the logs and thread dumps, and wrote this report.

**@⁠ezamelczyk** on GitHub · 2026-11-24 18:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7140430296) **Linux / AMD RDNA4 run of #1288 (`9cdae10`): the title's stall check no longer ends the run. With #1288 it went 93 s without a present while its render thread built compute pipelines, and nothing fired. On the same machine without #1288 the title ended itself at `+0x23cf683` about 30 s into such a stall, in 12 of 12 runs.** **Setup** - AMD Radeon RX 9070 XT (RADV / Mesa 26.3.1), 32 GB RAM (+ zram), CachyOS, kernel 7.3.6 - GE-Proton 11-14 Wine, vkd3d-proton v3.1 + #257's patch, dxil-spirv `53aac418`, DXVK from GE-Proton, DXC 1.9.2609.5 - XCL release, cross-built for `x86_64-pc-windows-msvc`: `main` `47efa2e` + #1316 `c3d119c` + this PR `9cdae10`, merged locally without conflicts. So this is not this PR's head alone - Retail 1.0.2.1, saved setup, `XCL_NETWORK=0`, `XCL_COHERENT_MB=512`, scripted A presses, `XCL_PSO_PRELOAD=0`, dxil-spirv's legacy structurizer through a local vkd3d-proton switch (see my comment on #1316) **What happened** - Before (12 runs: `main`, `main` + diagnostics, and #1316 without this PR): the title stopped presenting when world loading started and ended itself 29–31 s later at `+0x23cf683`. At that point, thread dumps showed title threads in `bind::set_pipeline_state → pso_async::resolve_for_bind → resolve_wait`, with one of them in `real::build_compute → finish_pso` inside vkd3d-proton. - With this PR: presents went from 58 per 2 s to 0 at 88 s and stayed at 0. The title's render thread built about 40 compute pipelines, 1–3 s each, on its own thread until 171 s, and the stall check did not fire. The run ended at 181 s for an unrelated reason: the kernel's OOM killer at 22.7 GB anon RSS, while the next very large compute program was being built (details on #1316). - So, as in @⁠HQasper's Windows run, the watchdog is held off, but presents stay at 0 while the builds go on. I could not see what comes after, because the run ran out of memory first. **Not tested** - This PR's head alone, without #1316 - Whether audio or other timing that uses `Sleep` noticed the held time (`XCL_SLEEP_HOLD` was left at its default) - The unit tests on this head (built, not run) - Windows, NVIDIA **AI use:** Claude Code (Claude Opus 5.5) ran the game on this machine, read the logs and thread dumps, and wrote this report.
Author
Owner

@⁠Daydream3r on GitHub · 2026-11-24 18:32 UTC · original

Independent Windows 11 / NVIDIA test of exact PR head 9cdae10f0b, clean tree, 2026-11-24.

Tested

  • RTX 5070 Ti (driver 621.01), Ryzen 7 9800X3D, 64 GB RAM, Windows 11 Pro 25H2 26200.6584; Rust 1.100.0 stable-x86_64-pc-windows-msvc, MSVC Build Tools 2022 17.14.37906.3, DXC/DXIL 1.9.2609.5. XCL_ADAPTER=RTX 5070 Ti.
  • cargo build --release --workspace --locked and cargo build --workspace --locked: exit 0.
  • cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 754 passed, 0 failed, 41 ignored, exit 0. Two explicit skips inside the passing count: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64). All XCL_SAMPLE_* inputs were unset for this full suite.
  • Real title package 1.0.2.1, release, scripts/smoke.ps1 -Game <local folder> -Seconds 180, XCL_NETWORK=0, default Sleep hold, no XCL_PSO_WAIT_MS: the process remained alive until XCL_RUN_SECONDS ended it at 180.001 s, exit 0. 1858 frames/PresentX calls, 0 device-removal matches and 0 crash matches, peak commit 31915 MB. The final three activity samples had 0 presents.
  • I observed a correctly visible coloured loading illustration, then black with no rendered world. Initial setup had previously been completed by the user, who pressed Enter for Player1 in this run. No claim of playable gameplay or correct scene rendering.

Baseline / limits of the comparison

  • On clean main 9e3831e1f5, an earlier interactive run really crashed at 162.790 s: 0xc0000005 at game_scarlett_master.exe+0x23cf683, write to 0x0; stack included +0x2215c35. No device removal. It was not the automatic time limit. The smoke script's crashes: 2 counts the exception and process-exit log lines of this one process crash.
  • A later main run, starting from the same copied title data/DXIL cache snapshot used for the PR run, also survived its 180 s limit: 4168 frames, 0 crash/device-removal matches, peak commit 29831 MB; no world visible and the final three samples had 0 presents.
  • Enter was pressed at different times, so main spent more time presenting menu frames. PR frames are below 80% of that main run; this is NOT a passing controlled regression/performance comparison. The NVIDIA driver's internal cache was not reset. PR is based on older main b8b1f49, while the tested main is 9e3831e: other changes differ too. These runs do not isolate the Sleep change or prove it fixes the earlier crash.

Not tested

  • A deterministic, input-timed A/B run against the PR's exact base; disabling XCL_SLEEP_HOLD as a control; longer runs, gameplay, AMD/Intel/WARP, native wave64, Wine, or the D3D12 debug layer. The agent cannot hear audio; the user's earlier report of responsive UI and audible sound applies to the initial main run, not an audio-quality test of this PR.

AI use

  • Codex desktop, GPT-6 inspected the diff, built and ran these commands locally, captured the window, and drafted this report from actual logs. No source edits, game data, binaries or dumps attached. This is a test report, not a merge approval.
**@⁠Daydream3r** on GitHub · 2026-11-24 18:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7140790735) Independent Windows 11 / NVIDIA test of exact PR head 9cdae10f0bdf21b64a80958a87498b8f8124ac1d, clean tree, 2026-11-24. **Tested** - RTX 5070 Ti (driver 621.01), Ryzen 7 9800X3D, 64 GB RAM, Windows 11 Pro 25H2 26200.6584; Rust 1.100.0 stable-x86_64-pc-windows-msvc, MSVC Build Tools 2022 17.14.37906.3, DXC/DXIL 1.9.2609.5. XCL_ADAPTER=RTX 5070 Ti. - `cargo build --release --workspace --locked` and `cargo build --workspace --locked`: exit 0. - `cargo test --workspace --locked --no-fail-fast -- --test-threads=4`: 754 passed, 0 failed, 41 ignored, exit 0. Two explicit skips inside the passing count: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64). All XCL_SAMPLE_* inputs were unset for this full suite. - Real title package 1.0.2.1, release, `scripts/smoke.ps1 -Game <local folder> -Seconds 180`, XCL_NETWORK=0, default Sleep hold, no XCL_PSO_WAIT_MS: the process remained alive until XCL_RUN_SECONDS ended it at 180.001 s, exit 0. 1858 frames/PresentX calls, 0 device-removal matches and 0 crash matches, peak commit 31915 MB. The final three activity samples had 0 presents. - I observed a correctly visible coloured loading illustration, then black with no rendered world. Initial setup had previously been completed by the user, who pressed Enter for Player1 in this run. No claim of playable gameplay or correct scene rendering. **Baseline / limits of the comparison** - On clean main 9e3831e1f570d3646e53ab753b19ec07eb8f1485, an earlier interactive run really crashed at 162.790 s: 0xc0000005 at `game_scarlett_master.exe+0x23cf683`, write to 0x0; stack included +0x2215c35. No device removal. It was not the automatic time limit. The smoke script's `crashes: 2` counts the exception and process-exit log lines of this one process crash. - A later main run, starting from the same copied title data/DXIL cache snapshot used for the PR run, also survived its 180 s limit: 4168 frames, 0 crash/device-removal matches, peak commit 29831 MB; no world visible and the final three samples had 0 presents. - Enter was pressed at different times, so main spent more time presenting menu frames. PR frames are below 80% of that main run; this is NOT a passing controlled regression/performance comparison. The NVIDIA driver's internal cache was not reset. PR is based on older main b8b1f49, while the tested main is 9e3831e: other changes differ too. These runs do not isolate the Sleep change or prove it fixes the earlier crash. **Not tested** - A deterministic, input-timed A/B run against the PR's exact base; disabling XCL_SLEEP_HOLD as a control; longer runs, gameplay, AMD/Intel/WARP, native wave64, Wine, or the D3D12 debug layer. The agent cannot hear audio; the user's earlier report of responsive UI and audible sound applies to the initial main run, not an audio-quality test of this PR. **AI use** - Codex desktop, GPT-6 inspected the diff, built and ran these commands locally, captured the window, and drafted this report from actual logs. No source edits, game data, binaries or dumps attached. This is a test report, not a merge approval.
Author
Owner

@⁠emirduran707 on GitHub · 2026-11-24 18:14 UTC · original · edited 2026-11-24 18:34 UTC

Test report: 9cdae10 on AMD RDNA4 (Windows), world load: the watchdog no longer fires in 600 s; presents do not come back, and compute pipelines are still being built at the end

  • RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.31044.16 · Ryzen 5 5600 · 32 GB RAM · Windows 11 Pro 26300 · rustc 1.100.0, DXC 1.9.2602.17, release
  • Tree (local, not a clean commit of this PR): main 9e3831e + this PR 9cdae10 + #1321 0936337 (its conflict with #680 in recomp::translate resolved by keeping both blocks; needed here because main alone runs out of memory at 68 s in this load, #1307) + #751 1a480bc + #684 e56dbc3
  • Retail title, scripts/smoke.ps1 (so XCL_NETWORK=0), XCL_ACTIVITY=1, A at 14, 17, 21 s and every 6 s from 125 to 197 s (XCL_PRESS_A_AT), no XCL_PSO_WAIT_MS. Warm DXC cache; the driver blobs of earlier runs were kept.
XCL_SLEEP_HOLD=0 (PR off) this PR (default)
run length 130.8 s, the title's watchdog (+0x23cf683, write at 0) 600 s, ended by smoke.ps1, exit 0x0
last 2 s window with a present 102 s 96 s
compute pipelines made (from kept blobs) 378 509 (167)
driver builds of 1 s or more 10, longest 11.2 s 82, longest 36.1 s
peak process commit 33.7 GB 44.8 GB (one sample at ~460 s; 31–38 GB otherwise)
device removals / crashes 0 / 1 0 / 0
  • With the PR the title stays alive: audio is decoded to the end (179,838 Opus packets by 597 s). There are no submits after 96 s, and only a few draws and dispatches in 600 s.
  • Pipelines finished by 96 s: 308. By 200 s: 427, by 300 s: 446, by 400 s: 467, by 600 s: 509. The last one finished at 598 s.
  • After 96 s, 175 builds had no kept blob (median 452 ms). The longest ones are 0.73–1.02 MB of DXIL at 22–36 s each: 1,017,512 B in 36.1 s, 891,260 B in 29.2 s, 928,928 B in 29.0 s. So on RDNA4 the same kind of chain @⁠leondood1298 measured on NVIDIA holds the world back. Each build here is several times faster, but 600 s is still not enough.
  • One run of the PR build also had XCL_THREAD_DUMP_AT=100,200,400. It ended at 100.05 s, the moment of the first dump, in ntdll.dll+0x1ff2a (read at 0x58), under vfs_hooks::hk_create_file_w. The XCL_SLEEP_HOLD=0 run with dumps at 100 and 200 s did not crash there, and the PR run without dumps did not crash. One run, so I cannot say whether the dump or the hold is involved.

Not tested: this PR on main alone (the out-of-memory comes first), more than one run per arm, a full offline pipeline precompile, a run long enough for the builds to finish.

Update: two more runs of the same tree on warm caches (driver blobs of the runs above kept)

  • 1200 s run: no present after 104 s. The process ended at 474 s with 0xc0000409 at 43.7 GB of commit. The machine has 32 GB of RAM, so that is about its commit limit. Commit was 38–40 GB at 380–466 s, then rose 5 GB in 8 s.
  • 520 s run with XCL_THREAD_DUMP_AT=440,450,456,460,464,468,472: exit 0x0, no present after 102 s, peak commit 45.5 GB. Commit rose and fell by 4–6 GB several times: 40.9 → 45.5 GB at 432–438 s, then up again at 450 and 460 s, and 37.8 → 41.5 GB at 490 s.
    • In all seven dumps, one title thread waits in bind → pso_async::resolve_wait (title +0x248c341 ← +0x56b07), as in @⁠leondood1298's dumps.
    • In all seven dumps, xcl-pso-pre-0 is at the same amdxc64.dll+0x853cbc. xcl-pso-pre-1 and one more XCL thread are also inside amdxc64.dll from 460 s, and one xcl-dxc thread is in DXC.
  • The builds that finish in this window are ~1.1 MB of DXIL at 37–44 s each, one after another: 1,075,048 B at 326 s, 1,149,084 B at 387 s, 1,107,276 B at 486 s (38.3 s), 1,081,880 B at 493 s (36.9 s). The last two started at about 448 and 457 s, the moments the commit rose. That fits several GB per driver build of a program this size, with two or three of them in flight at once (the preload threads and a bind). I have not measured one build on its own, so this is a correlation, not a measurement.
  • So on RDNA4 the hold keeps the title alive and the chain of ~1 MB programs keeps going. On a 32 GB machine, the peak commit of those concurrent builds can end the run before the chain does.

Written with Claude Code (Claude Opus 5.5); the runs are mine.

**@⁠emirduran707** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7140355757) · edited 2026-11-24 18:34 UTC **Test report: `9cdae10` on AMD RDNA4 (Windows), world load: the watchdog no longer fires in 600 s; presents do not come back, and compute pipelines are still being built at the end** - RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.31044.16 · Ryzen 5 5600 · 32 GB RAM · Windows 11 Pro 26300 · rustc 1.100.0, DXC 1.9.2602.17, release - Tree (local, not a clean commit of this PR): `main` `9e3831e` + this PR `9cdae10` + #1321 `0936337` (its conflict with #680 in `recomp::translate` resolved by keeping both blocks; needed here because `main` alone runs out of memory at 68 s in this load, #1307) + #751 `1a480bc` + #684 `e56dbc3` - Retail title, `scripts/smoke.ps1` (so `XCL_NETWORK=0`), `XCL_ACTIVITY=1`, A at 14, 17, 21 s and every 6 s from 125 to 197 s (`XCL_PRESS_A_AT`), no `XCL_PSO_WAIT_MS`. Warm DXC cache; the driver blobs of earlier runs were kept. | | `XCL_SLEEP_HOLD=0` (PR off) | this PR (default) | |---|---|---| | run length | 130.8 s, the title's watchdog (`+0x23cf683`, write at 0) | 600 s, ended by `smoke.ps1`, exit 0x0 | | last 2 s window with a present | 102 s | 96 s | | compute pipelines made (from kept blobs) | 378 | 509 (167) | | driver builds of 1 s or more | 10, longest 11.2 s | 82, longest 36.1 s | | peak process commit | 33.7 GB | 44.8 GB (one sample at ~460 s; 31–38 GB otherwise) | | device removals / crashes | 0 / 1 | 0 / 0 | - With the PR the title stays alive: audio is decoded to the end (179,838 Opus packets by 597 s). There are no submits after 96 s, and only a few draws and dispatches in 600 s. - Pipelines finished by 96 s: 308. By 200 s: 427, by 300 s: 446, by 400 s: 467, by 600 s: 509. The last one finished at 598 s. - After 96 s, 175 builds had no kept blob (median 452 ms). The longest ones are 0.73–1.02 MB of DXIL at 22–36 s each: 1,017,512 B in 36.1 s, 891,260 B in 29.2 s, 928,928 B in 29.0 s. So on RDNA4 the same kind of chain @⁠leondood1298 measured on NVIDIA holds the world back. Each build here is several times faster, but 600 s is still not enough. - One run of the PR build also had `XCL_THREAD_DUMP_AT=100,200,400`. It ended at 100.05 s, the moment of the first dump, in `ntdll.dll+0x1ff2a` (read at 0x58), under `vfs_hooks::hk_create_file_w`. The `XCL_SLEEP_HOLD=0` run with dumps at 100 and 200 s did not crash there, and the PR run without dumps did not crash. One run, so I cannot say whether the dump or the hold is involved. **Not tested:** this PR on `main` alone (the out-of-memory comes first), more than one run per arm, a full offline pipeline precompile, a run long enough for the builds to finish. **Update: two more runs of the same tree on warm caches (driver blobs of the runs above kept)** - 1200 s run: no present after 104 s. The process ended at 474 s with `0xc0000409` at 43.7 GB of commit. The machine has 32 GB of RAM, so that is about its commit limit. Commit was 38–40 GB at 380–466 s, then rose 5 GB in 8 s. - 520 s run with `XCL_THREAD_DUMP_AT=440,450,456,460,464,468,472`: exit 0x0, no present after 102 s, peak commit 45.5 GB. Commit rose and fell by 4–6 GB several times: 40.9 → 45.5 GB at 432–438 s, then up again at 450 and 460 s, and 37.8 → 41.5 GB at 490 s. - In all seven dumps, one title thread waits in `bind → pso_async::resolve_wait` (title `+0x248c341 ← +0x56b07`), as in @⁠leondood1298's dumps. - In all seven dumps, `xcl-pso-pre-0` is at the same `amdxc64.dll+0x853cbc`. `xcl-pso-pre-1` and one more XCL thread are also inside `amdxc64.dll` from 460 s, and one `xcl-dxc` thread is in DXC. - The builds that finish in this window are ~1.1 MB of DXIL at 37–44 s each, one after another: 1,075,048 B at 326 s, 1,149,084 B at 387 s, 1,107,276 B at 486 s (38.3 s), 1,081,880 B at 493 s (36.9 s). The last two started at about 448 and 457 s, the moments the commit rose. That fits several GB per driver build of a program this size, with two or three of them in flight at once (the preload threads and a bind). I have not measured one build on its own, so this is a correlation, not a measurement. - So on RDNA4 the hold keeps the title alive and the chain of ~1 MB programs keeps going. On a 32 GB machine, the peak commit of those concurrent builds can end the run before the chain does. Written with Claude Code (Claude Opus 5.5); the runs are mine.
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-24 18:44 UTC · original

Test report for #1288 at 9cdae10, on top of main b7aa9f3 + #889 e1d3b9d (local merge a4f39b6). It is compared with b7aa9f3 + #889 alone (44097dc). The title is the newer retail one, at its world load; one run each.

Tested

  • RTX 5070 Ti 16 GB (driver 610.74), Ryzen 9 9950X (16 cores, 32 threads), 31 GB RAM (57 GB commit limit), Windows 11 Pro 26200, rustc 1.99.0, release, DXC 1.7.2308 (the Windows SDK's).
  • scripts/smoke.ps1, 300 s, XCL_NETWORK=0, A presses at 14/17/21 s and every 6 s from 125 s, no XCL_PSO_WAIT_MS.
  • Each run had its own new, empty XCL_DXIL_CACHE. The NVIDIA driver's own shader cache (%USERPROFILE%\AppData\LocalLow\NVIDIA\DXCache) is shared and was not cleared.
xcl-smoke v1
commit: a4f39b630330a1b431738ac3eb8f31a0d0e3934b
gpu: NVIDIA GeForce RTX 5070 Ti
title: GTA VI
seconds: 300
exit: 0x0
frames shown: 1311 (PresentX 1311)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 30894 MB
+ #889 + #889 + #1288
first #101 170.6 s 68.3 s
last 2 s window with a present 184.2 s 72.0 s
end null write at game+0x23cf683 (the title's watchdog), 212.9 s ran its 300 s, exit 0
peak commit 28.9 GB 30.9 GB

Read

  • With #1288 the watchdog did not fire. The run went on to its 300 s, building compute pipelines, and the title presented nothing after 72 s.
  • The preload built 231 compute pipelines before #101, with only 2.9 s in the driver in all. The run of #889 alone, just before this one, had built the same programs cold (188 s in the driver). The NVIDIA driver's cache then served them here. This run's first 70 s therefore tell nothing about #1288.
  • What the title waited for after #101, per 30 s (driver time counted when the build ends):
from #101 builds (preload / title's threads) in the driver
0–30 s 98 (35 / 63) 11.7 s
30–60 s 137 (26 / 111) 23.4 s
60–90 s 7 (5 / 2) 28.6 s
90–120 s 4 (0 / 4) 29.1 s
120–150 s 15 (13 / 2) 101.6 s (one 2.5 MB program 81.3 s)
150–180 s 12 (0 / 12) 32.1 s
180–210 s 0 –
210–240 s 1 31.4 s
  • From about 60 s after #101, the builds are big programs new to the driver, coming one at a time at 10–80 s each.
  • In this run, #1288 turns the watchdog's end into a wait that does not end within 300 s, and what is left of it is mostly the driver's build time. Without a thread dump at the end, which threads were waiting for these builds is not shown.

Not tested

  • More than one run.
  • #1288 on b7aa9f3 without #889.
  • A warm DXIL cache.
  • AMD.
  • DXC 1.9.
  • What the title's threads were doing at the end. The run ended cleanly, so no thread dump was written; the split between preload and title threads above comes from which thread IDs logged preload lines.

AI use

  • Claude Code (Claude Opus 5.5) built the binaries, ran the runs on this PC, read the logs and wrote this report.
**@⁠Kalmarv** on GitHub · 2026-11-24 18:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7141090034) Test report for #1288 at `9cdae10`, on top of `main` `b7aa9f3` + #889 `e1d3b9d` (local merge `a4f39b6`). It is compared with `b7aa9f3` + #889 alone (`44097dc`). The title is the newer retail one, at its world load; one run each. **Tested** - RTX 5070 Ti 16 GB (driver 610.74), Ryzen 9 9950X (16 cores, 32 threads), 31 GB RAM (57 GB commit limit), Windows 11 Pro 26200, rustc 1.99.0, release, DXC 1.7.2308 (the Windows SDK's). - `scripts/smoke.ps1`, 300 s, `XCL_NETWORK=0`, A presses at 14/17/21 s and every 6 s from 125 s, no `XCL_PSO_WAIT_MS`. - Each run had its own new, empty `XCL_DXIL_CACHE`. The NVIDIA driver's own shader cache (`%USERPROFILE%\AppData\LocalLow\NVIDIA\DXCache`) is shared and was not cleared. ``` xcl-smoke v1 commit: a4f39b630330a1b431738ac3eb8f31a0d0e3934b gpu: NVIDIA GeForce RTX 5070 Ti title: GTA VI seconds: 300 exit: 0x0 frames shown: 1311 (PresentX 1311) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 30894 MB ``` | | + #889 | + #889 + #1288 | |---|---|---| | first `#101` | 170.6 s | 68.3 s | | last 2 s window with a present | 184.2 s | 72.0 s | | end | null write at `game+0x23cf683` (the title's watchdog), 212.9 s | ran its 300 s, exit 0 | | peak commit | 28.9 GB | 30.9 GB | **Read** - With #1288 the watchdog did not fire. The run went on to its 300 s, building compute pipelines, and the title presented nothing after 72 s. - The preload built 231 compute pipelines before `#101`, with only 2.9 s in the driver in all. The run of #889 alone, just before this one, had built the same programs cold (188 s in the driver). The NVIDIA driver's cache then served them here. This run's first 70 s therefore tell nothing about #1288. - What the title waited for after `#101`, per 30 s (driver time counted when the build ends): | from `#101` | builds (preload / title's threads) | in the driver | |---|---|---| | 0–30 s | 98 (35 / 63) | 11.7 s | | 30–60 s | 137 (26 / 111) | 23.4 s | | 60–90 s | 7 (5 / 2) | 28.6 s | | 90–120 s | 4 (0 / 4) | 29.1 s | | 120–150 s | 15 (13 / 2) | 101.6 s (one 2.5 MB program 81.3 s) | | 150–180 s | 12 (0 / 12) | 32.1 s | | 180–210 s | 0 | – | | 210–240 s | 1 | 31.4 s | - From about 60 s after `#101`, the builds are big programs new to the driver, coming one at a time at 10–80 s each. - In this run, #1288 turns the watchdog's end into a wait that does not end within 300 s, and what is left of it is mostly the driver's build time. Without a thread dump at the end, which threads were waiting for these builds is not shown. **Not tested** - More than one run. - #1288 on `b7aa9f3` without #889. - A warm DXIL cache. - AMD. - DXC 1.9. - What the title's threads were doing at the end. The run ended cleanly, so no thread dump was written; the split between preload and title threads above comes from which thread IDs logged preload lines. **AI use** - Claude Code (Claude Opus 5.5) built the binaries, ran the runs on this PC, read the logs and wrote this report.
Author
Owner

@⁠madaraXor on GitHub · 2026-11-24 19:40 UTC · original

Retail title on RDNA2: no stall-check abort while binds wait for long driver compiles, without XCL_PSO_WAIT_MS

Setup: AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003, Ryzen 5 5600X, 16 GB RAM, Windows 10 Pro 22H2, Agility SDK 1.620.2, Rust 1.90.0, release. Retail title 1.0.2.1, device_type = "lockhart", XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_PRELOAD=0 XCL_DXC_THREADS=3, no XCL_PSO_WAIT_MS (with it, a skipped dispatch on this card ended a run in a GPU hang at 664 s, the #675 pattern). Tree: main 930e8b4 + this PR's head 95299f47d + #684, #615, #495, #1291, #1182, #1248, #1315/#1316 (#1195 and #757–#759 in the later runs) and local changes outside kernelx (a cap of two driver compiles at once, compact-form tweaks, a list of programs left untranslated).

On this card the driver takes 10 – 120 s for each of the world's 0.3 – 1.4 MB compute programs, and much longer for the biggest, so the title's threads wait in binds for a long time once the world starts:

  • in four runs the title's threads were held in binds for minutes with 0 presents; the longest was one bind waiting from 1 120 s to the end of the run at 2 400 s (21 min, one driver compile running all that time);
  • the stall check ended none of them: two ended on my memory guard, one I stopped, one at its XCL_RUN_SECONDS; none on +0x2215c35 / +0x23cf683.

Before, on the same machine without this PR and without XCL_PSO_WAIT_MS (main + #684), the stall check ended a run at 622 s with the title's threads waiting in resolve_wait for an 18.5 s driver compile (#505).

Not tested: this PR alone on main (it was always with the others above); NVIDIA; the XCL_SLEEP_HOLD=0 switch.

AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my PC and wrote this report. Counts and times only.

**@⁠madaraXor** on GitHub · 2026-11-24 19:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7142432532) **Retail title on RDNA2: no stall-check abort while binds wait for long driver compiles, without `XCL_PSO_WAIT_MS`** **Setup:** AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003, Ryzen 5 5600X, 16 GB RAM, Windows 10 Pro 22H2, Agility SDK 1.620.2, Rust 1.90.0, release. Retail title 1.0.2.1, `device_type = "lockhart"`, `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_PRELOAD=0 XCL_DXC_THREADS=3`, **no `XCL_PSO_WAIT_MS`** (with it, a skipped dispatch on this card ended a run in a GPU hang at 664 s, the #675 pattern). Tree: `main` `930e8b4` + this PR's head `95299f47d` + #684, #615, #495, #1291, #1182, #1248, #1315/#1316 (#1195 and #757–#759 in the later runs) and local changes outside `kernelx` (a cap of two driver compiles at once, compact-form tweaks, a list of programs left untranslated). On this card the driver takes 10 – 120 s for each of the world's 0.3 – 1.4 MB compute programs, and much longer for the biggest, so the title's threads wait in binds for a long time once the world starts: - in four runs the title's threads were held in binds for minutes with 0 presents; the longest was one bind waiting from 1 120 s to the end of the run at 2 400 s (21 min, one driver compile running all that time); - the stall check ended none of them: two ended on my memory guard, one I stopped, one at its `XCL_RUN_SECONDS`; none on `+0x2215c35` / `+0x23cf683`. Before, on the same machine without this PR and without `XCL_PSO_WAIT_MS` (`main` + #684), the stall check ended a run at 622 s with the title's threads waiting in `resolve_wait` for an 18.5 s driver compile (#505). **Not tested:** this PR alone on `main` (it was always with the others above); NVIDIA; the `XCL_SLEEP_HOLD=0` switch. AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my PC and wrote this report. Counts and times only.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-24 19:44 UTC · original

Tested on Windows 11 with an AMD Radeon RX 9070 XT (16191 MiB VRAM, RDNA4, native wave64) on local merge branches based on c160d86 (release builds, XCL_NETWORK=0, XCL_SKIP_BINK=1, XCL_MUTE_TTS=1, newer retail title).

1. c160d86 + #1288 (9cdae10) + #751, #1005, #1053, #1195, #1529, #1584, #1661 (XCL_DIRECT_DXIL=0, XCL_HEAP_WINDOWS=1, 240 s target)

  • Reached Game State: Game Running (Frame: 657, TileHeap 1,995/6,236 MB, 7,319 buildings, 197 vehicles, 4,194 objects, 18,453 instances, 1,760 frames shown, 0 device removals, 22,349 MB peak commit).
  • Edge case observed at 180.16 s: GPU Loc Sig 7333478d (0xc0000005 at +0x23cf683) still fired after 30 s (150.27 s -> 180.16 s) of 0 presents. In the thread state at abort, the game's submission thread was blocked synchronously inside D3D12Core.dll -> amdxc64.dll while xcl-pso-pre-0..3 workers were idle — so Sleep was not paused during that synchronous driver call (pso_async bind-wait condvar wasn't held).

2. Same bundle + #1693 (b5d6322) + #1679 (ee85bc2) (XCL_DIRECT_DXIL=1, XCL_HEAP_WINDOWS=1, 300 s)

  • Exited cleanly at 300.00 s (0x0, 0 crashes, 0 device removals), 1,914 frames shown (PresentX 1914), 75,653 DirectStorage requests (4,201 MB), 8,791 MB target pages, 25,644 MB peak commit. (Between 93.6 s and 212.7 s, presents trickled every 10–22.4 s, staying under the 30 s watchdog threshold.)

Not tested

  • Standalone #1288 without the other bundle PRs, cargo test --workspace on these merged branches, or cold-cache builds (dxil_cache had 1,288–1,295 hits / 0 misses).
**@⁠raylitebull** on GitHub · 2026-11-24 19:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7142529055) Tested on Windows 11 with an AMD Radeon RX 9070 XT (16191 MiB VRAM, RDNA4, native wave64) on local merge branches based on `c160d86` (release builds, `XCL_NETWORK=0`, `XCL_SKIP_BINK=1`, `XCL_MUTE_TTS=1`, newer retail title). **1. `c160d86` + `#1288` (`9cdae10`) + `#751`, `#1005`, `#1053`, `#1195`, `#1529`, `#1584`, `#1661` (`XCL_DIRECT_DXIL=0`, `XCL_HEAP_WINDOWS=1`, 240 s target)** - Reached `Game State: Game Running` (`Frame: 657`, `TileHeap 1,995/6,236 MB`, `7,319` buildings, `197` vehicles, `4,194` objects, `18,453` instances, `1,760` frames shown, `0` device removals, `22,349 MB` peak commit). - **Edge case observed at `180.16 s`:** `GPU Loc Sig 7333478d` (`0xc0000005` at `+0x23cf683`) still fired after `30 s` (`150.27 s -> 180.16 s`) of `0` presents. In the thread state at abort, the game's submission thread was blocked synchronously inside `D3D12Core.dll -> amdxc64.dll` while `xcl-pso-pre-0..3` workers were idle — so `Sleep` was not paused during that synchronous driver call (`pso_async` bind-wait condvar wasn't held). **2. Same bundle + `#1693` (`b5d6322`) + `#1679` (`ee85bc2`) (`XCL_DIRECT_DXIL=1`, `XCL_HEAP_WINDOWS=1`, 300 s)** - Exited cleanly at `300.00 s` (`0x0`, `0` crashes, `0` device removals), `1,914` frames shown (`PresentX 1914`), `75,653` DirectStorage requests (`4,201 MB`), `8,791 MB` target pages, `25,644 MB` peak commit. (Between `93.6 s` and `212.7 s`, presents trickled every `10–22.4 s`, staying under the `30 s` watchdog threshold.) **Not tested** - Standalone `#1288` without the other bundle PRs, `cargo test --workspace` on these merged branches, or cold-cache builds (`dxil_cache` had `1,288–1,295` hits / `0` misses).
Author
Owner

@⁠RodrigoTorreao on GitHub · 2026-11-24 19:52 UTC · original

Test report on AMD RDNA2 for 9cdae10 alone on main (c160d86, before this PR was merged), on Windows 11 with 16 GB RAM. It goes with @⁠madaraXor's RDNA2 report above: same driver and memory, but Windows 10 and this PR combined with others, and "this PR alone on main" is in his Not tested.

  • The title's stall check did not fire in 3 of 3 runs, which agrees with his.
  • Unlike his runs, all three of mine then ended a few minutes into the stall, each together with a crash of Microsoft Gaming Services, and one with a GPU timeout (TDR).
  • That looks like a separate problem, which this PR's longer stalls expose on this machine (below).

Tested

  • Hardware: AMD Radeon RX 6750 XT 12 GB (RDNA2, native wave64), driver 32.0.21045.29003; i5-14600KF; 16 GB RAM, commit limit 47.8 GB; Windows 11 25H2 (26200.9974); Rust 1.100.0 MSVC, release; DXC 1.9.2609.5.
  • Gaming Services 39.118.30001.0 (GamingServices.exe 10.0.26100.9656).
  • Tree: main c160d86 + this PR at 9cdae10, a local merge with no conflicts (49bea87).
    • This PR's own tests pass on it: cargo test -p xcl --lib -- sleep holds_the_title, 6 passed, 0 failed.
    • The full suite was not run on this tree.
  • Retail 1.0.2.1, XCL_NETWORK=0 XCL_ACTIVITY=1, XCL_RUN_SECONDS=600, no XCL_PSO_WAIT_MS, no XCL_SLEEP_HOLD.
  • Each run started cold for XCL: a fresh XCL_DXIL_CACHE (so no used-pipelines.txt preload), XCL_PSO_DISK_CACHE=0, XCL_TRANSLATED_CACHE=0, and a renamed copy of xcl.exe.
    • The AMD driver's own cache was not fully cold in later runs.
  • The first-run setup was already done. Played by hand: menus, then legal notices, then the story.

Runs with this PR

run last presents compute PSOs built after it (driver time) slowest how it ended peak commit / local VRAM
A1 186 s 98 (233 s) 523 KB DXIL, 26.9 s exit code 0 at 337 s, right after I clicked outside the XCL window 31.4 GB / 14.6 GB
A2 126 s 182 (462 s) 520 KB DXIL, 43.6 s exit code 0 at 354 s, right after I clicked outside the XCL window 32.3 GB / 14.6 GB
A3 ~165 s (see below) – no input at all: XCL's log stops at 388 s, the process lives ~2 more minutes, then a GPU timeout and exit code 0 – / 14.6 GB
  • None of the three logged +0x23cf683, a device removal or an access violation. Presents did not come back in any of them.
  • On this machine without this PR, four cold runs of main 9e3831e ended at +0x23cf683 29.0 – 29.5 s after the last presents (#1524, my A/B there).
  • Here the title stayed alive for minutes with no presents, building compute pipelines.

How they ended: Gaming Services each time

  • No self-exit in any run. XCL logs every exit of the process from inside, process ends … (its NtTerminateProcess hook, even for status 0), as well as a close of its window. Neither appears in any of the three logs, so the process was ended from outside.
  • A1, A2: the exit followed a click outside the XCL window, while the title was stalled.
    • Windows Error Reporting logged a MoBEX for Microsoft.GamingServices_39.118.30001.0 within seconds of each exit (15:57:02, 16:09:02).
    • There is no Application Hang event.
  • A3, no input, Windows event log in order:
    1. 16:19:39: XCL's log stops in the middle of ordinary activity (the last lines are xapu and a compute PSO line). Nothing more is written.
    2. 16:19:57: GamingServices.exe crashes, 0xc0000409 in GamingServices.DLL 10.0.26100.9656 at offset 0x18b27e (event 1000), reported as MoBEX at 16:21:22.
    3. ~16:21:46: the game process ends, code 0.
    4. 16:21:49 – 52: a burst of LiveKernelEvent reports: 141 and 117 (GPU engine timeout and TDR), plus 15e, 1a8, 1b8, 144, a1000001, a2000002.
    • The GPU recovered without a reboot (a GPU test and a PSO build passed afterwards).
  • In the runs that did not get past +0x23cf683 (the four of the A/B above, and one more with #1524's commit 1 that ended in D3D12 device removed: 0x887a0007), there was no Gaming Services crash.
  • So this looks tied to staying in the stall for minutes, which this PR makes possible, on this machine. Local VRAM is over budget the whole time (14.6 GB used on a 12 GB card, 4.8 GB non-local).
  • I can't tell from here what Gaming Services is doing with the title, or whether it is the cause of the end or a second victim of the hang.
  • @⁠madaraXor's RX 6700 XT stayed in such stalls for up to 21 min on Windows 10 without this, so Windows 11's Gaming Services or this machine is the more likely difference than the card.
  • I'll open a separate issue for it rather than continue here, since this PR is merged.

Not tested

  • More runs, warm caches, XCL_SLEEP_HOLD other than the default, and XCL_PSO_WAIT_MS together with this PR.
  • The full workspace suite on this tree.
  • A machine with more VRAM or RAM for the same comparison.

AI use

  • Claude Code (Claude Opus 5.5) built the tree, ran the runs and the checks, read the logs and the Windows event log, and wrote this. I played the runs. The figures are copied from each run's xcl.log, the launcher output and the event log.
**@⁠RodrigoTorreao** on GitHub · 2026-11-24 19:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7142706172) Test report on AMD RDNA2 for 9cdae10 **alone on `main`** (c160d86, before this PR was merged), on Windows 11 with 16 GB RAM. It goes with @⁠madaraXor's RDNA2 report above: same driver and memory, but Windows 10 and this PR combined with others, and "this PR alone on `main`" is in his Not tested. - The title's stall check did not fire in 3 of 3 runs, which agrees with his. - Unlike his runs, all three of mine then ended a few minutes into the stall, each together with a crash of Microsoft Gaming Services, and one with a GPU timeout (TDR). - That looks like a separate problem, which this PR's longer stalls expose on this machine (below). **Tested** - Hardware: AMD Radeon RX 6750 XT 12 GB (RDNA2, native wave64), driver 32.0.21045.29003; i5-14600KF; **16 GB RAM**, commit limit 47.8 GB; Windows 11 25H2 (26200.9974); Rust 1.100.0 MSVC, release; DXC 1.9.2609.5. - Gaming Services 39.118.30001.0 (`GamingServices.exe` 10.0.26100.9656). - Tree: `main` c160d86 + this PR at 9cdae10, a local merge with no conflicts (`49bea87`). - This PR's own tests pass on it: `cargo test -p xcl --lib -- sleep holds_the_title`, 6 passed, 0 failed. - The full suite was not run on this tree. - Retail 1.0.2.1, `XCL_NETWORK=0 XCL_ACTIVITY=1`, `XCL_RUN_SECONDS=600`, no `XCL_PSO_WAIT_MS`, no `XCL_SLEEP_HOLD`. - Each run started cold for XCL: a fresh `XCL_DXIL_CACHE` (so no `used-pipelines.txt` preload), `XCL_PSO_DISK_CACHE=0`, `XCL_TRANSLATED_CACHE=0`, and a renamed copy of `xcl.exe`. - The AMD driver's own cache was not fully cold in later runs. - The first-run setup was already done. Played by hand: menus, then legal notices, then the story. **Runs with this PR** | run | last presents | compute PSOs built after it (driver time) | slowest | how it ended | peak commit / local VRAM | |---|---|---|---|---|---| | A1 | 186 s | 98 (233 s) | 523 KB DXIL, 26.9 s | exit code 0 at 337 s, right after I clicked outside the XCL window | 31.4 GB / 14.6 GB | | A2 | 126 s | 182 (462 s) | 520 KB DXIL, 43.6 s | exit code 0 at 354 s, right after I clicked outside the XCL window | 32.3 GB / 14.6 GB | | A3 | ~165 s | (see below) | – | no input at all: XCL's log stops at 388 s, the process lives ~2 more minutes, then a GPU timeout and exit code 0 | – / 14.6 GB | - None of the three logged `+0x23cf683`, a device removal or an access violation. Presents did not come back in any of them. - On this machine without this PR, four cold runs of `main` 9e3831e ended at `+0x23cf683` 29.0 – 29.5 s after the last presents (#1524, my A/B there). - Here the title stayed alive for minutes with no presents, building compute pipelines. **How they ended: Gaming Services each time** - **No self-exit in any run.** XCL logs every exit of the process from inside, `process ends …` (its `NtTerminateProcess` hook, even for status 0), as well as a close of its window. Neither appears in any of the three logs, so the process was ended from outside. - **A1, A2:** the exit followed a click outside the XCL window, while the title was stalled. - Windows Error Reporting logged a `MoBEX` for `Microsoft.GamingServices_39.118.30001.0` within seconds of each exit (15:57:02, 16:09:02). - There is no Application Hang event. - **A3, no input**, Windows event log in order: 1. 16:19:39: XCL's log stops in the middle of ordinary activity (the last lines are `xapu` and a compute PSO line). Nothing more is written. 2. 16:19:57: `GamingServices.exe` crashes, `0xc0000409` in `GamingServices.DLL` 10.0.26100.9656 at offset `0x18b27e` (event 1000), reported as `MoBEX` at 16:21:22. 3. ~16:21:46: the game process ends, code 0. 4. 16:21:49 – 52: a burst of `LiveKernelEvent` reports: 141 and 117 (GPU engine timeout and TDR), plus 15e, 1a8, 1b8, 144, a1000001, a2000002. - The GPU recovered without a reboot (a GPU test and a PSO build passed afterwards). - In the runs that did not get past `+0x23cf683` (the four of the A/B above, and one more with #1524's commit 1 that ended in `D3D12 device removed: 0x887a0007`), there was no Gaming Services crash. - So this looks tied to staying in the stall for minutes, which this PR makes possible, on this machine. Local VRAM is over budget the whole time (14.6 GB used on a 12 GB card, 4.8 GB non-local). - I can't tell from here what Gaming Services is doing with the title, or whether it is the cause of the end or a second victim of the hang. - @⁠madaraXor's RX 6700 XT stayed in such stalls for up to 21 min on Windows 10 without this, so Windows 11's Gaming Services or this machine is the more likely difference than the card. - I'll open a separate issue for it rather than continue here, since this PR is merged. **Not tested** - More runs, warm caches, `XCL_SLEEP_HOLD` other than the default, and `XCL_PSO_WAIT_MS` together with this PR. - The full workspace suite on this tree. - A machine with more VRAM or RAM for the same comparison. **AI use** - Claude Code (Claude Opus 5.5) built the tree, ran the runs and the checks, read the logs and the Windows event log, and wrote this. I played the runs. The figures are copied from each run's `xcl.log`, the launcher output and the event log.
Author
Owner

@⁠imnicho on GitHub · 2026-11-24 19:55 UTC · original · edited 2026-11-24 20:36 UTC

Update: it is up as #1782. After seeing #1747 I widened it: the guard covers the whole submission (XCL's uploads and tile mappings before the lists as well as the PC ExecuteCommandLists), a texture's placement, and a pipeline built in the title's call. Suite 890 passed, 0 failed; regression pair 1398 / 1397 frames.


@⁠raylitebull thank you for merging, and for the edge case: a title thread blocked inside the driver's own call is a hold this rule does not see, because title_held() only knows the bind's wait in resolve_wait.

Plan for a small follow-up PR (written, its unit test passes, the suite and the regression pair still to run):

  • pso_async: pc_call() gives a guard for a call into the PC's D3D12 made on one of the title's threads. A call that has lasted 250 ms or more holds the title (title_held()), a shorter one does not, so a normal submission changes nothing.
  • real.rs: the guard is taken around the PC ExecuteCommandLists in q_execute_command_lists, and around the driver's pipeline creation in finish_pso when it runs in the title's own call (no stand-in; a worker's build is left out).

One thing would help me aim it: in the thread state at your abort, which XCL function was above D3D12Core.dll on the submission thread – q_execute_command_lists, a pipeline creation (finish_pso / dev_create_…pipeline_state), or something else (a Map, an upload in title_textures::refresh)? If it was something else, I would rather put the guard there than guess.

I cannot reproduce it here (NVIDIA, where the long waits are all in resolve_wait), so the PR will say what I measured on this card (no change in the regression runs, the title run as before) and that the AMD case rests on your trace. If you can run the branch once on the RX 9070 XT, that would be the real test; I will post it here when the suite is through.

AI use: Claude Code with Claude Fable 5.2 wrote the change and this reply.

**@⁠imnicho** on GitHub · 2026-11-24 19:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7142777391) · edited 2026-11-24 20:36 UTC **Update: it is up as #1782.** After seeing #1747 I widened it: the guard covers the whole submission (XCL's uploads and tile mappings before the lists as well as the PC `ExecuteCommandLists`), a texture's placement, and a pipeline built in the title's call. Suite 890 passed, 0 failed; regression pair 1398 / 1397 frames. --- @⁠raylitebull thank you for merging, and for the edge case: a title thread blocked inside the driver's own call is a hold this rule does not see, because `title_held()` only knows the bind's wait in `resolve_wait`. Plan for a small follow-up PR (written, its unit test passes, the suite and the regression pair still to run): - `pso_async`: `pc_call()` gives a guard for a call into the PC's D3D12 made on one of the title's threads. A call that has lasted 250 ms or more holds the title (`title_held()`), a shorter one does not, so a normal submission changes nothing. - `real.rs`: the guard is taken around the PC `ExecuteCommandLists` in `q_execute_command_lists`, and around the driver's pipeline creation in `finish_pso` when it runs in the title's own call (no stand-in; a worker's build is left out). One thing would help me aim it: in the thread state at your abort, which XCL function was above `D3D12Core.dll` on the submission thread – `q_execute_command_lists`, a pipeline creation (`finish_pso` / `dev_create_…pipeline_state`), or something else (a `Map`, an upload in `title_textures::refresh`)? If it was something else, I would rather put the guard there than guess. I cannot reproduce it here (NVIDIA, where the long waits are all in `resolve_wait`), so the PR will say what I measured on this card (no change in the regression runs, the title run as before) and that the AMD case rests on your trace. If you can run the branch once on the RX 9070 XT, that would be the real test; I will post it here when the suite is through. AI use: Claude Code with Claude Fable 5.2 wrote the change and this reply.
Author
Owner

@⁠leondood1298 on GitHub · 2026-11-24 17:06 UTC · original · edited 2026-11-24 21:30 UTC

Update, 2026-11-24 21:30 UTC – the run on the full cache (the follow-up promised below). Short answer: with every compute pipeline prebuilt the title gets 14 s further (last present 82 s instead of 64–68 s, list slot #101 is reached), then presents nothing more; a title thread waits in a pipeline bind for 700 s and the run ends in a device removal at 799 s.

  • Same tree, exe and settings as below, plus XCL_FRAME_DUMP=1; one 900 s run. The commit limit is 95.8 GB now (larger page file).
  • Cache: xcl shaders <pack> --precompile --only cs --pipelines over the whole pack: 2,689 pipelines made, 0 refused, 0 errors. One process builds about one pipeline at a time here, so it ran as 9 processes over a local "record index modulo n" switch (9.2 pipelines/min; system commit up to 55 GB, about 25 GB of it theirs). A second pass in one process then loaded 2,689 of 2,689 from the driver blob cache in 270 s. 2,574 blob files: 115 programs have the DXIL of another.
  • Compute pipelines in the run: 751 from the blob cache (443 of 64 KB+ DXIL, the slowest 747 ms) and 22 built (all under 64 KB, under 1 s each). No build of a 64 KB+ program started. 12,280 draws and 8,192 dispatches by 81.4 s, 0 skipped.
  • Presents: 1,247 in 0–60 s, 210 in 60–120 s, the last at 82.0 s (last submit in the same 2 s); 1,457 frames. Frame 1340 (71.8 s) is still the loading picture (518,199 of 518,400 samples not black).
  • 80.3 s: first call of list slot #101. 81.9 s: three Wait64BitValueX … bridged to GPU queue.Wait (waiters q0 and q1, type 2, no producer queue, wait-before-signal). No did not complete within line and no would close a GPU cycle line in the whole run.
  • 84 s to 799 s: 0 presents, 0 submits. In all six thread dumps (120 … 720 s) one title thread waits in bind::execute_indirect → pso_async::resolve_wait (title +0x248d19f ← +0x35dc74f, recording a type 2 list), and one to four of the four xcl-pso-pre workers are inside nvgpucomp64.dll (all four at 480 s and 600 s). No pipeline line is logged after 83.2 s, so I cannot say what they were building: the dumps end before XCL's frames, and this tree logs the start of a compute build only when it has no cached blob.
  • 799.4 s: that thread goes on (split command list (type 2) around mid-list Wait after Write64 (#2)), the next CreatePlacedResourceX fails with 0x887a0005, the device is removed and the title breaks at +0x2474606 (rsi=0x887a0005). When the device was lost is not known: nothing used it between 84 s and 799 s. No nvlddmkm / Display event in the System log during the run.
  • The watchdog at +0x23cf683 did not fire. Peak process commit 34.2 GB; local video memory 14.55 GB on the 12 GB card from 84 s.

Not tested for this update: main as it is now (this PR and #1321 are merged; this tree predates both merges); which pipelines the workers were building (it needs a log line and another run); the test suite and a smoke pair on this tree; AMD and 64-lane GPUs.


Test report: five 900 s runs of the retail title with this PR and #1316 together on an RTX 4070 SUPER 12 GB – for the "whether the world is drawn once the pipelines are built" gap. Short answer: not reached in 75 minutes of title time; what holds it is a chain of ~1 MB compute programs at about two minutes each in the NVIDIA compiler.

Tested

  • NVIDIA GeForce RTX 4070 SUPER 12 GB (driver 32.0.16.2124, 32-lane waves), i7-12700K, 64 GB RAM, commit limit 69.8 GB, Windows 11 26300, Rust 1.100.0, release.
  • Tree: #1316 at 5e312d5 + this PR at 95299f4 (cherry-picked; the old head, before the 100 ms threshold) + local revert of b8b1f49 (#1307) + one local log line at the start of each compute pipeline build. Not a clean commit.
  • XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=900, A every 2 s from 8 to 90 s, thread dumps every 120 s. No XCL_PSO_WAIT_MS. The driver blob of ActivateRays (14,104,656 B of DXIL) was already in the cache from the 120-minute build I reported in #505, so that program loads in 135 ms here; ActivateProbes takes the compact form (723,453 B of HLSL).
run ends last present compute builds of 64 KB+ DXIL without a cached blob: started / finished their driver time
1 900 s limit, exit 0 68 s 79 / 77 1,648 s
2 900 s limit, exit 0 64 s 14 / 12 –
3 900 s limit, exit 0 68 s 17 / 15 –
4 900 s limit, exit 0 66 s 14 / 12 –
5 900 s limit, exit 0 66 s 22 / 20 1,279 s
  • The watchdog is gone in 5 of 5 (the same tree without this PR: +0x23cf683 28–30 s after the last present in six of six runs). No device removal, no WARN or ERROR line after 60 s, 0 dispatches skipped.
  • Presents do not come back. Run 5: last present 66 s, last submit 74 s, then 0 / 0 until 900 s; DirectStorage requests stop too.
  • What holds it (run 5, dumps at 120 … 840 s): in every dump one title job thread waits in bind::set_pipeline_state → pso_async::resolve_wait (title +0x248c341 ← +0x248cb78 ← +0x35950f6) while the other one of the same pair is inside nvgpucomp64.dll; the render loop sits in +0x43c3d5d ← +0x23cf4f2 and the main thread in +0x56a0d ← +0x23cf735 throughout. The builds after 60 s are 13 programs of 869–1,173 KB of DXIL (11 finished, 59.6–147.7 s each, median 107 s; 2 still building at the limit) and 8 small ones at 0.5–5.2 s. They come one after another: the next one starts when the previous bind returns, so a 900 s run gets through about ten.
  • Each run starts further along (the finished ones are in the driver blob cache), but 75 minutes have not reached the end of that chain.
  • Process commit 29.0 GB at 60 s, 34.3 GB at 890 s; local video memory 14.9 GB on the 12 GB card.

Not tested

  • The current heads (9cdae10 here, ee904f1 of #1316); the test suite on this tree; a smoke pair.
  • What happens after the last of those programs is built: see the update at the top.
  • AMD, 64-lane GPUs.

AI use

  • Claude Code (Claude Mythos 5.2) ran the runs and wrote this report; log excerpts were extracted by Claude Sonnet 5.5 subagents.
**@⁠leondood1298** on GitHub · 2026-11-24 17:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7138688075) · edited 2026-11-24 21:30 UTC **Update, 2026-11-24 21:30 UTC – the run on the full cache (the follow-up promised below).** Short answer: with every compute pipeline prebuilt the title gets 14 s further (last present 82 s instead of 64–68 s, list slot #101 is reached), then presents nothing more; a title thread waits in a pipeline bind for 700 s and the run ends in a device removal at 799 s. - Same tree, exe and settings as below, plus `XCL_FRAME_DUMP=1`; one 900 s run. The commit limit is 95.8 GB now (larger page file). - **Cache:** `xcl shaders <pack> --precompile --only cs --pipelines` over the whole pack: 2,689 pipelines made, 0 refused, 0 errors. One process builds about one pipeline at a time here, so it ran as 9 processes over a local "record index modulo n" switch (9.2 pipelines/min; system commit up to 55 GB, about 25 GB of it theirs). A second pass in one process then loaded 2,689 of 2,689 from the driver blob cache in 270 s. 2,574 blob files: 115 programs have the DXIL of another. - **Compute pipelines in the run:** 751 from the blob cache (443 of 64 KB+ DXIL, the slowest 747 ms) and 22 built (all under 64 KB, under 1 s each). No build of a 64 KB+ program started. 12,280 draws and 8,192 dispatches by 81.4 s, 0 skipped. - **Presents:** 1,247 in 0–60 s, 210 in 60–120 s, the last at 82.0 s (last submit in the same 2 s); 1,457 frames. Frame 1340 (71.8 s) is still the loading picture (518,199 of 518,400 samples not black). - **80.3 s:** first call of list slot #101. **81.9 s:** three `Wait64BitValueX … bridged to GPU queue.Wait` (waiters q0 and q1, type 2, no producer queue, wait-before-signal). No `did not complete within` line and no `would close a GPU cycle` line in the whole run. - **84 s to 799 s:** 0 presents, 0 submits. In all six thread dumps (120 … 720 s) one title thread waits in `bind::execute_indirect → pso_async::resolve_wait` (title `+0x248d19f ← +0x35dc74f`, recording a type 2 list), and one to four of the four `xcl-pso-pre` workers are inside `nvgpucomp64.dll` (all four at 480 s and 600 s). No pipeline line is logged after 83.2 s, so I cannot say what they were building: the dumps end before XCL's frames, and this tree logs the start of a compute build only when it has no cached blob. - **799.4 s:** that thread goes on (`split command list (type 2) around mid-list Wait after Write64 (#2)`), the next `CreatePlacedResourceX` fails with `0x887a0005`, the device is removed and the title breaks at `+0x2474606` (`rsi=0x887a0005`). When the device was lost is not known: nothing used it between 84 s and 799 s. No nvlddmkm / Display event in the System log during the run. - The watchdog at `+0x23cf683` did not fire. Peak process commit 34.2 GB; local video memory 14.55 GB on the 12 GB card from 84 s. Not tested for this update: `main` as it is now (this PR and #1321 are merged; this tree predates both merges); which pipelines the workers were building (it needs a log line and another run); the test suite and a smoke pair on this tree; AMD and 64-lane GPUs. --- Test report: five 900 s runs of the retail title with this PR and #1316 together on an RTX 4070 SUPER 12 GB – for the "whether the world is drawn once the pipelines are built" gap. Short answer: not reached in 75 minutes of title time; what holds it is a chain of ~1 MB compute programs at about two minutes each in the NVIDIA compiler. **Tested** - NVIDIA GeForce RTX 4070 SUPER 12 GB (driver 32.0.16.2124, 32-lane waves), i7-12700K, 64 GB RAM, commit limit 69.8 GB, Windows 11 26300, Rust 1.100.0, release. - Tree: #1316 at `5e312d5` + this PR at `95299f4` (cherry-picked; the old head, before the 100 ms threshold) + local revert of `b8b1f49` (#1307) + one local log line at the start of each compute pipeline build. Not a clean commit. - `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=900`, A every 2 s from 8 to 90 s, thread dumps every 120 s. No `XCL_PSO_WAIT_MS`. The driver blob of `ActivateRays` (14,104,656 B of DXIL) was already in the cache from the 120-minute build I reported in #505, so that program loads in 135 ms here; `ActivateProbes` takes the compact form (723,453 B of HLSL). | run | ends | last present | compute builds of 64 KB+ DXIL without a cached blob: started / finished | their driver time | |---|---|---|---|---| | 1 | 900 s limit, exit 0 | 68 s | 79 / 77 | 1,648 s | | 2 | 900 s limit, exit 0 | 64 s | 14 / 12 | – | | 3 | 900 s limit, exit 0 | 68 s | 17 / 15 | – | | 4 | 900 s limit, exit 0 | 66 s | 14 / 12 | – | | 5 | 900 s limit, exit 0 | 66 s | 22 / 20 | 1,279 s | - **The watchdog is gone in 5 of 5** (the same tree without this PR: `+0x23cf683` 28–30 s after the last present in six of six runs). No device removal, no WARN or ERROR line after 60 s, 0 dispatches skipped. - **Presents do not come back.** Run 5: last present 66 s, last submit 74 s, then 0 / 0 until 900 s; DirectStorage requests stop too. - **What holds it (run 5, dumps at 120 … 840 s):** in every dump one title job thread waits in `bind::set_pipeline_state → pso_async::resolve_wait` (title `+0x248c341 ← +0x248cb78 ← +0x35950f6`) while the other one of the same pair is inside `nvgpucomp64.dll`; the render loop sits in `+0x43c3d5d ← +0x23cf4f2` and the main thread in `+0x56a0d ← +0x23cf735` throughout. The builds after 60 s are 13 programs of 869–1,173 KB of DXIL (11 finished, 59.6–147.7 s each, median 107 s; 2 still building at the limit) and 8 small ones at 0.5–5.2 s. They come one after another: the next one starts when the previous bind returns, so a 900 s run gets through about ten. - Each run starts further along (the finished ones are in the driver blob cache), but 75 minutes have not reached the end of that chain. - Process commit 29.0 GB at 60 s, 34.3 GB at 890 s; local video memory 14.9 GB on the 12 GB card. **Not tested** - The current heads (`9cdae10` here, `ee904f1` of #1316); the test suite on this tree; a smoke pair. - What happens after the last of those programs is built: see the update at the top. - AMD, 64-lane GPUs. **AI use** - Claude Code (Claude Mythos 5.2) ran the runs and wrote this report; log excerpts were extracted by Claude Sonnet 5.5 subagents.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 04:40 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 04:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1288#issuecomment-7182809375) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This discussion has been locked. Commenting is limited to contributors.
No description provided.