D3D12.X: the pieces of a split program read their slab from a root CBV #2633

Open
github-bot wants to merge 15 commits from github-bot/gh-2633 into main AGit
Owner

@⁠Kalmarv on GitHub · 2026-11-26 03:30 UTC · original
Kalmarv:chain-indirect-cbv → main · +1320 −48 · 11 files · 15 commits · draft

Stacked on #2404; only the top commit (19be659) belongs here.

A chained ExecuteIndirect (#2404) records, for each round and piece, a UAV barrier, the piece's pipeline and an ExecuteIndirect whose command signature sets the slab's eight root constants. On the RTX 5070 Ti such an ExecuteIndirect after the barrier takes 15.3 µs of GPU time, empty or not, so 32 rounds of 10 pieces cost 4.9 ms every time. With a Dispatch-only signature it takes 0.41 µs. The pieces read only the slab's size and origin, the same for every piece of a round, so the chain's root signature now gives them as a root CBV (b0, space2, the register the pieces already read) instead of root constants. The pieces' code does not change.

What is in it

  • D3D12.X: the pieces of a split program read their slab from a root CBV (19be659), in pso.rs, runner.rs, dispatch_chain.rs, real.rs and shaders.rs, with unit tests:
    • ExecuteIndirect: the slicer writes one 256-byte command a round (the slab's constants, its Dispatch 32 bytes in) instead of one 44-byte command per piece. The CPU points the CBV at the round's command, and the pieces' ExecuteIndirects use the Dispatch-only signature. The commands buffer for 32 rounds is 8 KiB, whatever the number of pieces.
    • Dispatch: the CPU writes the slabs' constants into 64 KiB upload-heap blocks of the list's allocator, used again once it is reset. A list with no allocator runs the whole form, as without scratch. Only blocks of 64 KiB are kept for use again, up to 8 MiB of them; bigger blocks and those past it are released at the reset (keep_free_constants; review by @⁠luckyteagirl).
    • The driver blob of a piece kept on disk: the pieces' DXIL is the same as under #2404, so its file now also names the chain's root signature, as a hash of it serialized with the program's static samplers (pso::abi_signature_id, in driver_cache::name_for; the precompile names it the same way). A blob built for #2404's root constants, or for other static samplers, is then not read and refused, and #2404's and this PR's files sit side by side in one cache (review by @⁠KDenKC; the samplers after #2723).

Tested

  • Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, rustc 1.99.0, DXC 1.9.2609; tests in debug, the smoke runs from release builds.
  • On 19be659 (on #2404's head 5b9d4ff), on the GPU (debug):
    • cargo test --workspace --no-fail-fast -- --test-threads=4: 1450 passed, 0 failed, 47 ignored, the new a_piece_is_named_after_its_static_samplers and main's precompile test split_compute_program_prebuilds_and_caches_chain_pieces among them. 25 SKIPPED, as below.
    • a_piece_is_named_after_its_static_samplers (two sampler sets, two names): with the id of db34184, which leaves the samplers out, failed; with this one, passed. The driver_cache unit tests: 6 passed.
  • On db34184, this change before the static samplers were in the name (on 5b9d4ff), on the GPU (debug):
    • cargo test --workspace --no-fail-fast -- --test-threads=4: 1449 passed, 0 failed, 47 ignored, the new a_piece_is_named_after_the_root_signature_it_was_built_with among them. 25 SKIPPED, as below.
    • direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset, with the new assertions that no block bigger than 64 KiB is kept and the kept ones stay within 8 MiB: 1 passed. With acba153's reset (every block kept): failed, "a block bigger than 65536 kept for use again".
    • The dispatch_chain, alloc_pool and driver_cache unit tests, --test-threads=1: 23 passed.
    • The dispatch_chain, split, execute_indirect and slab filters with the debug layer and GPU-based validation, --nocapture, on the local build described below, --test-threads=1: 51 passed, 0 failed, 1 ignored. 1 SKIPPED: dispatch_chain_native_wave64_builds_whole (no wave64). During the tests: 1 error, 884, and 275 warnings (195 of 1328, 80 of 926), as on 1202ac1 below.
    • Without the GPU: a_piece_is_named_after_the_root_signature_it_was_built_with and a_file_is_named_after_its_dxil_and_flags failed with the piece's file named as before (no signature), and pass with it.
  • On acba153, this change before the two review fixes (on #2404's then head 97a70a7): cargo test --workspace --no-fail-fast -- --test-threads=4: 1446 passed, 0 failed, 47 ignored, the new direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset among them. 25 SKIPPED: 21 for no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows.
  • The runs below on 1202ac1 are of the same change before its rebase onto 97a70a7 (on 551a75e).
  • On 1202ac1, the dispatch_chain, split, execute_indirect and slab filters with XCL_D3D12_DEBUG=1, --test-threads=4: 48 passed, 0 failed, 1 ignored. 1 SKIPPED: dispatch_chain_native_wave64_builds_whole (no wave64). The dispatch_chain unit tests, --test-threads=1: 7 passed. dispatch_chain_divergent_forward_edges_3d, three runs: 1 passed each.
  • The same filters with the debug layer and GPU-based validation, --nocapture, on a local build of the test runner that switches GPU-based validation on and prints every layer message (neither is an XCL option): 48 passed, 0 failed, 1 ignored. During the tests: 1 error, 884, from main's split_compute_program_prebuilds_and_caches_chain_pieces, which feeds the driver a deliberately invalid blob; and 275 warnings: 195 of 1328 (a buffer's initial state ignored) and 80 of 926 (a root view's address in a heap), as on #2404's head.
  • On 1202ac1, on an RTX 2060 (NVIDIA 595.91) under Wine (wine-staging 11.21) + vkd3d-proton 30b0eb9, a release windows-gnu test build, --test-threads=1, no XCL_D3D12_DEBUG or GPU-based validation set; correctness only: the dispatch_chain unit tests 7 passed; the dispatch_chain, split, execute_indirect and slab filters 48 passed, 0 failed, 1 ignored, SKIPPED dispatch_chain_native_wave64_builds_whole (no wave64); list_x 41 passed; alloc_pool 8 passed.
  • Tested by others: @⁠luckyteagirl, on acba153, AMD Radeon RX 6800M (driver 30.0.13002.13003), Windows 11 build 26200, debug (review): dispatch_chain_divergent_forward_edges_3d with XCL_REQUIRE_GPU=wave64, --test-threads=1: 1 passed, 0 failed, no SKIPPED notice, both the 32- and 64-thread chains (3 pieces each). Not the whole suite.
  • Tested by others, on acba153: @⁠pickles976, RTX 4060 Laptop GPU 8 GB (NVIDIA 590.48.1) under Wine 11.0 + vkd3d-proton 3.2.0, a local diagnostic build of it with relaxed checks (-Db_ndebug=true and two local from_iface relaxations), x86_64-pc-windows-msvc, one test thread (review): direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset: 1 passed, on the NVIDIA device. Correctness only, with no timing or title run.
  • Tested by others, on db34184 against #2404's 97a70a7: @⁠SzczepanGrela, RX 9070, RADV (Mesa 26.3.1) under Wine 11.0 + vkd3d-proton, release windows-gnu test builds (review). dispatch_chain 9 passed, driver_cache 5 passed, alloc_pool 8 passed and 1 failed on both revisions: main's a_recording_outlives_the_reset_of_the_titles_allocator, whose allocator vkd3d-proton refuses once XCL has adopted it (real::adopt replaces its vtable). dispatch_chain_divergent_forward_edges_3d aborted in d3d12core.dll on both revisions; it passed natively on the RX 6800M below and on our card. In a local GPU-timestamp test, 32 rounds × 10 pieces of ExecuteIndirect took 533–738 µs against #2404's 1,801–2,543 µs. The direct control, 12 slabs × 10 pieces, took longer with this PR: 137.18 µs against 114.48 µs at 32 threads, in every pair, and 169.12 against 108.88 µs at 64.
  • Tested by others, on db34184 against its base 5b9d4ff: @⁠KDenKC, RTX 5090 (NVIDIA 621.24), release, with #2551, each side precompiled from its own cache (227 split programs, 2,000 pieces, 0 refused), one run of the base and two of this PR (review). This PR's cache held only the new piece names, with no refusals. At 130 s: 2,768 and 3,139 chained ExecuteIndirects against 808, 8,939 and 7,564 slabs against 1,694, scratch peaks 613 and 537 MiB against 420. The base and the second run ended in #2403's removal (134.7 s, 131.7 s); the first run of this PR hung (0x887a0006) at 133.45 s. In four more runs with XCL_DRED=1 (review), no hang: three of #2403's removals and one crash of #751's race, so this PR hung in 1 of 4 runs. Neither side skipped a call or ran one whole before 130 s (review). The hang does not separate this PR from more GPU work reaching the card; it is under investigation.
  • Tested by others, on db34184 against 5b9d4ff: @⁠Royalflamejlh, RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Linux, Wine 11.21 Staging + vkd3d-proton 30b0eb9b (patched), on main b49be18 with #684, #751, #1599, #1860 and #2082, three runs a side (review). In the 20 s after each run's first world frame: 7,347–10,000 chained ExecuteIndirects and 18–22 presents against 2,406–2,849 and 6–7, so about as many per present (408–476 against 372–407); no call skipped or run whole. The world came 40–55 s sooner with this PR, from a warmer NVIDIA cache, so neither that nor the present rate is separated from the cache.
  • GPU timestamps, 16 rounds × 10 pieces, median per piece step, in a local-only test not in this PR, on the same change before its rebase (f29910f, on 809da30):
    empty one group
    ExecuteIndirect, root constants (before) 15.3 µs 15.6 µs
    ExecuteIndirect, root CBV, Dispatch-only signature 0.41 µs 1.01 µs
    Dispatch, root constants (before) 0.25 µs 0.61 µs
    Dispatch, root CBV in the upload heap 0.25 µs 0.61 µs
  • On db34184, the same local test at the shape of @⁠SzczepanGrela's direct control (12 slabs × 10 pieces, one group each), 5 alternating trials, two runs: #2404's root constants and this PR's root CBV both 73.66 µs at 32 and at 64 threads (trial medians 73.63–73.70 µs).

Regression run

scripts/smoke.ps1 -Seconds 60, the same retail title, XCL_DIRECT_DXIL=1, a private XCL cache started from the same used-pipelines.txt. From release builds of clean trees, on the machine under Tested, each in the queue's title lane beside other jobs (builds, suites or precompiles; no other title run or timing job runs at the same time there): main's in one job with this PR's db34184, this PR's 19be659 alone, beside 3 other jobs.

main b49be18:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1228 (PresentX 1228)
presents per 2 s (last 3): 4 19 9
device removals: 0
crashes: 0
peak commit: 26156 MB

this PR, 19be659:

xcl-smoke v1
commit: 19be65904f91a232fabc540e96c2e037971f1bd8
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1360 (PresentX 1360)
presents per 2 s (last 3): 59 52 57
device removals: 0
crashes: 0
peak commit: 17515 MB

compute split counter at the end of each run:

  • main: compute split: 171 programs split, 1811 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab)
  • this PR: compute split: 66 programs split, 684 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab); ExecuteIndirect: 0 chained (0 of them whole, 0 slabs lost), 0 whole

Not tested

  • This 60 s run reaches no chained Dispatch or ExecuteIndirect on either side, so it checks for regressions only; this PR's paths did not run in the title.
  • The GPU time saved in a title: only the local test above measured it.
  • Why the direct path takes longer on RADV (above): not found, and not measurable here.
  • AMD beyond that one test on an RX 6800M; other NVIDIA generations than Blackwell.

Other branches

  • #2629 (a failed whole build is kept) conflicts with this PR in dispatch_chain.rs: both change Chain's fields and the read of its whole form in execute_indirect, and #2629's test sets Chain::signature, which this PR removes. Whichever lands second drops signature and build_whole there and reads the whole form with .flatten(). With that, the merge builds (cargo check -p xcl --lib --tests).

AI use

  • Claude Code with Claude Opus 5.5 wrote the code, the tests and this description, and ran the tests and the regression run on the hardware above.

🤖 Generated with Claude Code

**@⁠Kalmarv** on GitHub · 2026-11-26 03:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633) `Kalmarv:chain-indirect-cbv` → `main` · +1320 −48 · 11 files · 15 commits · draft Stacked on #2404; only the top commit (`19be659`) belongs here. A chained `ExecuteIndirect` (#2404) records, for each round and piece, a UAV barrier, the piece's pipeline and an `ExecuteIndirect` whose command signature sets the slab's eight root constants. On the RTX 5070 Ti such an `ExecuteIndirect` after the barrier takes 15.3 µs of GPU time, empty or not, so 32 rounds of 10 pieces cost 4.9 ms every time. With a Dispatch-only signature it takes 0.41 µs. The pieces read only the slab's size and origin, the same for every piece of a round, so the chain's root signature now gives them as a root CBV (`b0, space2`, the register the pieces already read) instead of root constants. The pieces' code does not change. **What is in it** - `D3D12.X: the pieces of a split program read their slab from a root CBV` (`19be659`), in `pso.rs`, `runner.rs`, `dispatch_chain.rs`, `real.rs` and `shaders.rs`, with unit tests: - `ExecuteIndirect`: the slicer writes one 256-byte command a round (the slab's constants, its Dispatch 32 bytes in) instead of one 44-byte command per piece. The CPU points the CBV at the round's command, and the pieces' `ExecuteIndirect`s use the Dispatch-only signature. The commands buffer for 32 rounds is 8 KiB, whatever the number of pieces. - `Dispatch`: the CPU writes the slabs' constants into 64 KiB upload-heap blocks of the list's allocator, used again once it is reset. A list with no allocator runs the whole form, as without scratch. Only blocks of 64 KiB are kept for use again, up to 8 MiB of them; bigger blocks and those past it are released at the reset (`keep_free_constants`; review by @⁠luckyteagirl). - The driver blob of a piece kept on disk: the pieces' DXIL is the same as under #2404, so its file now also names the chain's root signature, as a hash of it serialized with the program's static samplers (`pso::abi_signature_id`, in `driver_cache::name_for`; the precompile names it the same way). A blob built for #2404's root constants, or for other static samplers, is then not read and refused, and #2404's and this PR's files sit side by side in one cache (review by @⁠KDenKC; the samplers after #2723). **Tested** - Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, rustc 1.99.0, DXC 1.9.2609; tests in debug, the smoke runs from release builds. - On `19be659` (on #2404's head `5b9d4ff`), on the GPU (debug): - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1450 passed, 0 failed, 47 ignored, the new `a_piece_is_named_after_its_static_samplers` and `main`'s precompile test `split_compute_program_prebuilds_and_caches_chain_pieces` among them. 25 SKIPPED, as below. - `a_piece_is_named_after_its_static_samplers` (two sampler sets, two names): with the id of `db34184`, which leaves the samplers out, failed; with this one, passed. The `driver_cache` unit tests: 6 passed. - On `db34184`, this change before the static samplers were in the name (on `5b9d4ff`), on the GPU (debug): - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1449 passed, 0 failed, 47 ignored, the new `a_piece_is_named_after_the_root_signature_it_was_built_with` among them. 25 SKIPPED, as below. - `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset`, with the new assertions that no block bigger than 64 KiB is kept and the kept ones stay within 8 MiB: 1 passed. With `acba153`'s reset (every block kept): failed, "a block bigger than 65536 kept for use again". - The `dispatch_chain`, `alloc_pool` and `driver_cache` unit tests, `--test-threads=1`: 23 passed. - The `dispatch_chain`, `split`, `execute_indirect` and `slab` filters with the debug layer and GPU-based validation, `--nocapture`, on the local build described below, `--test-threads=1`: 51 passed, 0 failed, 1 ignored. 1 SKIPPED: `dispatch_chain_native_wave64_builds_whole` (no wave64). During the tests: 1 error, 884, and 275 warnings (195 of 1328, 80 of 926), as on `1202ac1` below. - Without the GPU: `a_piece_is_named_after_the_root_signature_it_was_built_with` and `a_file_is_named_after_its_dxil_and_flags` failed with the piece's file named as before (no signature), and pass with it. - On `acba153`, this change before the two review fixes (on #2404's then head `97a70a7`): `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1446 passed, 0 failed, 47 ignored, the new `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset` among them. 25 SKIPPED: 21 for no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows. - The runs below on `1202ac1` are of the same change before its rebase onto `97a70a7` (on `551a75e`). - On `1202ac1`, the `dispatch_chain`, `split`, `execute_indirect` and `slab` filters with `XCL_D3D12_DEBUG=1`, `--test-threads=4`: 48 passed, 0 failed, 1 ignored. 1 SKIPPED: `dispatch_chain_native_wave64_builds_whole` (no wave64). The `dispatch_chain` unit tests, `--test-threads=1`: 7 passed. `dispatch_chain_divergent_forward_edges_3d`, three runs: 1 passed each. - The same filters with the debug layer and GPU-based validation, `--nocapture`, on a local build of the test runner that switches GPU-based validation on and prints every layer message (neither is an XCL option): 48 passed, 0 failed, 1 ignored. During the tests: 1 error, 884, from `main`'s `split_compute_program_prebuilds_and_caches_chain_pieces`, which feeds the driver a deliberately invalid blob; and 275 warnings: 195 of 1328 (a buffer's initial state ignored) and 80 of 926 (a root view's address in a heap), as on #2404's head. - On `1202ac1`, on an RTX 2060 (NVIDIA 595.91) under Wine (wine-staging 11.21) + vkd3d-proton `30b0eb9`, a release `windows-gnu` test build, `--test-threads=1`, no `XCL_D3D12_DEBUG` or GPU-based validation set; correctness only: the `dispatch_chain` unit tests 7 passed; the `dispatch_chain`, `split`, `execute_indirect` and `slab` filters 48 passed, 0 failed, 1 ignored, SKIPPED `dispatch_chain_native_wave64_builds_whole` (no wave64); `list_x` 41 passed; `alloc_pool` 8 passed. - Tested by others: @⁠luckyteagirl, on `acba153`, AMD Radeon RX 6800M (driver 30.0.13002.13003), Windows 11 build 26200, debug ([review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2633)): `dispatch_chain_divergent_forward_edges_3d` with `XCL_REQUIRE_GPU=wave64`, `--test-threads=1`: 1 passed, 0 failed, no SKIPPED notice, both the 32- and 64-thread chains (3 pieces each). Not the whole suite. - Tested by others, on `acba153`: @⁠pickles976, RTX 4060 Laptop GPU 8 GB (NVIDIA 590.48.1) under Wine 11.0 + vkd3d-proton 3.2.0, a local diagnostic build of it with relaxed checks (`-Db_ndebug=true` and two local `from_iface` relaxations), `x86_64-pc-windows-msvc`, one test thread ([review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2633)): `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset`: 1 passed, on the NVIDIA device. Correctness only, with no timing or title run. - Tested by others, on `db34184` against #2404's `97a70a7`: @⁠SzczepanGrela, RX 9070, RADV (Mesa 26.3.1) under Wine 11.0 + vkd3d-proton, release `windows-gnu` test builds ([review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2633)). `dispatch_chain` 9 passed, `driver_cache` 5 passed, `alloc_pool` 8 passed and 1 failed on both revisions: `main`'s `a_recording_outlives_the_reset_of_the_titles_allocator`, whose allocator vkd3d-proton refuses once XCL has adopted it (`real::adopt` replaces its vtable). `dispatch_chain_divergent_forward_edges_3d` aborted in `d3d12core.dll` on both revisions; it passed natively on the RX 6800M below and on our card. In a local GPU-timestamp test, 32 rounds × 10 pieces of `ExecuteIndirect` took 533–738 µs against #2404's 1,801–2,543 µs. The direct control, 12 slabs × 10 pieces, took longer with this PR: 137.18 µs against 114.48 µs at 32 threads, in every pair, and 169.12 against 108.88 µs at 64. - Tested by others, on `db34184` against its base `5b9d4ff`: @⁠KDenKC, RTX 5090 (NVIDIA 621.24), release, with #2551, each side precompiled from its own cache (227 split programs, 2,000 pieces, 0 refused), one run of the base and two of this PR ([review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2633)). This PR's cache held only the new piece names, with no refusals. At 130 s: 2,768 and 3,139 chained `ExecuteIndirect`s against 808, 8,939 and 7,564 slabs against 1,694, scratch peaks 613 and 537 MiB against 420. The base and the second run ended in #2403's removal (134.7 s, 131.7 s); the first run of this PR hung (`0x887a0006`) at 133.45 s. In four more runs with `XCL_DRED=1` ([review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2633)), no hang: three of #2403's removals and one crash of #751's race, so this PR hung in 1 of 4 runs. Neither side skipped a call or ran one whole before 130 s ([review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2633)). The hang does not separate this PR from more GPU work reaching the card; it is under investigation. - Tested by others, on `db34184` against `5b9d4ff`: @⁠Royalflamejlh, RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Linux, Wine 11.21 Staging + vkd3d-proton `30b0eb9b` (patched), on `main` `b49be18` with #684, #751, #1599, #1860 and #2082, three runs a side ([review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2633)). In the 20 s after each run's first world frame: 7,347–10,000 chained `ExecuteIndirect`s and 18–22 presents against 2,406–2,849 and 6–7, so about as many per present (408–476 against 372–407); no call skipped or run whole. The world came 40–55 s sooner with this PR, from a warmer NVIDIA cache, so neither that nor the present rate is separated from the cache. - GPU timestamps, 16 rounds × 10 pieces, median per piece step, in a local-only test not in this PR, on the same change before its rebase (`f29910f`, on `809da30`): | | empty | one group | |---|---|---| | `ExecuteIndirect`, root constants (before) | 15.3 µs | 15.6 µs | | `ExecuteIndirect`, root CBV, Dispatch-only signature | 0.41 µs | 1.01 µs | | `Dispatch`, root constants (before) | 0.25 µs | 0.61 µs | | `Dispatch`, root CBV in the upload heap | 0.25 µs | 0.61 µs | - On `db34184`, the same local test at the shape of @⁠SzczepanGrela's direct control (12 slabs × 10 pieces, one group each), 5 alternating trials, two runs: #2404's root constants and this PR's root CBV both 73.66 µs at 32 and at 64 threads (trial medians 73.63–73.70 µs). **Regression run** `scripts/smoke.ps1 -Seconds 60`, the same retail title, `XCL_DIRECT_DXIL=1`, a private XCL cache started from the same `used-pipelines.txt`. From release builds of clean trees, on the machine under **Tested**, each in the queue's title lane beside other jobs (builds, suites or precompiles; no other title run or timing job runs at the same time there): `main`'s in one job with this PR's `db34184`, this PR's `19be659` alone, beside 3 other jobs. `main` `b49be18`: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1228 (PresentX 1228) presents per 2 s (last 3): 4 19 9 device removals: 0 crashes: 0 peak commit: 26156 MB ``` this PR, `19be659`: ``` xcl-smoke v1 commit: 19be65904f91a232fabc540e96c2e037971f1bd8 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1360 (PresentX 1360) presents per 2 s (last 3): 59 52 57 device removals: 0 crashes: 0 peak commit: 17515 MB ``` `compute split` counter at the end of each run: - `main`: `compute split: 171 programs split, 1811 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab)` - this PR: `compute split: 66 programs split, 684 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab); ExecuteIndirect: 0 chained (0 of them whole, 0 slabs lost), 0 whole` **Not tested** - This 60 s run reaches no chained `Dispatch` or `ExecuteIndirect` on either side, so it checks for regressions only; this PR's paths did not run in the title. - The GPU time saved in a title: only the local test above measured it. - Why the direct path takes longer on RADV (above): not found, and not measurable here. - AMD beyond that one test on an RX 6800M; other NVIDIA generations than Blackwell. **Other branches** - #2629 (a failed whole build is kept) conflicts with this PR in `dispatch_chain.rs`: both change `Chain`'s fields and the read of its whole form in `execute_indirect`, and #2629's test sets `Chain::signature`, which this PR removes. Whichever lands second drops `signature` and `build_whole` there and reads the whole form with `.flatten()`. With that, the merge builds (`cargo check -p xcl --lib --tests`). **AI use** - Claude Code with Claude Opus 5.5 wrote the code, the tests and this description, and ran the tests and the regression run on the hardware above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
An ExecuteIndirect of a compute program that the recompiler split into
pieces fell back to the program's whole form, and that form was compiled
on the recording thread when first needed. On an RTX 5070 Ti with
XCL_DIRECT_DXIL=1 a retail title stalls its world load on it: 11
per-material programs, 9-14 pieces each, each dispatched through
ExecuteIndirect, each whole form 690-950 KB of DXIL taking 16-40 s to
compile, one after another from 326 s to past 600 s.

The title's ExecuteIndirects of split programs all have one command
signature: one Dispatch, stride 12, MaxCommandCount 1, no count buffer
(150 of them in 360 s). Their group counts are written on the GPU, so
the CPU cannot slice them when recording.

The ExecuteIndirect now runs the chain on the GPU. A small compute pass
(pso::record_slicer) reads the title's arguments (and count) and writes,
for a fixed number of rounds, one command per piece of each slab of
dispatch_slabs (the root constants of record_dispatch_chain, then the
slab's group counts); unused rounds get empty dispatches. Each piece then
runs one ExecuteIndirect per round with the chain's command signature,
with UAV barriers between them, in the bounded scratch.

The rounds come from the arguments the CPU sees now and the most slabs an
earlier ExecuteIndirect of the program had, plus a quarter (2 to
XCL_SPLIT_INDIRECT_ROUNDS, 16). When the arguments need more slabs and
the whole form is built already, the slicer leaves the rounds empty and
writes the title's Dispatch arguments after them, and the whole form runs
on those through a command signature of one Dispatch; otherwise it leaves
those empty. So one of the two runs, without predication: under one
predicate, two NVIDIA Ampere cards (RTX 3080 Ti, RTX 3070) ran some of
the rounds and not the whole form (#2404). The whole form's
ExecuteIndirect is recorded first, and the rounds' UAV barriers follow
it: on the RTX 3080 Ti it ran right after the slicer alone but not
after the pieces' ExecuteIndirects. If the whole form is not
built, the rounds run, the lost slabs are counted and warned about once
per program, the whole form is built on another thread for the next
ones, and the next rounds are sized from the count. The title's own
predication holds for the slicer too, so the same choice is made under
it. Bundles, lists without scratch and
other command signatures keep the whole form. The 'compute split' line
counts chained, whole and lost ExecuteIndirects.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
runner::dispatch_split_indirect records a chain's ExecuteIndirect the way
the runtime does: the slicer, the whole form on the slicer's arguments
when there is one, then the rounds' ExecuteIndirects.
dispatch_chain_divergent_forward_edges_3d runs it with one command,
several with empty commands and a count buffer that leaves the last out,
and a stride of 20 bytes, in slabs of 1 to 12 groups and 1 to 16 rounds,
each without and with a whole form. It checks the memory against the
whole program and the slicer's slab count. With more slabs than rounds
it checks that the slicer says so and that the whole form runs instead
(the memory would not match if the rounds had run too). Without a whole
form it checks that only the rounds' groups run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chained ExecuteIndirect whose arguments have more slabs than its
rounds runs the program's whole form instead, but only when that form is
built already. Until then the slabs past the rounds are lost, counted and
warned about. Across ten title runs of the earlier version, 158 slabs were
lost in six, in 73,714 chained ExecuteIndirects. In each run it was one
program with 17 slabs: 15 at its first ExecuteIndirect, whose arguments
read 0 when it was recorded and which so got 2 rounds, then 1 at each
later one (at most 16 rounds) until its whole form was built.

- An ExecuteIndirect of a program none of whose ExecuteIndirects has been
  read back yet gets the most rounds. After that, the most slabs any of
  them had (not only those that lost some) size the rounds. This costs
  the empty rounds of a program's first ExecuteIndirects: one
  ExecuteIndirect and one UAV barrier per piece and round. The scratch
  does not grow with the rounds; the command buffer does, by 44 bytes a
  piece and round.
- XCL_SPLIT_INDIRECT_ROUNDS defaults to 32, not 16. Rounds are sized from
  the slabs read back, so the cap matters only for programs that need
  more. With both, none of those runs would have lost a slab.
- The whole form is asked for at the program's first chained
  ExecuteIndirect, not after a loss is read back. It is built on an
  xcl-pso-chain-whole thread, so a huge whole form waits for its turn
  (driver_compile) as the workers' builds do. Before, it was built on a
  thread named xcl-chain-whole, which the huge-build gate did not hold
  (pvfreis, #2404). It is bound only when an ExecuteIndirect has more
  slabs than its rounds.

More than 32 slabs before the whole form is built are still lost, counted
and warned about. Waiting for the whole form when the ExecuteIndirect is
recorded would make it exact. But the precompile does not build the whole
forms of split programs, so that wait is a cold compile on the title's
thread: the 16-40 s stalls this chain removes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The slicer's words after the rounds size the next ExecuteIndirects of
the program: the most slabs one had, and whether any had been measured
at all. Under the title's predication (SetPredicationBufferX) the slicer's
Dispatch may be skipped, and its words then stay as the buffer was
created, all 0. read_back still took them as a count: the program counted
as measured with 0 slabs, so its next ExecuteIndirect whose arguments read
0 on the CPU got 2 rounds instead of the 32 of one never measured.

A chained ExecuteIndirect recorded while the title's predication is set
is no longer read back, as one whose binding failed. Its slicer still
runs the same choice under the predicate.

Reported by @thehollowedone (#2404).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
a_chained_execute_indirect_keeps_its_commands_when_binding_fails records
two chained ExecuteIndirects whose binding succeeds, but its bind closure
did not set the chain's root signature, as bind_abi does. The pieces'
ExecuteIndirects then ran under the slicer's root signature: with the D3D12
debug layer and GPU-based validation, 258 messages (953, 744 and 712). The
test still passed; the runtime's path sets the root signature.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chained ExecuteIndirect records rounds x pieces ExecuteIndirects, each
after a UAV barrier, also when the slicer leaves them empty. On an RTX
5070 Ti (NVIDIA 610.74) such a step takes 14.4 us of GPU time with the
chain's command signature (eight root constants and a Dispatch): 144 us a
round for 10 pieces, 2.3 ms for 16 rounds, 4.6 ms for 32, empty or not.
Without the barrier it is 0.17 us, and with a Dispatch-only signature
0.41 us; a count buffer of 0 makes it 11.5 us. The rounds came from the
most slabs any ExecuteIndirect of the program had, so one large one kept
every later one at that size.

Until the whole form is built that is needed, since the slabs past the
rounds are lost. Once it is built, an ExecuteIndirect with more slabs than
its rounds runs the whole form, so the rounds now follow the last one
read back (and the arguments seen when recording), not the most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The chain's root signature indexes the descriptor heaps directly, so setting it on a list
without heaps is a debug-layer error (1419, four of them under GPU-based validation at
809da30). A title's list has its heaps set when XCL binds the ABI; the test's `bind` now sets
two shader-visible heaps before the root signature, as that list has.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the allocator pool on, `execute_indirect` kept the recording with the
PC allocator the list records on (`alloc_pool::recording_backing`). For a
list the pool does not track it got 0, so it returned Ok(false) and the
ExecuteIndirect ran its whole form. XCL makes such lists itself: a mid-list
split's next list is created on `alloc_pool::current(alloc)` with no
`created_on`. Under Wine + vkd3d-proton on an RTX 4060 Ti, this branch
chained 2 ExecuteIndirects and ran 26-30 whole in three runs of a title,
and the title presented nothing after its loading burst. In a fourth run
with a log line, all 32 that declined did so for this reason.

Such a list is now taken on by the pool, on the PC allocator the title's
allocator stands for, which is the one the list was made on
(`alloc_pool::recording_backing_or_take_on`), and the recording is kept
there. #2333 keeps these recordings with the title's allocator instead
(its `resolve_allocator`). The pool then knows nothing of the list, so it
can take that allocator for free and release the recordings (scratch and
commands buffer) while the list still records or runs on the GPU. Taken
on, the list keeps its backing busy until it is reset elsewhere or
released, and its submits mark the backing like any other list's.

The title's allocator also gets the list's type, so that a Reset while
the list holds its backing swaps it like the title's own lists.

Reported by @Royalflamejlh (#2404). With #2333 merged under this branch
and its fallback in `execute_indirect`, every ExecuteIndirect chained in
four runs (22 to 70,341 of them, 0 whole).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The chains of one recording share one scratch, which `dispatch_chain`
finds by the list's address (`SHARED`). Only a list's Reset forgot it.
Addresses are reused (#2588). A list created at the address of a
released one, on the same allocator while the old recordings were still
held, found the old list's scratch and shared it with work the GPU may
still be running. A chained ExecuteIndirect takes its scratch the same
way. `list_x` now forgets the entry when a list is created and when it
is released, with a unit test that fails without the change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chained ExecuteIndirect keeps its slicer scratch and commands buffer
with the recording of its PC allocator until that allocator is reset
(dispatch_chain::allocator_reset, from reset_pc_allocator) or released.
When the title resets an allocator whose recording is still held or on
the GPU, alloc_pool puts the PC allocator aside and gives the title
another. The one put aside is reset only when the same title allocator
is reset again and reuses it, which may never happen. Until then its
recordings, and the memory they keep, stay.

dhillonjagdeep650-boop found it on an RTX 3080 Ti (#2404): 1,887
recordings under 48 allocators at 110 s, local and non-local memory
growing about 150 MB/s, then a device removal at 110.8 s. The allocator
log said 119 made and 119 put aside.

Every title Reset now also releases the recordings of each PC allocator
put aside that nothing holds any more: no list records on it and its
submits are done. This happens outside the pool's lock.
allocator_reset of an allocator without recordings does nothing, and
the allocator is reset as before when it is reused.

This relies on every chained recording being filed with the PC
allocator its list records on, and on that list being known to the pool
(an earlier commit here takes on the lists it had not seen). A recording
filed with a title's allocator, as #2333's lines file one, would go when
that allocator is free, while its list still records or runs on the GPU
elsewhere.

The first test fails without the sweep: the free allocator put aside still
holds its recordings after another title allocator's Reset. Two more
show that a taken-on list's recording stays while the list records on
its allocator put aside and while its submit runs, and goes after both;
and that a free title allocator put aside does not take a live list's
recording with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`want_whole` builds a split program's whole form on `xcl-pso-chain-whole`, an `xcl-pso*` thread,
so a huge one waits in `big_compile_turn` for a background slot and 3 GB of free commit, with no
timeout. It waits holding `Chain::build_whole`, and nothing on that thread says a title thread
waits for it (`pso_async::build_is_wanted` reads only a worker's build). So a title thread that
needs the same whole form meanwhile (`bind.rs` for an ExecuteIndirect it cannot chain,
`dispatch` without scratch) blocked on the mutex until the background turn came. It got neither
the wanted cap nor the commit skip of a build the title waits for, where before `want_whole` it
compiled at once (found by @pvfreis in the review of #2404).

A title thread now counts itself in `Chain::waiting` while it waits for the whole form, and
`want_whole`'s build runs in `pso_async::build_waited_on`, so `build_is_wanted` is true on that
thread while one does. The background build then goes as one the title waits for, and the title
thread gets the form when it is built. The test fills the background slots, starts the build and
asks for the form on another thread: without the count it waited until the slots were freed
("the title thread waited for the background build's turn").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chained ExecuteIndirect records, per round and piece, a UAV barrier, the piece's pipeline
and an ExecuteIndirect whose command signature sets the eight root constants of the slab. On
an RTX 5070 Ti (NVIDIA 610.74) such an ExecuteIndirect after the barrier takes 15.3 us of GPU
time, empty or not: 32 rounds of 10 pieces are 4.9 ms, every time (#2404). With a Dispatch-only
signature it takes 0.41 us; a barrier only to the scratch does not help (15.3 us).

The pieces read only the slab's size and origin (`split.rs`, `Slab::new`), the same for every
piece of a round. So the chain's root signature takes them as a root CBV (b0 space2, the
register the pieces already read) instead of root constants, and the pieces do not change:
- ExecuteIndirect: the slicer writes one 256-byte command a round (the slab's constants, its
  Dispatch 32 bytes in) instead of one 44-byte command per piece; the CPU points the CBV at the
  round's command, and the pieces' ExecuteIndirects take the Dispatch-only signature. The buffer
  for 32 rounds is 8 KiB, whatever the pieces.
- Dispatch: the CPU writes the slabs' constants into 64 KiB upload-heap blocks of the list's
  allocator, used again once it is reset; without one the whole form runs, as without scratch.

Measured on the RTX 5070 Ti, GPU timestamps, 16 rounds x 10 pieces, median per piece step:
  ExecuteIndirect, root constants (before)       15.3 us empty, 15.6 us with one group
  ExecuteIndirect, root CBV, Dispatch-only        0.41 us empty,  1.01 us with one group
  Dispatch, root constants (before)               0.25 us empty,  0.61 us with one group
  Dispatch, root CBV in the upload heap           0.25 us empty,  0.61 us with one group

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:35:19 +00:00
Author
Owner

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

Focused RX 6800M check on clean PR head acba153caf086ef0e0ebe4cda4e76b7216217fc3: Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC 1.9.2609.5 (debug test build).

$env:XCL_ADAPTER = '6800M'
$env:XCL_REQUIRE_GPU = 'wave64'
cargo test --locked -p xcl --lib dispatch_chain_divergent_forward_edges_3d -- --test-threads=1 --show-output

Result: 1 passed, 0 failed, 0 ignored, 1,346 filtered, 0 SKIPPED notices. The guarded run exited 0 with no memory guard trigger. The test printed CHAIN_GPU=AMD Radeon RX 6800M and completed both split-chain forms:

Guest threads Pieces Scratch words per group Checked words Guard words
32 3 288 384 16
64 3 576 768 16

This is the focused synthetic split ExecuteIndirect fixture. I did not run the full workspace suite or reproduce a title-specific GPU fault on this PR head.

AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent selected and ran the test, verified the live head and adapter, and prepared this report.

**@⁠luckyteagirl** on GitHub · 2026-11-26 04:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7182266980) Focused RX 6800M check on clean PR head `acba153caf086ef0e0ebe4cda4e76b7216217fc3`: Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC 1.9.2609.5 (debug test build). ```powershell $env:XCL_ADAPTER = '6800M' $env:XCL_REQUIRE_GPU = 'wave64' cargo test --locked -p xcl --lib dispatch_chain_divergent_forward_edges_3d -- --test-threads=1 --show-output ``` Result: **1 passed, 0 failed, 0 ignored, 1,346 filtered, 0 `SKIPPED` notices**. The guarded run exited 0 with no memory guard trigger. The test printed `CHAIN_GPU=AMD Radeon RX 6800M` and completed both split-chain forms: | Guest threads | Pieces | Scratch words per group | Checked words | Guard words | | ---: | ---: | ---: | ---: | ---: | | 32 | 3 | 288 | 384 | 16 | | 64 | 3 | 576 | 768 | 16 | This is the focused synthetic split `ExecuteIndirect` fixture. I did not run the full workspace suite or reproduce a title-specific GPU fault on this PR head. AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent selected and ran the test, verified the live head and adapter, and prepared this report.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-26 05:00 UTC · original

Wine/NVIDIA cross-check of the new test — passes on the real adapter. Head acba153caf086ef0e0ebe4cda4e76b7216217fc3 (stacked on #2404's 97a70a73c, as described), RTX 4060 Laptop GPU 8 GiB, Wine 11.0, vkd3d-proton 3.2.0 diagnostic-relaxed build (same provenance commit as the stock DLL, -Db_ndebug=true + the two #175 from_iface relaxations, local-only; this test is not behind the vtable wall but the stack is uniform here), NVIDIA 590.48.1, --locked --target x86_64-pc-windows-msvc, one test thread, fresh Compiling xcl .../xcl-pr2633/... provenance.

direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset — 1/1 pass (0.65 s), with the real NVIDIA device opened (DXVK logs Found device: NVIDIA GeForce RTX 4060 Laptop GPU): the Dispatch-form slab constants go into 64 KiB upload-heap blocks of the list's allocator and the blocks are reused after reset, as the test's assertions check.

Scope: correctness fixture only — the 15.3 µs → 0.41 µs ExecuteIndirect claim remains the author's RTX 5070 Ti measurement; no perf numbers from this host, no title run. Log: .compat-xcl/logs/verify-pr2633-wine-cbv-slab-relaxed.log (local). AI-assisted verification and report (OpenAI Codex).

**@⁠pickles976** on GitHub · 2026-11-26 05:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7183101906) **Wine/NVIDIA cross-check of the new test — passes on the real adapter.** Head `acba153caf086ef0e0ebe4cda4e76b7216217fc3` (stacked on #2404's `97a70a73c`, as described), RTX 4060 Laptop GPU 8 GiB, Wine 11.0, vkd3d-proton 3.2.0 diagnostic-relaxed build (same provenance commit as the stock DLL, `-Db_ndebug=true` + the two #175 `from_iface` relaxations, local-only; this test is not behind the vtable wall but the stack is uniform here), NVIDIA 590.48.1, `--locked --target x86_64-pc-windows-msvc`, one test thread, fresh `Compiling xcl .../xcl-pr2633/...` provenance. `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset` — **1/1 pass** (0.65 s), with the real NVIDIA device opened (DXVK logs `Found device: NVIDIA GeForce RTX 4060 Laptop GPU`): the Dispatch-form slab constants go into 64 KiB upload-heap blocks of the list's allocator and the blocks are reused after reset, as the test's assertions check. Scope: correctness fixture only — the 15.3 µs → 0.41 µs `ExecuteIndirect` claim remains the author's RTX 5070 Ti measurement; no perf numbers from this host, no title run. Log: `.compat-xcl/logs/verify-pr2633-wine-cbv-slab-relaxed.log` (local). AI-assisted verification and report (OpenAI Codex).
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 05:01 UTC · original

@⁠pickles976 thank you for the Wine cross-check on acba153 (7183101906): the new test passing on the RTX 4060 Laptop's own device is the first run of it outside our machines. It is in the description under Tested, with your caveats: your local relaxed vkd3d-proton build, correctness only, no timing or title run.

AI use: Claude Code with Claude Opus 5.5 read the report and wrote this reply.

**@⁠Kalmarv** on GitHub · 2026-11-26 05:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7183112638) @⁠pickles976 thank you for the Wine cross-check on `acba153` (7183101906): the new test passing on the RTX 4060 Laptop's own device is the first run of it outside our machines. It is in the description under **Tested**, with your caveats: your local relaxed vkd3d-proton build, correctness only, no timing or title run. AI use: Claude Code with Claude Opus 5.5 read the report and wrote this reply.
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 05:57 UTC · original · reviewed

Could the free constants pool have a byte budget, or release oversized blocks on allocator reset? Every block removed from CONSTANTS is retained in process-global FREE_CONSTANTS; reuse requires the same device and sufficient capacity, and I could not find a trim or device-cleanup path. A temporary burst of large slab constants can therefore leave its committed upload resources mapped for the rest of the process, even after the recording allocators retire. The reuse fixture could also assert that excess blocks are released. Exact-head source review at acba153caf086ef0e0ebe4cda4e76b7216217fc3; no measured memory footprint or title run. AI-assisted review with Codex.

**@⁠luckyteagirl** on GitHub · 2026-11-26 05:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#pullrequestreview-6069221831) · **reviewed** Could the free constants pool have a byte budget, or release oversized blocks on allocator reset? Every block removed from `CONSTANTS` is retained in process-global `FREE_CONSTANTS`; reuse requires the same device and sufficient capacity, and I could not find a trim or device-cleanup path. A temporary burst of large slab constants can therefore leave its committed upload resources mapped for the rest of the process, even after the recording allocators retire. The reuse fixture could also assert that excess blocks are released. Exact-head source review at `acba153caf086ef0e0ebe4cda4e76b7216217fc3`; no measured memory footprint or title run. AI-assisted review with Codex.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-26 06:25 UTC · original

Source review of acba153c, no run yet. One thing for anyone A/B-ing this against #2404 on a warm cache:

The pieces' DXIL doesn't change here, only their root signature does (parameter 7 goes from 8 root constants to a root CBV in abi_signature). But driver_cache::name_for (real.rs:4506) keys a piece's blob only on the DXIL hash, its length and the flags. So a .chain.pso written by #2404 (or main) has the same file name under this head, and it was built against the old root signature. Expected effect: the driver refuses it ("a driver blob kept on disk was refused … compiled again"), so the first run after switching builds every piece cold. A comparison on a shared cache would then charge that to this PR. And if a driver ever did accept the mismatched blob, it would be running pieces against the wrong root signature. A different extension for the CBV layout (or a layout version folded into name_for) would keep the two apart.

When we run it, we'll give each side its own cache.

My 5090 and I await the root-CBV era.

AI use: Gemini (Antigravity) noticed the shared file name in a review; Claude Code (Claude Opus 5.5) checked name_for, the piece DXIL and the refusal path at acba153c and wrote this.

**@⁠KDenKC** on GitHub · 2026-11-26 06:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7184414003) Source review of `acba153c`, no run yet. One thing for anyone A/B-ing this against #2404 on a warm cache: The pieces' DXIL doesn't change here, only their root signature does (parameter 7 goes from 8 root constants to a root CBV in `abi_signature`). But `driver_cache::name_for` (`real.rs:4506`) keys a piece's blob only on the DXIL hash, its length and the flags. So a `.chain.pso` written by #2404 (or `main`) has the same file name under this head, and it was built against the old root signature. Expected effect: the driver refuses it ("a driver blob kept on disk was refused … compiled again"), so the first run after switching builds every piece cold. A comparison on a shared cache would then charge that to this PR. And if a driver ever did accept the mismatched blob, it would be running pieces against the wrong root signature. A different extension for the CBV layout (or a layout version folded into `name_for`) would keep the two apart. When we run it, we'll give each side its own cache. My 5090 and I await the root-CBV era. AI use: Gemini (Antigravity) noticed the shared file name in a review; Claude Code (Claude Opus 5.5) checked `name_for`, the piece DXIL and the refusal path at `acba153c` and wrote this.
github-bot force-pushed github-bot/gh-2633 from acba153caf to db34184fe8 2026-11-26 07:41:36 +00:00 Compare
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 07:39 UTC · original

@⁠luckyteagirl thank you for the review (6069221831): right, nothing ever released a block once it was in FREE_CONSTANTS. In db34184 an allocator's reset keeps only blocks of the usual 64 KiB for use again, up to 8 MiB of them (keep_free_constants); bigger blocks and those past it are released there. The reuse fixture now also asserts that no block bigger than 64 KiB is kept and that the kept ones stay within the 8 MiB. With the old reset it fails ("a block bigger than 65536 kept for use again").

@⁠KDenKC thank you (7184414003), that was a real gap: the pieces' DXIL is the same under this PR, so a .chain.pso built for #2404's root constants had the same name. In db34184 a piece's file also names the chain's root signature, as a hash of it serialized (pso::abi_signature_id), so -<sig>.chain.pso files of #2404/main and of this PR sit side by side instead of being read and refused. Test: a_piece_is_named_after_the_root_signature_it_was_built_with (one DXIL, two root signatures, two names); with the old name it fails. On a shared cache each side's first run still builds its own pieces once, but switching no longer makes the driver refuse and drop the other side's files, and no blob of the other layout can be accepted. Separate caches per side remain the cleaner A/B.

AI use: Claude Code with Claude Opus 5.5 wrote both changes, their assertions and this reply, and ran the tests.

**@⁠Kalmarv** on GitHub · 2026-11-26 07:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7185688222) @⁠luckyteagirl thank you for the review (6069221831): right, nothing ever released a block once it was in `FREE_CONSTANTS`. In `db34184` an allocator's reset keeps only blocks of the usual 64 KiB for use again, up to 8 MiB of them (`keep_free_constants`); bigger blocks and those past it are released there. The reuse fixture now also asserts that no block bigger than 64 KiB is kept and that the kept ones stay within the 8 MiB. With the old reset it fails (`"a block bigger than 65536 kept for use again"`). @⁠KDenKC thank you (7184414003), that was a real gap: the pieces' DXIL is the same under this PR, so a `.chain.pso` built for #2404's root constants had the same name. In `db34184` a piece's file also names the chain's root signature, as a hash of it serialized (`pso::abi_signature_id`), so `-<sig>.chain.pso` files of #2404/`main` and of this PR sit side by side instead of being read and refused. Test: `a_piece_is_named_after_the_root_signature_it_was_built_with` (one DXIL, two root signatures, two names); with the old name it fails. On a shared cache each side's first run still builds its own pieces once, but switching no longer makes the driver refuse and drop the other side's files, and no blob of the other layout can be accepted. Separate caches per side remain the cleaner A/B. AI use: Claude Code with Claude Opus 5.5 wrote both changes, their assertions and this reply, and ran the tests.
Author
Owner

@⁠SzczepanGrela on GitHub · 2026-11-26 07:59 UTC · original

RX 9070 / RADV paired check of #2633 db34184fe8c017347303433e714d2f6dd7fc5ee9 against its stacked #2404 base 97a70a73c96ee39cadffe1baafbc6725091277f6.

Tested

Ryzen 7 7700, RX 9070, CachyOS Linux 7.3.0-5-cachyos, RADV Mesa 26.3.1-arch3.5, GE-Proton11-12 / Wine 11.0, vkd3d-proton 8293130ebe370b1+ (local build with assertions disabled), DXC 1.9.2602.17, Rust 1.97.1. Windows GNU release binaries under Wine.

Built both exact revisions with cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run. Ran wine <unit-test.exe> <filter> --skip retail_ --nocapture --test-threads=1, then the same filters with --test-threads=4.

The counts below were identical in both thread modes. Filters are under hle::d3d12x:::

Filter #2404 passed / failed #2633 passed / failed
real::dispatch_chain::tests:: 7 / 0 9 / 0
alloc_pool::tests:: 7 / 1 8 / 1
real::driver_cache::tests:: 4 / 0 5 / 0

Zero ignored tests and zero SKIPPED notices. The updated constants-reuse test, root-signature cache-name test and whole-build queue test passed. The shared failure is a_recording_outlives_the_reset_of_the_titles_allocator: CreateCommandList returns 0x80070057, with d3d12_command_list_Reset: Invalid command allocator on both revisions.

dispatch_chain_divergent_forward_edges_3d aborts on both revisions with 0xc0000005 at d3d12core.dll+0x2e7d48. Symbolized XCL frames lead to CreateComputePipelineState for a split piece in runner::dispatch_split_samples, before the fixture's indirect cases. This fixture did not pass; no cause is attributed to this PR.

Local GPU-timestamp diagnostic

Separate local copies add test-only repetition/timestamp instrumentation to runner::dispatch_split_indirect and a synthetic DXC fixture. Production recording functions are unchanged from their respective revisions. Ten cs_6_6 pieces use the chain ABI, pass values through scratch and add 55 per active word per repetition. The 20 shader blobs, for 32- and 64-thread groups, are byte-identical between versions. Every result word, 16 guard words and the indirect tail were checked.

Indirect samples cover the command-buffer transition back to UAV, the slicer and all 32 rounds of 10 pieces, with at most one group per slab. The direct control has 12 slabs of 10 pieces. PSO creation, allocation, initial uploads, final readback and CPU recording time are outside the timestamps. Five paired trials alternate A/B and B/A. Each case runs eight batches of 17 repetitions; discard two warmup batches and the first repetition of each remaining batch, keeping 96 samples per trial per case.

GPU microseconds per complete operation, median of the five trial medians; brackets give their min/max:

Threads Case #2404 us [min, max] #2633 us [min, max]
32 indirect, empty 1946.56 [1715.40, 2047.06] 533.24 [533.20, 536.72]
32 indirect, 1 group 1970.82 [1573.04, 2046.36] 544.52 [544.22, 547.80]
32 indirect, 12 groups 2010.48 [1563.16, 2092.08] 635.72 [635.40, 637.36]
32 direct, 12 groups 114.48 [96.48, 116.52] 137.18 [137.16, 137.26]
64 indirect, empty 2543.24 [1895.56, 2580.12] 625.44 [625.40, 625.44]
64 indirect, 1 group 1970.80 [1788.18, 2058.48] 637.12 [637.08, 637.12]
64 indirect, 12 groups 1801.40 [1704.22, 2086.68] 738.30 [736.44, 740.20]
64 direct, 12 groups 108.88 [104.88, 114.60] 169.12 [138.08, 169.12]

All ten diagnostic invocations passed: one test each, zero failed, ignored or skipped. Indirect operations take less GPU time in every paired trial. The 32-thread direct control takes 19.8% more at the reported medians, and more in every pair. The 64-thread direct result has larger variation. These are synthetic command-path results, not the author's per-step benchmark or a title-speed measurement; the direct-control difference has no established root cause.

Not tested

Native Windows, the full workspace suite, retail workloads or scripts/smoke.ps1, gameplay/FPS, persisted driver-blob acceptance across layouts, or translated guest wave64 correctness. The diagnostic uses DXC-built pieces and bypasses runtime allocator reuse and the title pipeline-cache path. XCL application caches were separate per version; the vkd3d shader disk cache was disabled. GPU clocks were not fixed.

AI use

OpenAI Codex (GPT-6; exact serving variant unavailable) audited the diffs, prepared and ran the comparisons and local diagnostic, checked the logs and drafted this report for user review.

**@⁠SzczepanGrela** on GitHub · 2026-11-26 07:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7186055146) RX 9070 / RADV paired check of #2633 `db34184fe8c017347303433e714d2f6dd7fc5ee9` against its stacked #2404 base `97a70a73c96ee39cadffe1baafbc6725091277f6`. **Tested** Ryzen 7 7700, RX 9070, CachyOS Linux 7.3.0-5-cachyos, RADV Mesa 26.3.1-arch3.5, GE-Proton11-12 / Wine 11.0, vkd3d-proton `8293130ebe370b1+` (local build with assertions disabled), DXC 1.9.2602.17, Rust 1.97.1. Windows GNU release binaries under Wine. Built both exact revisions with `cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run`. Ran `wine <unit-test.exe> <filter> --skip retail_ --nocapture --test-threads=1`, then the same filters with `--test-threads=4`. The counts below were identical in both thread modes. Filters are under `hle::d3d12x::`: | Filter | #2404 passed / failed | #2633 passed / failed | | :--- | ---: | ---: | | `real::dispatch_chain::tests::` | 7 / 0 | 9 / 0 | | `alloc_pool::tests::` | 7 / 1 | 8 / 1 | | `real::driver_cache::tests::` | 4 / 0 | 5 / 0 | Zero ignored tests and zero `SKIPPED` notices. The updated constants-reuse test, root-signature cache-name test and whole-build queue test passed. The shared failure is `a_recording_outlives_the_reset_of_the_titles_allocator`: `CreateCommandList` returns `0x80070057`, with `d3d12_command_list_Reset: Invalid command allocator` on both revisions. `dispatch_chain_divergent_forward_edges_3d` aborts on both revisions with `0xc0000005` at `d3d12core.dll+0x2e7d48`. Symbolized XCL frames lead to `CreateComputePipelineState` for a split piece in `runner::dispatch_split_samples`, before the fixture's indirect cases. This fixture did not pass; no cause is attributed to this PR. **Local GPU-timestamp diagnostic** Separate local copies add test-only repetition/timestamp instrumentation to `runner::dispatch_split_indirect` and a synthetic DXC fixture. Production recording functions are unchanged from their respective revisions. Ten `cs_6_6` pieces use the chain ABI, pass values through scratch and add 55 per active word per repetition. The 20 shader blobs, for 32- and 64-thread groups, are byte-identical between versions. Every result word, 16 guard words and the indirect tail were checked. Indirect samples cover the command-buffer transition back to UAV, the slicer and all 32 rounds of 10 pieces, with at most one group per slab. The direct control has 12 slabs of 10 pieces. PSO creation, allocation, initial uploads, final readback and CPU recording time are outside the timestamps. Five paired trials alternate A/B and B/A. Each case runs eight batches of 17 repetitions; discard two warmup batches and the first repetition of each remaining batch, keeping 96 samples per trial per case. GPU microseconds per complete operation, median of the five trial medians; brackets give their min/max: | Threads | Case | #2404 us [min, max] | #2633 us [min, max] | | ---: | :--- | ---: | ---: | | 32 | indirect, empty | 1946.56 [1715.40, 2047.06] | 533.24 [533.20, 536.72] | | 32 | indirect, 1 group | 1970.82 [1573.04, 2046.36] | 544.52 [544.22, 547.80] | | 32 | indirect, 12 groups | 2010.48 [1563.16, 2092.08] | 635.72 [635.40, 637.36] | | 32 | direct, 12 groups | 114.48 [96.48, 116.52] | 137.18 [137.16, 137.26] | | 64 | indirect, empty | 2543.24 [1895.56, 2580.12] | 625.44 [625.40, 625.44] | | 64 | indirect, 1 group | 1970.80 [1788.18, 2058.48] | 637.12 [637.08, 637.12] | | 64 | indirect, 12 groups | 1801.40 [1704.22, 2086.68] | 738.30 [736.44, 740.20] | | 64 | direct, 12 groups | 108.88 [104.88, 114.60] | 169.12 [138.08, 169.12] | All ten diagnostic invocations passed: one test each, zero failed, ignored or skipped. Indirect operations take less GPU time in every paired trial. The 32-thread direct control takes 19.8% more at the reported medians, and more in every pair. The 64-thread direct result has larger variation. These are synthetic command-path results, not the author's per-step benchmark or a title-speed measurement; the direct-control difference has no established root cause. **Not tested** Native Windows, the full workspace suite, retail workloads or `scripts/smoke.ps1`, gameplay/FPS, persisted driver-blob acceptance across layouts, or translated guest wave64 correctness. The diagnostic uses DXC-built pieces and bypasses runtime allocator reuse and the title pipeline-cache path. XCL application caches were separate per version; the vkd3d shader disk cache was disabled. GPU clocks were not fixed. **AI use** OpenAI Codex (GPT-6; exact serving variant unavailable) audited the diffs, prepared and ran the comparisons and local diagnostic, checked the logs and drafted this report for user review.
github-bot force-pushed github-bot/gh-2633 from db34184fe8 to 19be65904f 2026-11-26 11:17:29 +00:00 Compare
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 11:09 UTC · original

Thanks @⁠SzczepanGrela for the paired RX 9070 / RADV run of db34184 against 97a70a7. It is now under Tested in the description.

Direct, 12 groups, slower with this PR. This PR does change the direct path. With #2404, every piece got the slab's eight words as root constants (SetComputeRoot32BitConstants before each Dispatch). Now the CPU writes them once a slab into a 64 KiB upload-heap block, and the pieces read them through the root CBV (pso::record_dispatch_chain). Your 32-thread pairs don't overlap (96.48–116.52 µs against 137.16–137.26 µs), so on RADV it looks real rather than noise: about 23 µs over 120 dispatches, about 0.19 µs a dispatch.

On the RTX 5070 Ti, in a local test that times this PR's record_dispatch_chain against #2404's recording of the same 12 slabs × 10 pieces (one group each, a UAV barrier before every piece in both), 5 alternating trials of 16 timed repetitions:

median of 5 trial medians, µs [lowest, highest], two runs 32 threads 64 threads
#2404: root constants per piece 73.66 [73.63, 73.66] 73.66 [73.63, 73.70]
this PR: root CBV per slab, upload heap 73.66 [73.63, 73.66] 73.66 [73.63, 73.70]

Both take 73.66 µs, about 0.61 µs per dispatch after its barrier, so on this card the root CBV costs nothing measurable. I have not found the cause on RADV. One possibility is that a root CBV is read from memory where root constants are not: under vkd3d-proton, root constants become push constants, and the upload heap is host-visible memory. I can't measure RADV here.

a_recording_outlives_the_reset_of_the_titles_allocator. This test is main's (11920b5e), and neither #2404 nor this PR changes it. It is not the one-recording-list rule: the call that fails is the test's first CreateCommandList (alloc_pool.rs:719), on a fresh allocator with no other list. Just before it, at :717, the test adopts that allocator. real::adopt overwrites the object's vtable pointer (real.rs:725). vkd3d-proton's d3d12_command_allocator_from_iface returns NULL for an allocator whose vtable is not its own, and d3d12_command_list_Reset then logs "Invalid command allocator" and returns E_INVALIDARG. So under vkd3d-proton every allocator XCL adopts gets this error. That is the same check @⁠pickles976 relaxed locally for their run.

dispatch_chain_divergent_forward_edges_3d. The abort in d3d12core.dll happens on both revisions. The same test passed natively on Windows on an RX 6800M (@⁠luckyteagirl, on acba153) and on our RTX 5070 Ti. I'm leaving it as Wine-specific.

AI use: Claude Code with Claude Opus 5.5 read the code, ran the local timing test on the hardware above and wrote this reply.

**@⁠Kalmarv** on GitHub · 2026-11-26 11:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7190340430) Thanks @⁠SzczepanGrela for the paired RX 9070 / RADV run of `db34184` against `97a70a7`. It is now under **Tested** in the description. **Direct, 12 groups, slower with this PR.** This PR does change the direct path. With #2404, every piece got the slab's eight words as root constants (`SetComputeRoot32BitConstants` before each `Dispatch`). Now the CPU writes them once a slab into a 64 KiB upload-heap block, and the pieces read them through the root CBV (`pso::record_dispatch_chain`). Your 32-thread pairs don't overlap (96.48–116.52 µs against 137.16–137.26 µs), so on RADV it looks real rather than noise: about 23 µs over 120 dispatches, about 0.19 µs a dispatch. On the RTX 5070 Ti, in a local test that times this PR's `record_dispatch_chain` against #2404's recording of the same 12 slabs × 10 pieces (one group each, a UAV barrier before every piece in both), 5 alternating trials of 16 timed repetitions: | median of 5 trial medians, µs [lowest, highest], two runs | 32 threads | 64 threads | |---|---:|---:| | #2404: root constants per piece | 73.66 [73.63, 73.66] | 73.66 [73.63, 73.70] | | this PR: root CBV per slab, upload heap | 73.66 [73.63, 73.66] | 73.66 [73.63, 73.70] | Both take 73.66 µs, about 0.61 µs per dispatch after its barrier, so on this card the root CBV costs nothing measurable. I have not found the cause on RADV. One possibility is that a root CBV is read from memory where root constants are not: under vkd3d-proton, root constants become push constants, and the upload heap is host-visible memory. I can't measure RADV here. **`a_recording_outlives_the_reset_of_the_titles_allocator`.** This test is `main`'s (11920b5e), and neither #2404 nor this PR changes it. It is not the one-recording-list rule: the call that fails is the test's first `CreateCommandList` (alloc_pool.rs:719), on a fresh allocator with no other list. Just before it, at :717, the test adopts that allocator. `real::adopt` overwrites the object's vtable pointer (real.rs:725). vkd3d-proton's `d3d12_command_allocator_from_iface` returns NULL for an allocator whose vtable is not its own, and `d3d12_command_list_Reset` then logs "Invalid command allocator" and returns `E_INVALIDARG`. So under vkd3d-proton every allocator XCL adopts gets this error. That is the same check @⁠pickles976 relaxed locally for their run. **`dispatch_chain_divergent_forward_edges_3d`.** The abort in `d3d12core.dll` happens on both revisions. The same test passed natively on Windows on an RX 6800M (@⁠luckyteagirl, on `acba153`) and on our RTX 5070 Ti. I'm leaving it as Wine-specific. AI use: Claude Code with Claude Opus 5.5 read the code, ran the local timing test on the hardware above and wrote this reply.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-26 12:01 UTC · original

db34184 against its base 5b9d4ff in the retail title, RTX 5090: about 3.4× the chained ExecuteIndirects by 130 s. One of the two runs of this head ended in a GPU hang (TDR). Both sides include #2551 and a local code-size log counter.

Each side had its own XCL_DXIL_CACHE, seeded without driver blobs, and ran --precompile --only cs --used-only --pipelines (2,812 pipelines, 227 split programs / 2,000 pieces, 0 refused), a kept 200 s warm-up, then 300 s on a copy. Release, driver 621.24, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0. The two exe names were each used once before, for the same kind of short run.

at 130 s base 5b9d4ff db34184, run 1 db34184, run 2 (XCL_DRED=1)
chained ExecuteIndirect 808 2,768 3,139
chained dispatches / slabs 222 / 1,694 855 / 8,939 445 / 7,564
scratch (peak) 420 MiB (420) 548 MiB (613) 390 MiB (537)
end #2403 removal 0x887a0005 at 134.7 s 0x887a0006 (device hung) at 133.45 s; two nvlddmkm 153 events in the 3 s before #2403 removal at 131.7 s; DRED only page fault at GPU VA 0x0
  • The root-signature name works. The CBV side's cache holds only …-<sig>.chain.pso files and the base side only the old three-field names, with no refusals on either.
  • The hang:
    • It did not come back on the DRED rerun, so it is one in two runs here.
    • At that title point every run, base included, has the same cold 944 KB whole form compiling, so that does not tell the hang apart.
    • We saw one hang before, also at world load and also on a change that made chained compute cheaper on top of #2404: one in three runs there. So I can't say whether this is the PR or just more GPU work per frame hitting a timeout on this card. More runs need fresh exe names, which we are out of tonight.

Not tested: more runs; DRED breadcrumbs from a run that hangs; the 1 GiB heap profile (every run here ends at the #2403 removal by ~135 s).

Your minion's 5090 survived its first root-CBV adventure, mostly.

AI use: Claude Code (Claude Opus 5.5) built and ran the arms. Gemini (Antigravity) compared the logs. Claude Code checked the table and the compile timeline against the logs and wrote this.

**@⁠KDenKC** on GitHub · 2026-11-26 12:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191463051) **`db34184` against its base `5b9d4ff` in the retail title, RTX 5090: about 3.4× the chained ExecuteIndirects by 130 s. One of the two runs of this head ended in a GPU hang (TDR).** Both sides include #2551 and a local code-size log counter. Each side had its own `XCL_DXIL_CACHE`, seeded without driver blobs, and ran `--precompile --only cs --used-only --pipelines` (2,812 pipelines, 227 split programs / 2,000 pieces, 0 refused), a kept 200 s warm-up, then 300 s on a copy. Release, driver 621.24, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0`. The two exe names were each used once before, for the same kind of short run. | at 130 s | base `5b9d4ff` | `db34184`, run 1 | `db34184`, run 2 (`XCL_DRED=1`) | |---|---:|---:|---:| | chained ExecuteIndirect | 808 | 2,768 | 3,139 | | chained dispatches / slabs | 222 / 1,694 | 855 / 8,939 | 445 / 7,564 | | scratch (peak) | 420 MiB (420) | 548 MiB (613) | 390 MiB (537) | | end | #2403 removal `0x887a0005` at 134.7 s | **`0x887a0006` (device hung) at 133.45 s**; two `nvlddmkm` 153 events in the 3 s before | #2403 removal at 131.7 s; DRED only `page fault at GPU VA 0x0` | - **The root-signature name works.** The CBV side's cache holds only `…-<sig>.chain.pso` files and the base side only the old three-field names, with no refusals on either. - **The hang:** - It did not come back on the DRED rerun, so it is one in two runs here. - At that title point every run, base included, has the same cold 944 KB whole form compiling, so that does not tell the hang apart. - We saw one hang before, also at world load and also on a change that made chained compute cheaper on top of #2404: one in three runs there. So I can't say whether this is the PR or just more GPU work per frame hitting a timeout on this card. More runs need fresh exe names, which we are out of tonight. Not tested: more runs; DRED breadcrumbs from a run that hangs; the 1 GiB heap profile (every run here ends at the #2403 removal by ~135 s). Your minion's 5090 survived its first root-CBV adventure, mostly. AI use: Claude Code (Claude Opus 5.5) built and ran the arms. Gemini (Antigravity) compared the logs. Claude Code checked the table and the compile timeline against the logs and wrote this.
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 12:03 UTC · original

Thanks @⁠KDenKC for the paired runs, and for checking the cache: only …-<sig>.chain.pso files on this side, with no refusals, is what the new name is for. Your runs are now under Tested by others in the description.

Why about 3.4× the chained ExecuteIndirects. It is not more programs chaining. Both sides split the same programs (227 programs, 2,000 pieces from the precompile). This PR doesn't change when a call is chained: on both, every ExecuteIndirect or Dispatch of a split program is chained. What it changes is what one call costs on the GPU. On the RTX 5070 Ti, a piece step of a chained ExecuteIndirect takes about 0.4 µs instead of 15 µs, so 32 rounds of 10 pieces take about 0.13 ms instead of 4.9 ms. So I'd expect the title to get through more frames by 130 s, and with them more of the same calls. More slabs and more scratch follow from more calls. If your logs have the presents at 130 s for the three runs, they would show whether it is more frames or more calls per frame.

The hang. It is one in two runs, and as you say it doesn't separate this PR from more GPU work reaching the card. One chained ExecuteIndirect does less GPU work with this PR than with #2404, so it is not one longer submission. But more calls per second give an intermittent fault more chances. It is under investigation, and I have no cause yet.

The current head 19be659 only adds the program's static samplers to the piece blob's name. It records the same commands, so it should not change these counts. Pieces with static samplers get new file names, though, so their blobs are built once more.

AI use: Claude Code with Claude Opus 5.5 read the report against XCL's code and wrote this reply.

**@⁠Kalmarv** on GitHub · 2026-11-26 12:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191517699) Thanks @⁠KDenKC for the paired runs, and for checking the cache: only `…-<sig>.chain.pso` files on this side, with no refusals, is what the new name is for. Your runs are now under **Tested by others** in the description. **Why about 3.4× the chained `ExecuteIndirect`s.** It is not more programs chaining. Both sides split the same programs (227 programs, 2,000 pieces from the precompile). This PR doesn't change when a call is chained: on both, every `ExecuteIndirect` or `Dispatch` of a split program is chained. What it changes is what one call costs on the GPU. On the RTX 5070 Ti, a piece step of a chained `ExecuteIndirect` takes about 0.4 µs instead of 15 µs, so 32 rounds of 10 pieces take about 0.13 ms instead of 4.9 ms. So I'd expect the title to get through more frames by 130 s, and with them more of the same calls. More slabs and more scratch follow from more calls. If your logs have the presents at 130 s for the three runs, they would show whether it is more frames or more calls per frame. **The hang.** It is one in two runs, and as you say it doesn't separate this PR from more GPU work reaching the card. One chained `ExecuteIndirect` does less GPU work with this PR than with #2404, so it is not one longer submission. But more calls per second give an intermittent fault more chances. It is under investigation, and I have no cause yet. The current head `19be659` only adds the program's static samplers to the piece blob's name. It records the same commands, so it should not change these counts. Pieces with static samplers get new file names, though, so their blobs are built once more. AI use: Claude Code with Claude Opus 5.5 read the report against XCL's code and wrote this reply.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-26 12:13 UTC · original

@⁠Kalmarv it's more calls per frame, not more frames. Presents summed from the 2 s activity lines:

presents up to 130 s presents 110-130 s chained ExecuteIndirect at 130 s
base 5b9d4ff 2,131 152 808
db34184, run 1 (hung at 133.45 s) 2,062 140 2,768
db34184, run 2 2,064 125 3,139

So in about the same number of frames, this head issues 3.4-3.9× the chained calls. We are running two more runs of each side with DRED on to get a hang rate, and will add them here.

AI use: Claude Code (Claude Opus 5.5) summed the log lines and wrote this.

**@⁠KDenKC** on GitHub · 2026-11-26 12:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191725182) @⁠Kalmarv it's more calls per frame, not more frames. Presents summed from the 2 s activity lines: | | presents up to 130 s | presents 110-130 s | chained `ExecuteIndirect` at 130 s | |---|---:|---:|---:| | base `5b9d4ff` | 2,131 | 152 | 808 | | `db34184`, run 1 (hung at 133.45 s) | 2,062 | 140 | 2,768 | | `db34184`, run 2 | 2,064 | 125 | 3,139 | So in about the same number of frames, this head issues 3.4-3.9× the chained calls. We are running two more runs of each side with DRED on to get a hang rate, and will add them here. AI use: Claude Code (Claude Opus 5.5) summed the log lines and wrote this.
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 12:15 UTC · original

Thanks @⁠KDenKC for the presents. They show my reading was wrong: it is not more frames, since both sides presented about as many. So this head issues 3.4–3.9× the chained calls in the same frames, and I don't have the cause yet.

Both heads use the same rule for whether a title's ExecuteIndirect of a split program is chained, run as the whole form, or skipped. On 5b9d4ff, two steps can fail that this head no longer has: the command signature with the chain's root constants, and the larger commands buffer of each call. If either fails, the call is skipped and not counted as chained. If you still have the logs of these runs, two things from them would tell whether the base dropped calls that this head now runs:

  • the full compute split line at 130 s on both sides, whose last field counts the calls run whole;
  • any ExecuteIndirect of a split program skipped: … or ExecuteIndirect whole compute PSO warnings (only the first 4 skips are logged, with their reason).

AI use: Claude Code with Claude Opus 5.5 read the code and wrote this comment.

**@⁠Kalmarv** on GitHub · 2026-11-26 12:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191771397) Thanks @⁠KDenKC for the presents. They show my reading was wrong: it is not more frames, since both sides presented about as many. So this head issues 3.4–3.9× the chained calls in the same frames, and I don't have the cause yet. Both heads use the same rule for whether a title's `ExecuteIndirect` of a split program is chained, run as the whole form, or skipped. On `5b9d4ff`, two steps can fail that this head no longer has: the command signature with the chain's root constants, and the larger commands buffer of each call. If either fails, the call is skipped and not counted as chained. If you still have the logs of these runs, two things from them would tell whether the base dropped calls that this head now runs: - the full `compute split` line at 130 s on both sides, whose last field counts the calls run whole; - any `ExecuteIndirect of a split program skipped: …` or `ExecuteIndirect whole compute PSO` warnings (only the first 4 skips are logged, with their reason). AI use: Claude Code with Claude Opus 5.5 read the code and wrote this comment.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-26 12:18 UTC · original

Hang rate, as promised in 7191725182: four more runs with XCL_DRED=1, alternating sides, same recipe. No hang.

run side end
hr1 base 5b9d4ff #2403 removal 0x887a0005 at 129.7 s
hr2 db34184 #2403 removal at 128.5 s
hr3 base #2403 removal at 126.7 s
hr4 db34184 access violation at 100.6 s in a texture worker (tiling::Chain::detile_level ← title_textures::subresources), the #751 race, not this PR
  • No nvlddmkm events in these four. DRED shows only the VA 0x0 entry on the removals.
  • Tally so far: this head 1 TDR in 4 runs, base 0 in 3.
  • All four ended before 130 s, so there are no 130 s counts to compare this time.

AI use: Claude Code (Claude Opus 5.5) ran them, checked the end lines in the logs and wrote this.

**@⁠KDenKC** on GitHub · 2026-11-26 12:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191832423) **Hang rate, as promised in 7191725182: four more runs with `XCL_DRED=1`, alternating sides, same recipe. No hang.** | run | side | end | |---|---|---| | hr1 | base `5b9d4ff` | #2403 removal `0x887a0005` at 129.7 s | | hr2 | `db34184` | #2403 removal at 128.5 s | | hr3 | base | #2403 removal at 126.7 s | | hr4 | `db34184` | access violation at 100.6 s in a texture worker (`tiling::Chain::detile_level` ← `title_textures::subresources`), the #751 race, not this PR | - No `nvlddmkm` events in these four. DRED shows only the `VA 0x0` entry on the removals. - Tally so far: this head 1 TDR in 4 runs, base 0 in 3. - All four ended before 130 s, so there are no 130 s counts to compare this time. AI use: Claude Code (Claude Opus 5.5) ran them, checked the end lines in the logs and wrote this.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-26 12:43 UTC · original

@⁠Kalmarv from the logs: the base did not drop calls before 130 s. The full compute split lines at 130 s:

base 5b9d4ff:  232 programs split, 2057 pieces built, 222 chained dispatches issued in 1694 slabs; scratch 420 MiB (most 420, largest dispatch 2109 in one slab); ExecuteIndirect: 808 chained (0 of them whole, 0 slabs lost), 0 whole
db34184 run 1: 229 programs split, 2024 pieces built, 855 chained dispatches issued in 8939 slabs; scratch 548 MiB (most 613, largest dispatch 2109 in one slab); ExecuteIndirect: 2768 chained (0 of them whole, 0 slabs lost), 0 whole
db34184 run 2: 229 programs split, 2024 pieces built, 445 chained dispatches issued in 7564 slabs; scratch 390 MiB (most 537, largest dispatch 2109 in one slab); ExecuteIndirect: 3139 chained (0 of them whole, 0 slabs lost), 0 whole

ExecuteIndirect of a split program skipped appears only at the very end:

  • base: 4 lines at 134.68-134.71 s, all no buffer for the commands of a chained ExecuteIndirect, in the same second as its #2403 removal at 134.68 s;
  • db34184 run 2: the same 4 at 131.75-131.76 s, with its removal at 131.74 s;
  • db34184 run 1 (the hang): none.

There are no ExecuteIndirect whole compute PSO lines in any of the three. So up to 130 s, neither side skipped or ran whole a chained ExecuteIndirect. The extra calls on this head are not ones the base dropped.

AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.

**@⁠KDenKC** on GitHub · 2026-11-26 12:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192378903) @⁠Kalmarv from the logs: the base did not drop calls before 130 s. The full `compute split` lines at 130 s: ``` base 5b9d4ff: 232 programs split, 2057 pieces built, 222 chained dispatches issued in 1694 slabs; scratch 420 MiB (most 420, largest dispatch 2109 in one slab); ExecuteIndirect: 808 chained (0 of them whole, 0 slabs lost), 0 whole db34184 run 1: 229 programs split, 2024 pieces built, 855 chained dispatches issued in 8939 slabs; scratch 548 MiB (most 613, largest dispatch 2109 in one slab); ExecuteIndirect: 2768 chained (0 of them whole, 0 slabs lost), 0 whole db34184 run 2: 229 programs split, 2024 pieces built, 445 chained dispatches issued in 7564 slabs; scratch 390 MiB (most 537, largest dispatch 2109 in one slab); ExecuteIndirect: 3139 chained (0 of them whole, 0 slabs lost), 0 whole ``` `ExecuteIndirect of a split program skipped` appears only at the very end: - base: 4 lines at 134.68-134.71 s, all `no buffer for the commands of a chained ExecuteIndirect`, in the same second as its #2403 removal at 134.68 s; - `db34184` run 2: the same 4 at 131.75-131.76 s, with its removal at 131.74 s; - `db34184` run 1 (the hang): none. There are no `ExecuteIndirect whole compute PSO` lines in any of the three. So up to 130 s, neither side skipped or ran whole a chained `ExecuteIndirect`. The extra calls on this head are not ones the base dropped. AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-26 12:55 UTC · original

On your 7191771397, from Linux + NVIDIA, 3 runs a side: in the same 20 s after each run's first world frame, this PR issued 2.6–4.2× the chained ExecuteIndirects with 2.6–3.7× the presents. Per present the two were close: 408–476 against 372–407.

Setup: 3 of each side's runs from our #2404 report (7188240609): RTX 4060 Ti 16 GB, NVIDIA 615.71.09, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with #175's relaxed-vtable patch and a local dxil-spirv patch; main b49be18 + #684, #751, #1599, #1860, #2082, #2404 5b9d4ff, ± this PR db34184f; XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_DXC_THREADS=4 XCL_PSO_DISK_CACHE=0; 5 of the 6 with a logging-only line of ours; 2 of this PR's 3 with vkd3d-proton logging, one of them with VKD3D_CONFIG=ignore_shared_fence,log_memory_budget. All six ended early, at 135–168 s: five at our RAM stop or memory cap, one with status 3.

tree runs world frames from 20 s counted chained ExecuteIndirect presents per present
#2404 5b9d4ff 3 130.1–137.2 s 140–160 s 2,406–2,849 6–7 372–407
+ this PR db34184 3 82.0–90.0 s 90–110 s (2 runs), 100–120 s (1) 7,347–10,000 18–22 408–476
  • As on the 5090 (7192378903), neither side dropped a call here: no ExecuteIndirect of a split program skipped or ExecuteIndirect whole compute PSO warning, the compute split line ended 0 whole, and XCL's dispatch counter showed 0 skipped to its last line (152 s on the base, 130–132 s with this PR). One run of this PR had 6 of its chained calls run whole from 120 s, after its counted window.
  • Presents up to 130 s were alike, 1,375–1,471 against 1,364–1,646. But the base's were all before the world-load burst (74–82 s): its world frames began at 130–137 s. With this PR, 38–44 of them were world frames.
  • "World frames from": the first present after the pause that follows the burst (3 or more 2 s windows without one); each count is the difference of two of the counter's 10 s lines; with 6–7 presents in the base's window, one present moves its rate by about 15 %.
  • This PR's runs started from a warmer NVIDIA cache: the base's, after one 310 s run of this PR. That run, on the base's own cache, drew its first world frames only at 234 s. That is likely why its world frames came 40–55 s sooner; these runs do not tell whether it also explains the threefold present rate.
  • On the 5090, KDenKC's compute split lines at 110 s, with the 130 s ones in 7192378903, would give the chained calls behind the 110–130 s presents in 7191725182.

Not tested: Windows; your new head 19be659; one cache for both trees.

AI use: Claude Code (Claude Opus 5.5) made and read the runs and wrote this.

Posted without review by a person: the account owner was away and reads replies later.

**@⁠Royalflamejlh** on GitHub · 2026-11-26 12:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192638615) On your 7191771397, from Linux + NVIDIA, 3 runs a side: in the same 20 s after each run's first world frame, this PR issued 2.6–4.2× the chained `ExecuteIndirect`s with 2.6–3.7× the presents. Per present the two were close: 408–476 against 372–407. **Setup:** 3 of each side's runs from our #2404 report (7188240609): RTX 4060 Ti 16 GB, NVIDIA 615.71.09, Wine 11.21 Staging, vkd3d-proton `v3.1-90-g30b0eb9b` with #175's relaxed-vtable patch and a local dxil-spirv patch; `main` `b49be18` + #684, #751, #1599, #1860, #2082, #2404 `5b9d4ff`, ± this PR `db34184f`; `XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_DXC_THREADS=4 XCL_PSO_DISK_CACHE=0`; 5 of the 6 with a logging-only line of ours; 2 of this PR's 3 with vkd3d-proton logging, one of them with `VKD3D_CONFIG=ignore_shared_fence,log_memory_budget`. All six ended early, at 135–168 s: five at our RAM stop or memory cap, one with status 3. | tree | runs | world frames from | 20 s counted | chained `ExecuteIndirect` | presents | per present | |---|---|---|---|---|---|---| | #2404 `5b9d4ff` | 3 | 130.1–137.2 s | 140–160 s | 2,406–2,849 | 6–7 | 372–407 | | + this PR `db34184` | 3 | 82.0–90.0 s | 90–110 s (2 runs), 100–120 s (1) | 7,347–10,000 | 18–22 | 408–476 | - As on the 5090 (7192378903), neither side dropped a call here: no `ExecuteIndirect of a split program skipped` or `ExecuteIndirect whole compute PSO` warning, the `compute split` line ended `0 whole`, and XCL's dispatch counter showed 0 skipped to its last line (152 s on the base, 130–132 s with this PR). One run of this PR had 6 of its chained calls run whole from 120 s, after its counted window. - Presents up to 130 s were alike, 1,375–1,471 against 1,364–1,646. But the base's were all before the world-load burst (74–82 s): its world frames began at 130–137 s. With this PR, 38–44 of them were world frames. - "World frames from": the first present after the pause that follows the burst (3 or more 2 s windows without one); each count is the difference of two of the counter's 10 s lines; with 6–7 presents in the base's window, one present moves its rate by about 15 %. - This PR's runs started from a warmer NVIDIA cache: the base's, after one 310 s run of this PR. That run, on the base's own cache, drew its first world frames only at 234 s. That is likely why its world frames came 40–55 s sooner; these runs do not tell whether it also explains the threefold present rate. - On the 5090, KDenKC's `compute split` lines at 110 s, with the 130 s ones in 7192378903, would give the chained calls behind the 110–130 s presents in 7191725182. **Not tested:** Windows; your new head `19be659`; one cache for both trees. **AI use:** Claude Code (Claude Opus 5.5) made and read the runs and wrote this. Posted without review by a person: the account owner was away and reads replies later.
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 12:57 UTC · original

Thanks @⁠KDenKC and @⁠Royalflamejlh.

@⁠KDenKC (7192378903 and the four DRED runs in 7191832423): neither side skipped a call or ran one whole before 130 s, so the difference is not calls the base dropped. It is not how they are counted either. On both heads, "chained ExecuteIndirect" goes up by one for each of the title's ExecuteIndirects recorded as a chain, and "chained dispatches" by one for each of the title's Dispatches, with "slabs" adding that call's slabs. This PR changes only what one call records (a root CBV per round instead of root constants per piece), not how many calls are counted. So up to 130 s, the title itself issued about 3.4–3.9× the ExecuteIndirects of split programs on this head. Your presents up to 130 s include the frames before the world, so they don't say whether that is more calls per world frame. If it's cheap, the compute split line at 110 s from the same three runs would give the chained calls behind your 110–130 s presents (152 / 140 / 125). The hang is 1 in 4 runs of this head so far and still under investigation.

@⁠Royalflamejlh (7192638615): in the 20 s after the first world frame, this PR had 2.6–4.2× the chained calls and 2.6–3.7× the presents. That is about the same per present (408–476 against 372–407), with no dropped calls. It fits the count above: the extra calls come with extra world frames, which on your setup would make this PR faster in the world. What these runs don't separate:

  • This PR's runs started from a warmer NVIDIA cache. That likely explains the world coming 40–55 s sooner, and may explain part of the present rate.
  • Three runs a side.
  • Linux + vkd3d-proton only.
  • db34184, not the current head 19be659 (which records the same commands).

Both are now under Tested by others in the description.

AI use: Claude Code with Claude Opus 5.5 read the code and the two reports and wrote this reply.

**@⁠Kalmarv** on GitHub · 2026-11-26 12:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192686472) Thanks @⁠KDenKC and @⁠Royalflamejlh. **@⁠KDenKC** (7192378903 and the four DRED runs in 7191832423): neither side skipped a call or ran one whole before 130 s, so the difference is not calls the base dropped. It is not how they are counted either. On both heads, "chained `ExecuteIndirect`" goes up by one for each of the title's `ExecuteIndirect`s recorded as a chain, and "chained dispatches" by one for each of the title's `Dispatch`es, with "slabs" adding that call's slabs. This PR changes only what one call records (a root CBV per round instead of root constants per piece), not how many calls are counted. So up to 130 s, the title itself issued about 3.4–3.9× the `ExecuteIndirect`s of split programs on this head. Your presents up to 130 s include the frames before the world, so they don't say whether that is more calls per world frame. If it's cheap, the `compute split` line at 110 s from the same three runs would give the chained calls behind your 110–130 s presents (152 / 140 / 125). The hang is 1 in 4 runs of this head so far and still under investigation. **@⁠Royalflamejlh** (7192638615): in the 20 s after the first world frame, this PR had 2.6–4.2× the chained calls and 2.6–3.7× the presents. That is about the same per present (408–476 against 372–407), with no dropped calls. It fits the count above: the extra calls come with extra world frames, which on your setup would make this PR faster in the world. What these runs don't separate: - This PR's runs started from a warmer NVIDIA cache. That likely explains the world coming 40–55 s sooner, and may explain part of the present rate. - Three runs a side. - Linux + vkd3d-proton only. - `db34184`, not the current head `19be659` (which records the same commands). Both are now under **Tested by others** in the description. AI use: Claude Code with Claude Opus 5.5 read the code and the two reports and wrote this reply.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-26 13:13 UTC · original

@⁠Kalmarv the compute split line reads 0 chained ExecuteIndirect at both 110 s and 120 s in all three runs. So every chained call up to 130 s came between 120 and 130 s:

chained ExecuteIndirect at 130 s presents 120-130 s per present
base 5b9d4ff 808 64 ~13
db34184, run 1 2,768 51 ~54
db34184, run 2 3,139 48 ~65

On this rig, then, it is about 4-5× the calls per world frame, not more frames. That differs from @⁠Royalflamejlh's Linux runs, where calls per present matched. Caveats:

  • It's only the first ~10 s of the world.
  • 48-64 presents is a small count.
  • All three ended by ~135 s at the #2403 removal.

AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.

**@⁠KDenKC** on GitHub · 2026-11-26 13:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7193045119) @⁠Kalmarv the `compute split` line reads 0 chained `ExecuteIndirect` at both 110 s and 120 s in all three runs. So every chained call up to 130 s came between 120 and 130 s: | | chained `ExecuteIndirect` at 130 s | presents 120-130 s | per present | |---|---:|---:|---:| | base `5b9d4ff` | 808 | 64 | ~13 | | `db34184`, run 1 | 2,768 | 51 | ~54 | | `db34184`, run 2 | 3,139 | 48 | ~65 | On this rig, then, it is about 4-5× the calls per world frame, not more frames. That differs from @⁠Royalflamejlh's Linux runs, where calls per present matched. Caveats: - It's only the first ~10 s of the world. - 48-64 presents is a small count. - All three ended by ~135 s at the #2403 removal. AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-26 13:15 UTC · original

Thanks @⁠KDenKC. I don't think the 120–130 s window can give calls per world frame. At 13–65 calls per present, most of those presents look like loading-screen frames (@⁠Royalflamejlh's world frames had about 400 each). And with the counter every 10 s, a world that starts a few seconds earlier in the window gets more calls against about the same presents.

Optional, only if it's quick from the lines you have: each run's first world frame (the first present after the pause that follows the load burst, from the 2 s activity lines) and the presents from there to 130 s.

AI use: Claude Code with Claude Opus 5.5 wrote this reply.

**@⁠Kalmarv** on GitHub · 2026-11-26 13:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7193082843) Thanks @⁠KDenKC. I don't think the 120–130 s window can give calls per world frame. At 13–65 calls per present, most of those presents look like loading-screen frames (@⁠Royalflamejlh's world frames had about 400 each). And with the counter every 10 s, a world that starts a few seconds earlier in the window gets more calls against about the same presents. Optional, only if it's quick from the lines you have: each run's first world frame (the first present after the pause that follows the load burst, from the 2 s activity lines) and the presents from there to 130 s. AI use: Claude Code with Claude Opus 5.5 wrote this reply.
Author
Owner

@⁠KDenKC on GitHub · 2026-11-26 13:43 UTC · original

@⁠Kalmarv fair point. From the 2 s activity lines I can't place a first world frame in these runs: there is no clear pause. Presents per 2 s, 96-130 s:

base 5b9d4ff:  96:36 98:55 100:54 102:59 104:55 106:42 108:24 110:38 112:11 114:3 116:11 118:25 120:24 122:23 124:16 126:1 128:0 130:2
db34184 run 1: 96:56 98:55 100:56 102:44 104:15 106:33 108:11 110:14 112:8 114:17 116:25 118:25 120:28 122:15 124:5 126:0 128:3 130:3

The rate just falls off from ~55 to ~0 over 100-126 s, and the chained calls all come in 120-130 s, when the title shows 0-28 frames per 2 s. So I agree the per-present numbers I gave say little about world frames. These runs end at the #2403 removal before the world settles. The frame dumps could show where the world starts if that's worth it.

AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.

**@⁠KDenKC** on GitHub · 2026-11-26 13:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7193752733) @⁠Kalmarv fair point. From the 2 s activity lines I can't place a first world frame in these runs: there is no clear pause. Presents per 2 s, 96-130 s: ``` base 5b9d4ff: 96:36 98:55 100:54 102:59 104:55 106:42 108:24 110:38 112:11 114:3 116:11 118:25 120:24 122:23 124:16 126:1 128:0 130:2 db34184 run 1: 96:56 98:55 100:56 102:44 104:15 106:33 108:11 110:14 112:8 114:17 116:25 118:25 120:28 122:15 124:5 126:0 128:3 130:3 ``` The rate just falls off from ~55 to ~0 over 100-126 s, and the chained calls all come in 120-130 s, when the title shows 0-28 frames per 2 s. So I agree the per-present numbers I gave say little about world frames. These runs end at the #2403 removal before the world settles. The frame dumps could show where the world starts if that's worth it. AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2633/head:github-bot/gh-2633'
git switch 'github-bot/gh-2633'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2633'
git switch 'github-bot/gh-2633'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2633'
git switch 'github-bot/gh-2633'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2633'
git switch 'main'
git merge --squash 'github-bot/gh-2633'
git switch 'main'
git merge --ff-only 'github-bot/gh-2633'
git switch 'main'
git merge 'github-bot/gh-2633'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.