tests: pixel_aot draws spend most of their time creating a D3D12 device per case #442

Closed
opened 2026-11-22 03:50:11 +00:00 by lukaslw-lab · 46 comments
lukaslw-lab commented 2026-11-22 03:50:11 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-22T03:50:11Z.


AI-assisted (Claude Code). Measurements from my own machine.

Problem

pixel_aot_check.py draw launches offscreen_check.exe once per case, and each launch creates a new D3D12 device. That device creation dominates the test time, and new draws keep adding to it. pixel_aot_hardware has TIMEOUT 60.

At 3f02f4d, Windows 10 22H2 (19045.7846), RTX 3080 Ti (driver 32.0.16.1047), debug layer enabled, DXC 1.9.2609.5, idle machine:

pixel_aot_hardware pixel_aot_warp
Total 46.5 s 11.1 s
offscreen_check.exe, 134 launches 44.0 s 8.4 s
dxc.exe, 56 calls 1.9 s 2.1 s
Python 0.6 s 0.6 s

A program that only creates a hardware device and a queue takes 300–360 ms per process; the debug layer adds about 10–30 ms. Under moderate background load the hardware test took 57–60 s and timed out in 4 of 5 runs.

Proposal

An opt-in offscreen_check <backend> --batch <file> that creates the device once and runs the listed cases on it, printing the same per-case output and status as today. The single-case command line stays unchanged.

This touches the same main() as #166 (operation table, explicit pass/77/fail). It could build on top of #166 once that lands: device setup once, then one table row per case.

Two PRs, after #166:

  1. offscreen_check batch mode and its controls.
  2. pixel_aot_check.py switches to it, timed to avoid the open pixel_aot PRs.

Estimated result: hardware under 10 s, WARP about 4 s.

Alternatives

  • Raise TIMEOUT: simple, but the test keeps growing.
  • Split pixel_aot_* into several tests: shorter tests, same total time.
  • Keep one process per case: it isolates crashes and device state, which the batch mode must preserve.

Verification

On WARP and hardware:

  • A batch gives the same output and status per case as separate runs.
  • A pixel_mismatch case between passing cases fails alone.
  • Debug-layer errors are attributed to the case that caused them.
  • After a forced device removal, every remaining case fails.
  • The exit status is non-zero if any case failed.

Is one process per case intentional, for example to isolate driver state? If so, would you prefer a higher timeout instead?

Checklist

  • I checked for an existing issue or pull request for this change.
  • I did not include game files, dumps, distribution links or credentials.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6538118891 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-22T03:50:11Z. --- _AI-assisted (Claude Code). Measurements from my own machine._ ### Problem `pixel_aot_check.py draw` launches `offscreen_check.exe` once per case, and each launch creates a new D3D12 device. That device creation dominates the test time, and new draws keep adding to it. `pixel_aot_hardware` has `TIMEOUT 60`. At `3f02f4d`, Windows 10 22H2 (19045.7846), RTX 3080 Ti (driver 32.0.16.1047), debug layer enabled, DXC 1.9.2609.5, idle machine: | | `pixel_aot_hardware` | `pixel_aot_warp` | |---|---:|---:| | Total | 46.5 s | 11.1 s | | `offscreen_check.exe`, 134 launches | 44.0 s | 8.4 s | | `dxc.exe`, 56 calls | 1.9 s | 2.1 s | | Python | 0.6 s | 0.6 s | A program that only creates a hardware device and a queue takes 300–360 ms per process; the debug layer adds about 10–30 ms. Under moderate background load the hardware test took 57–60 s and timed out in 4 of 5 runs. ### Proposal An opt-in `offscreen_check <backend> --batch <file>` that creates the device once and runs the listed cases on it, printing the same per-case output and status as today. The single-case command line stays unchanged. This touches the same `main()` as #166 (operation table, explicit pass/77/fail). It could build on top of #166 once that lands: device setup once, then one table row per case. Two PRs, after #166: 1. `offscreen_check` batch mode and its controls. 2. `pixel_aot_check.py` switches to it, timed to avoid the open `pixel_aot` PRs. Estimated result: hardware under 10 s, WARP about 4 s. ### Alternatives - Raise `TIMEOUT`: simple, but the test keeps growing. - Split `pixel_aot_*` into several tests: shorter tests, same total time. - Keep one process per case: it isolates crashes and device state, which the batch mode must preserve. ### Verification On WARP and hardware: - A batch gives the same output and status per case as separate runs. - A `pixel_mismatch` case between passing cases fails alone. - Debug-layer errors are attributed to the case that caused them. - After a forced device removal, every remaining case fails. - The exit status is non-zero if any case failed. Is one process per case intentional, for example to isolate driver state? If so, would you prefer a higher timeout instead? ### Checklist - [x] I checked for an existing issue or pull request for this change. - [x] I did not include game files, dumps, distribution links or credentials.
grahamster2 commented 2026-11-24 06:48:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-22T03:58:08Z.


Second measurement, from a different machine.

At ba7d6b7: Windows 11 Pro build 26200, RTX 3080 (driver 32.0.16.1088), Ryzen 5 7600X, DXC from Windows SDK 10.0.26100.0. The D3D12 debug layer is unavailable (Graphics Tools not installed; offscreen_check prints debug_layer=unavailable). The machine was close to idle, at about 8% CPU.

ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$', 3 runs each:

pixel_aot_hardware pixel_aot_warp
Total (ctest, min / median) 28.95 / 28.98 s 6.34 / 6.40 s
offscreen_check.exe, 139 launches 26.8 s 4.4 s
dxc.exe, 57 calls 1.4 s 1.4 s
Python (remainder) 0.7 s 0.6 s

I got the breakdown from a wrapper outside the repo that times every subprocess.run call and runs pixel_aot_check.py unchanged. The three runs agree within 0.2 s. The count is now 139 launches and 57 dxc calls; it was 134 and 56 at 3f02f4d.

Per offscreen_check launch: hardware median 189 ms (min 182, p90 203); WARP median 31 ms (min 28, p90 35).

I also built a program that only creates a device on the first high-performance adapter (or WARP) at feature level 11_0, plus a direct command queue, and then exits. Over 20 runs after one warm-up:

  • hardware: mean 188 ms, median 185, min 179, max 207, sd 8
  • WARP: mean 31 ms, median 28, min 27, max 40, sd 4

(An empty cmd /c exit 0 costs about 19 ms per process here.)

So on this machine the cost of a launch is almost all device creation: 139 × ~188 ms ≈ 26 s of the 26.8 s. That is the same pattern as the issue, but the absolute times are about 0.6× on hardware and 0.55× on WARP. Without a debug layer here I can't isolate its cost. The difference from the issue's 300–360 ms per hardware device mixes the debug layer, Windows 10 vs 11, the driver build and the hardware, and this data can't tell those apart.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7073896174 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7073896174). Originally posted by [grahamster2](https://github.com/grahamster2) on 2026-11-22T03:58:08Z. --- Second measurement, from a different machine. At `ba7d6b7`: Windows 11 Pro build 26200, RTX 3080 (driver 32.0.16.1088), Ryzen 5 7600X, DXC from Windows SDK 10.0.26100.0. The D3D12 debug layer is **unavailable** (Graphics Tools not installed; `offscreen_check` prints `debug_layer=unavailable`). The machine was close to idle, at about 8% CPU. `ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$'`, 3 runs each: | | `pixel_aot_hardware` | `pixel_aot_warp` | |---|---:|---:| | Total (ctest, min / median) | 28.95 / 28.98 s | 6.34 / 6.40 s | | `offscreen_check.exe`, 139 launches | 26.8 s | 4.4 s | | `dxc.exe`, 57 calls | 1.4 s | 1.4 s | | Python (remainder) | 0.7 s | 0.6 s | I got the breakdown from a wrapper outside the repo that times every `subprocess.run` call and runs `pixel_aot_check.py` unchanged. The three runs agree within 0.2 s. The count is now 139 launches and 57 dxc calls; it was 134 and 56 at `3f02f4d`. Per `offscreen_check` launch: hardware median 189 ms (min 182, p90 203); WARP median 31 ms (min 28, p90 35). I also built a program that only creates a device on the first high-performance adapter (or WARP) at feature level 11_0, plus a direct command queue, and then exits. Over 20 runs after one warm-up: - hardware: mean 188 ms, median 185, min 179, max 207, sd 8 - WARP: mean 31 ms, median 28, min 27, max 40, sd 4 (An empty `cmd /c exit 0` costs about 19 ms per process here.) So on this machine the cost of a launch is almost all device creation: 139 × ~188 ms ≈ 26 s of the 26.8 s. That is the same pattern as the issue, but the absolute times are about 0.6× on hardware and 0.55× on WARP. Without a debug layer here I can't isolate its cost. The difference from the issue's 300–360 ms per hardware device mixes the debug layer, Windows 10 vs 11, the driver build and the hardware, and this data can't tell those apart.
roansystemlabs commented 2026-11-24 06:48:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-22T08:25:13Z.


Third measurement, aimed at the one variable the first two could not separate: the debug layer, on and off on the same machine.

Environment. main at 5a16ee9, dev preset (Debug, Ninja, MSVC Build Tools 2022, CMake/CTest 3.31.6). Windows 11 build 26200, RTX 3070 (driver 32.0.16.2101), Intel i7-10700, DXC from Windows SDK 10.0.26100.0, Python env from requirements-dev.txt. Graphics Tools (Tools.Graphics.DirectX~~~~0.0.1.0) installed for this run, no restart needed; offscreen_check then prints debug_layer=enabled. CPU load was about 7% before and after the runs.

How the layer was switched. To use one binary for every state, I built offscreen_check with a local two-line patch that is not meant for upstream: if the environment variable X2W_MEASURE_NO_DEBUG_LAYER is set, the ID3D12Debug pointer is released before EnableDebugLayer(), so the program takes the same path as a machine without Graphics Tools and prints debug_layer=unavailable. D3D12GetDebugInterface is still called in both states. I checked the state in each ctest -V log: "off" runs print only debug_layer=unavailable, "on" runs print only debug_layer=enabled. The order was A/B/A (off, on, off), three runs each:

ctest --preset dev --no-tests=error -V -R '^pixel_aot_(hardware|warp)$'

State pixel_aot_hardware runs (s) mean / min / max (s) pixel_aot_warp mean / min / max (s)
A1, layer off 51.25, 47.74, 51.29 50.09 / 47.74 / 51.29 8.92 / 8.88 / 8.97
B, layer on 49.61, 49.80, 49.87 49.76 / 49.61 / 49.87 9.32 / 9.20 / 9.42
A2, layer off 47.63, 47.58, 60.05 (Timeout) 51.75 / 47.58 / 60.05 8.90 / 8.81 / 9.04

Device creation alone. A small program outside the repo, like the one in the previous comment: in the "on" state it requests the debug interface and calls EnableDebugLayer(), in the "off" state it does neither; device on the first high-performance adapter (or WARP) at feature level 11_0, one direct queue, exit. Timed per process from outside, 20 runs after one warm-up, in each state:

State hardware mean / median / min / max (ms) WARP mean / median / min / max (ms)
A1, layer off 249.5 / 247.8 / 243.2 / 263.6 25.2 / 25.1 / 24.4 / 27.1
B, layer on 260.2 / 259.9 / 251.9 / 276.2 29.6 / 28.8 / 27.9 / 33.0
A2, layer off 247.9 / 246.2 / 244.3 / 258.3 24.9 / 24.8 / 24.3 / 25.6

A later interleaved repeat (15 runs per state, alternating off/on) gave the same picture: hardware median 250.0 → 260.6 ms, WARP 25.6 → 27.7 ms.

What I read from this, cautiously:

  • On this machine the debug layer costs about 10–13 ms per hardware device (about 4–5%) and a few ms (2–5) per WARP device. That agrees with the 10–30 ms in the issue, and the two "off" blocks agree with each other, so drift is unlikely.
  • At the test level the layer is not visible above run-to-run noise on hardware: the passing "off" runs spread over 3.7 s (47.58–51.29), more than the expected effect of the layer (115 hardware launches per run × ~11 ms ≈ 1.3 s). On WARP it shows as about +0.4 s.
  • 115 launches × ~250 ms is about 29 s of the ~50 s hardware test here, so on this machine other work also takes a large share. I did not break that down.
  • So the debug layer does not explain the gap between the issue's 300–360 ms and the 188 ms on the RTX 3080 in the previous comment. On this RTX 3070 the device itself costs about 250 ms with the layer off, between the two.
  • The hardware test is close to the limit here without the debug layer: 47.6–51.3 s in five of the six "off" runs, and one "off" run (A2, third) hit the 60 s timeout on a machine that was otherwise near idle. Its log shows results for 113 of the 115 hardware launches before the timeout. I can't say what slowed that run; it is a single occurrence.

Raw ctest -V logs and the probe source are available if useful.

AI-assisted: run and prepared with the support of Roan System; reviewed before posting.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7076506687 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7076506687). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-22T08:25:13Z. --- Third measurement, aimed at the one variable the first two could not separate: the debug layer, on and off on the same machine. **Environment.** `main` at `5a16ee9`, `dev` preset (Debug, Ninja, MSVC Build Tools 2022, CMake/CTest 3.31.6). Windows 11 build 26200, RTX 3070 (driver 32.0.16.2101), Intel i7-10700, DXC from Windows SDK 10.0.26100.0, Python env from `requirements-dev.txt`. Graphics Tools (`Tools.Graphics.DirectX~~~~0.0.1.0`) installed for this run, no restart needed; `offscreen_check` then prints `debug_layer=enabled`. CPU load was about 7% before and after the runs. **How the layer was switched.** To use one binary for every state, I built `offscreen_check` with a local two-line patch that is not meant for upstream: if the environment variable `X2W_MEASURE_NO_DEBUG_LAYER` is set, the `ID3D12Debug` pointer is released before `EnableDebugLayer()`, so the program takes the same path as a machine without Graphics Tools and prints `debug_layer=unavailable`. `D3D12GetDebugInterface` is still called in both states. I checked the state in each `ctest -V` log: "off" runs print only `debug_layer=unavailable`, "on" runs print only `debug_layer=enabled`. The order was A/B/A (off, on, off), three runs each: `ctest --preset dev --no-tests=error -V -R '^pixel_aot_(hardware|warp)$'` | State | `pixel_aot_hardware` runs (s) | mean / min / max (s) | `pixel_aot_warp` mean / min / max (s) | |---|---|---:|---:| | A1, layer off | 51.25, 47.74, 51.29 | 50.09 / 47.74 / 51.29 | 8.92 / 8.88 / 8.97 | | B, layer on | 49.61, 49.80, 49.87 | 49.76 / 49.61 / 49.87 | 9.32 / 9.20 / 9.42 | | A2, layer off | 47.63, 47.58, **60.05 (Timeout)** | 51.75 / 47.58 / 60.05 | 8.90 / 8.81 / 9.04 | **Device creation alone.** A small program outside the repo, like the one in the previous comment: in the "on" state it requests the debug interface and calls `EnableDebugLayer()`, in the "off" state it does neither; device on the first high-performance adapter (or WARP) at feature level 11_0, one direct queue, exit. Timed per process from outside, 20 runs after one warm-up, in each state: | State | hardware mean / median / min / max (ms) | WARP mean / median / min / max (ms) | |---|---:|---:| | A1, layer off | 249.5 / 247.8 / 243.2 / 263.6 | 25.2 / 25.1 / 24.4 / 27.1 | | B, layer on | 260.2 / 259.9 / 251.9 / 276.2 | 29.6 / 28.8 / 27.9 / 33.0 | | A2, layer off | 247.9 / 246.2 / 244.3 / 258.3 | 24.9 / 24.8 / 24.3 / 25.6 | A later interleaved repeat (15 runs per state, alternating off/on) gave the same picture: hardware median 250.0 → 260.6 ms, WARP 25.6 → 27.7 ms. **What I read from this, cautiously:** - On this machine the debug layer costs about 10–13 ms per hardware device (about 4–5%) and a few ms (2–5) per WARP device. That agrees with the 10–30 ms in the issue, and the two "off" blocks agree with each other, so drift is unlikely. - At the test level the layer is not visible above run-to-run noise on hardware: the passing "off" runs spread over 3.7 s (47.58–51.29), more than the expected effect of the layer (115 hardware launches per run × ~11 ms ≈ 1.3 s). On WARP it shows as about +0.4 s. - 115 launches × ~250 ms is about 29 s of the ~50 s hardware test here, so on this machine other work also takes a large share. I did not break that down. - So the debug layer does not explain the gap between the issue's 300–360 ms and the 188 ms on the RTX 3080 in the previous comment. On this RTX 3070 the device itself costs about 250 ms with the layer off, between the two. - The hardware test is close to the limit here **without** the debug layer: 47.6–51.3 s in five of the six "off" runs, and one "off" run (A2, third) hit the 60 s timeout on a machine that was otherwise near idle. Its log shows results for 113 of the 115 hardware launches before the timeout. I can't say what slowed that run; it is a single occurrence. Raw `ctest -V` logs and the probe source are available if useful. AI-assisted: run and prepared with the support of Roan System; reviewed before posting.
roansystemlabs commented 2026-11-24 06:48:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-22T12:07:52Z.


I had the same change in progress locally and only now saw #556, which batches the floating-point predicate draws. I'm not opening an overlapping PR. The parts #556 leaves alone are the other three predicate suites in pixel_aot_predicate_rounding_*: 32-bit integer (33 single-case launches), 16-bit integer (45, plus three must_mismatch controls on mutated shaders that stay single-case) and SDWA (24). Batched per compiled group with the same references, they take 20 launches instead of 102. The signed/unsigned and inverted-unordered SDWA controls stay inside their batch as expected mismatches, each followed by a passing case.

Local check on 0f8e7fa: Windows 11 (26200), RTX 3070 (driver 32.0.16.2101) and WARP, debug layer on. All pass, and injected faults fail on both adapters with the case named (i32 emitted as u32, i16 as u16, SDWA nlt emitted as ordered ge, controls relabelled pass). Whole draw-predicate-rounding with the float suite batched as well: 185 → 83 renderer launches. My timings were taken on a loaded machine, so I'll only quote the launch counts.

I'd stack this after #556 and reuse its run_pixel_batch() as it lands, so the two don't conflict. Is that fine with the author of #556, or is a follow-up for these suites already planned? If so, I'll leave it.

AI-assisted: prepared with an AI coding agent and reviewed by a human before posting.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7078895831 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7078895831). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-22T12:07:52Z. --- I had the same change in progress locally and only now saw #556, which batches the floating-point predicate draws. I'm not opening an overlapping PR. The parts #556 leaves alone are the other three predicate suites in `pixel_aot_predicate_rounding_*`: 32-bit integer (33 single-case launches), 16-bit integer (45, plus three `must_mismatch` controls on mutated shaders that stay single-case) and SDWA (24). Batched per compiled group with the same references, they take 20 launches instead of 102. The signed/unsigned and inverted-unordered SDWA controls stay inside their batch as expected mismatches, each followed by a passing case. Local check on `0f8e7fa`: Windows 11 (26200), RTX 3070 (driver 32.0.16.2101) and WARP, debug layer on. All pass, and injected faults fail on both adapters with the case named (i32 emitted as u32, i16 as u16, SDWA `nlt` emitted as ordered `ge`, controls relabelled `pass`). Whole `draw-predicate-rounding` with the float suite batched as well: 185 → 83 renderer launches. My timings were taken on a loaded machine, so I'll only quote the launch counts. I'd stack this after #556 and reuse its `run_pixel_batch()` as it lands, so the two don't conflict. Is that fine with the author of #556, or is a follow-up for these suites already planned? If so, I'll leave it. AI-assisted: prepared with an AI coding agent and reviewed by a human before posting.
RonLogic commented 2026-11-24 06:48:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T12:12:50Z.


Please go ahead with the three remaining predicate suites. #556 has merged, and I have no overlapping follow-up in progress. Reusing run_pixel_batch() and preserving the signed/unsigned and unordered mismatch controls sounds like a good fit. I can verify the resulting PR on RTX 4070 and WARP when it is up.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7078952886 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7078952886). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-22T12:12:50Z. --- Please go ahead with the three remaining predicate suites. #556 has merged, and I have no overlapping follow-up in progress. Reusing `run_pixel_batch()` and preserving the signed/unsigned and unordered mismatch controls sounds like a good fit. I can verify the resulting PR on RTX 4070 and WARP when it is up. AI-assisted.
rwZephyr commented 2026-11-24 06:48:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T18:53:33Z.


RDNA 4 timing for the current draw-core registrations in pixel_aot_hardware and pixel_aot_warp. This was run locally from unmodified upstream main at edc2e54e7e75fcd7c0f13e98b47ba119d9a08268. AI-assisted report.

Ryzen 7 7800X3D, Windows 11 25H2 x64 build 26200.9974, MSVC 19.44.35230, SDK 10.0.26100, DXC 1.8.2502.8, CMake/CTest 3.31.12, Python 3.12.10. The renderer selected the RX 9070 XT (1002:7550, 32.0.32029.2010) and WARP (1414:008c, 10.0.26100.9818). Both reported debug_layer=unavailable. Normal background services were running.

With the local toolchain loaded, the dev CRT DLLs staged beside the renderer, and $intakePython pointing to the local virtual environment:

cmake --preset dev "-DINTAKE_PYTHON=$intakePython"
cmake --build --preset dev --target offscreen_check
$env:XBOX2WINDOWS_ADAPTER = 'RX 9070 XT'
ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$' --repeat until-fail:3 -V
Backend CTest runs Separate profile, total Renderer, 127 launches DXC, 64 calls Remaining wall time
RX 9070 XT 20.28 / 19.56 / 19.60 s, all passed 19.03 s 15.79 s (83%), 121.7 ms median per launch 2.37 s 0.87 s
WARP 9.09 / 8.89 / 9.14 s, all passed 8.77 s 5.58 s (64%), 42.6 ms median per launch 2.33 s 0.87 s

For the profile I ran the same pixel_aot_check.py draw-core entry point once per backend after the CTest runs, with matching arguments, working directory, and environment. A local wrapper measured wall time around each subprocess.run call. All 127 renderer launches per backend were single invocations (120 --check-pixel-case, 5 --check-pixel, 2 --check-pixel-quad-lod). The renderer timing includes process startup, device setup, drawing, and readback together. There were no timeouts or skips.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7083947956 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7083947956). Originally posted by [rwZephyr](https://github.com/rwZephyr) on 2026-11-22T18:53:33Z. --- RDNA 4 timing for the current `draw-core` registrations in `pixel_aot_hardware` and `pixel_aot_warp`. This was run locally from unmodified upstream `main` at `edc2e54e7e75fcd7c0f13e98b47ba119d9a08268`. AI-assisted report. Ryzen 7 7800X3D, Windows 11 25H2 x64 build `26200.9974`, MSVC `19.44.35230`, SDK `10.0.26100`, DXC `1.8.2502.8`, CMake/CTest `3.31.12`, Python `3.12.10`. The renderer selected the RX 9070 XT (`1002:7550`, `32.0.32029.2010`) and WARP (`1414:008c`, `10.0.26100.9818`). Both reported `debug_layer=unavailable`. Normal background services were running. With the local toolchain loaded, the dev CRT DLLs staged beside the renderer, and `$intakePython` pointing to the local virtual environment: ```powershell cmake --preset dev "-DINTAKE_PYTHON=$intakePython" cmake --build --preset dev --target offscreen_check $env:XBOX2WINDOWS_ADAPTER = 'RX 9070 XT' ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$' --repeat until-fail:3 -V ``` | Backend | CTest runs | Separate profile, total | Renderer, 127 launches | DXC, 64 calls | Remaining wall time | | --- | --- | ---: | ---: | ---: | ---: | | RX 9070 XT | 20.28 / 19.56 / 19.60 s, all passed | 19.03 s | 15.79 s (83%), 121.7 ms median per launch | 2.37 s | 0.87 s | | WARP | 9.09 / 8.89 / 9.14 s, all passed | 8.77 s | 5.58 s (64%), 42.6 ms median per launch | 2.33 s | 0.87 s | For the profile I ran the same `pixel_aot_check.py draw-core` entry point once per backend after the CTest runs, with matching arguments, working directory, and environment. A local wrapper measured wall time around each `subprocess.run` call. All 127 renderer launches per backend were single invocations (120 `--check-pixel-case`, 5 `--check-pixel`, 2 `--check-pixel-quad-lod`). The renderer timing includes process startup, device setup, drawing, and readback together. There were no timeouts or skips.
R0Y00 commented 2026-11-24 06:48:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T21:39:47Z.


The batching follow-up #697 has merged. It cuts renderer launches from 494 to 263 per backend across eight modes while keeping per-case pass/mismatch checks. On RTX 4050 Laptop, the author measured draw-core at 24.11 s (dev) and 24.23 s (/O2). On WARP it was 9.74 s and 9.48 s. We still need a same-machine follow-up on an adapter that previously approached the 60 s cap and evidence for the debug-layer/device-removal cases in the original checklist. If you can retest, please run ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -V on current main and report the commit, adapter, driver, Windows build, debug-layer status and elapsed time. #685 covers a separate runner follow-up.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7086219873 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7086219873). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T21:39:47Z. --- The batching follow-up #697 has merged. It cuts renderer launches from 494 to 263 per backend across eight modes while keeping per-case pass/mismatch checks. On RTX 4050 Laptop, the author measured `draw-core` at 24.11 s (dev) and 24.23 s (/O2). On WARP it was 9.74 s and 9.48 s. We still need a same-machine follow-up on an adapter that previously approached the 60 s cap and evidence for the debug-layer/device-removal cases in the original checklist. If you can retest, please run `ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -V` on current `main` and report the commit, adapter, driver, Windows build, debug-layer status and elapsed time. #685 covers a separate runner follow-up.
rwZephyr commented 2026-11-24 06:48:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T23:20:40Z.


Same-machine retest after #697 on the RX 9070 XT, as requested. This is the adapter from my earlier edc2e54 report. AI-assisted; all runs local.

Environment: Windows 11 25H2 x64, build 26200.9974. Ryzen 7 7800X3D, MSVC 19.44.35230, SDK 10.0.26100, DXC 1.8.2502.8, CMake/CTest 3.31.12, Python 3.12.10, dev preset. XBOX2WINDOWS_ADAPTER='RX 9070 XT' selected AMD Radeon RX 9070 XT (1002:7550), driver 32.0.32029.2010. Debug layer: unavailable (debug_layer=unavailable; Graphics Tools is not installed on this machine). Normal background services were running.

Command, as given, run three times per commit from a clean tree:

$env:XBOX2WINDOWS_ADAPTER = 'RX 9070 XT'
ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -V
Commit What it is CTest "Total Test time (real)" Result
787ace7 current main 24.23 / 23.50 / 23.46 s 3/3 passed
4c3b573 #697 merge 23.42 / 23.47 / 23.62 s 3/3 passed
fa52b37 first parent of the #697 merge 44.45 / 44.55 / 42.63 s 3/3 passed

So on this adapter, #697 takes pixel_aot_hardware from about 44 s to about 23.5 s, roughly a 47% reduction. Before #697, the current test content was at about three-quarters of the 60 s cap. My earlier ~20 s figure at edc2e54 is not comparable: tests/pixel_aot_check.py has grown since then, by 465 lines between 4c3b573 and 787ace7 alone, so the pre-#697 cost at fa52b37 is the relevant baseline. The time at current main matches 4c3b573 within noise.

My first three runs on 787ace7, before the cache was warm, took 29.40 / 26.48 / 24.30 s. The warm reruns are the ones in the table. There were no failures, timeouts or skips in any of the 12 runs (edc2e54 excluded).

Not covered: the debug-layer and device-removal cases from the original checklist. The D3D12 debug layer is unavailable here, so this report has no evidence for them.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7087502634 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7087502634). Originally posted by [rwZephyr](https://github.com/rwZephyr) on 2026-11-22T23:20:40Z. --- Same-machine retest after #697 on the RX 9070 XT, as requested. This is the adapter from my earlier `edc2e54` report. AI-assisted; all runs local. **Environment:** Windows 11 25H2 x64, build 26200.9974. Ryzen 7 7800X3D, MSVC 19.44.35230, SDK 10.0.26100, DXC 1.8.2502.8, CMake/CTest 3.31.12, Python 3.12.10, `dev` preset. `XBOX2WINDOWS_ADAPTER='RX 9070 XT'` selected AMD Radeon RX 9070 XT (`1002:7550`), driver `32.0.32029.2010`. **Debug layer: unavailable** (`debug_layer=unavailable`; Graphics Tools is not installed on this machine). Normal background services were running. **Command**, as given, run three times per commit from a clean tree: ```powershell $env:XBOX2WINDOWS_ADAPTER = 'RX 9070 XT' ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -V ``` | Commit | What it is | CTest "Total Test time (real)" | Result | |---|---|---|---| | `787ace7` | current `main` | 24.23 / 23.50 / 23.46 s | 3/3 passed | | `4c3b573` | #697 merge | 23.42 / 23.47 / 23.62 s | 3/3 passed | | `fa52b37` | first parent of the #697 merge | 44.45 / 44.55 / 42.63 s | 3/3 passed | So on this adapter, #697 takes `pixel_aot_hardware` from about 44 s to about 23.5 s, roughly a 47% reduction. Before #697, the current test content was at about three-quarters of the 60 s cap. My earlier ~20 s figure at `edc2e54` is not comparable: `tests/pixel_aot_check.py` has grown since then, by 465 lines between `4c3b573` and `787ace7` alone, so the pre-#697 cost at `fa52b37` is the relevant baseline. The time at current `main` matches `4c3b573` within noise. My first three runs on `787ace7`, before the cache was warm, took 29.40 / 26.48 / 24.30 s. The warm reruns are the ones in the table. There were no failures, timeouts or skips in any of the 12 runs (`edc2e54` excluded). **Not covered:** the debug-layer and device-removal cases from the original checklist. The D3D12 debug layer is unavailable here, so this report has no evidence for them.
R0Y00 commented 2026-11-24 06:48:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T23:26:14Z.


Thanks for the same-machine comparison. The three warm RX 9070 XT runs before #697 were 42.63–44.55 s; at the merge they were 23.42–23.62 s, with all runs passing. #685 also merged the explicit pass/skip/fail runner. This issue stays open for the original checklist's case-local debug-layer messages and device-removal behavior. The timing evidence is complete for this adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7087572518 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7087572518). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T23:26:14Z. --- Thanks for the same-machine comparison. The three warm RX 9070 XT runs before #697 were 42.63–44.55 s; at the merge they were 23.42–23.62 s, with all runs passing. #685 also merged the explicit pass/skip/fail runner. This issue stays open for the original checklist's case-local debug-layer messages and device-removal behavior. The timing evidence is complete for this adapter.
rwZephyr commented 2026-11-24 06:48:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-23T00:09:15Z.


I added a local regression test for the pixel batch runner on fd2486f427c9d8a99b050bc77abc28c135d03a06 plus the test patch. The self-test injected a debug error and a device-removal status. Expected and observed case statuses were pass, error, pass, error, error, error. The runner attempted four draws and made no draw calls for the two cases after removal.

On Windows 10 22H2 build 19045.6466, the existing predicate-rounding pixel checks passed on both the RTX 3060 Ti (driver 621.24, DXGI 32.0.16.2124) and Microsoft WARP (10.0.19041.5794). The D3D12 debug layer was unavailable on both runs. CTest reported 3/3 passed, with zero skips. The self-test covers runner logic with injected errors. Live debug-layer and device-removal evidence is still outstanding.

ctest --preset dev --no-tests=error -V -R '^(offscreen_capability_table_self_test|pixel_aot_predicate_rounding_(hardware|warp))$'

AI-assisted. All tests ran locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7088105946 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7088105946). Originally posted by [rwZephyr](https://github.com/rwZephyr) on 2026-11-23T00:09:15Z. --- I added a local regression test for the pixel batch runner on `fd2486f427c9d8a99b050bc77abc28c135d03a06` plus the test patch. The self-test injected a debug error and a device-removal status. Expected and observed case statuses were `pass, error, pass, error, error, error`. The runner attempted four draws and made no draw calls for the two cases after removal. On Windows 10 22H2 build 19045.6466, the existing predicate-rounding pixel checks passed on both the RTX 3060 Ti (driver 621.24, DXGI 32.0.16.2124) and Microsoft WARP (10.0.19041.5794). The D3D12 debug layer was unavailable on both runs. CTest reported 3/3 passed, with zero skips. The self-test covers runner logic with injected errors. Live debug-layer and device-removal evidence is still outstanding. `ctest --preset dev --no-tests=error -V -R '^(offscreen_capability_table_self_test|pixel_aot_predicate_rounding_(hardware|warp))$'` AI-assisted. All tests ran locally.
FZNull commented 2026-11-24 06:48:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by FZNull on 2026-11-23T00:30:12Z.


Another data point for the timeout side of this issue, on the same class of machine but a different adapter/driver than the two above.

Environment: Windows 11 build 26300.9974, NVIDIA GeForce RTX 4060, driver 32.0.16.2124, debug layer unavailable, Windows SDK 10.0.26100.0, DXC 1.9.2609.5, Python 3.13.12. Machine otherwise idle, single ctest run (not parallel).

A local trial merge of #428 (which adds 4 DPP forms and their draw cases) onto 5a2c782:

pixel_aot_hardware pixel_aot_warp
ctest result Timeout (property TIMEOUT 60) PASS
Wall time, pixel_aot_check.py draw ... hardware run directly 61.2 s 12.65 s
Draw result exit 0, every case max_absolute_error=0 exit 0, max_absolute_error=0

On unmodified main at 5a2c782 the same test ran in 59.13 s here and passed, so this adapter sits right at the limit: 1.9 s of extra draw cases push it over. The work is not slow, the device creation is, exactly as measured above.

This is a case where the timeout now hides a passing result on supported hardware, so any of the proposed fixes (batch device, higher TIMEOUT, or splitting the test) would restore a useful signal. A per-case TIMEOUT that scales with the case count would also stop the limit from silently creeping back.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7088402284 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7088402284). Originally posted by [FZNull](https://github.com/FZNull) on 2026-11-23T00:30:12Z. --- Another data point for the timeout side of this issue, on the same class of machine but a different adapter/driver than the two above. **Environment:** Windows 11 build 26300.9974, NVIDIA GeForce RTX 4060, driver 32.0.16.2124, debug layer unavailable, Windows SDK 10.0.26100.0, DXC 1.9.2609.5, Python 3.13.12. Machine otherwise idle, single `ctest` run (not parallel). A local trial merge of #428 (which adds 4 DPP forms and their draw cases) onto `5a2c782`: | | `pixel_aot_hardware` | `pixel_aot_warp` | |---|---:|---:| | ctest result | **Timeout** (property `TIMEOUT 60`) | **PASS** | | Wall time, `pixel_aot_check.py draw ... hardware` run directly | **61.2 s** | 12.65 s | | Draw result | exit 0, every case `max_absolute_error=0` | exit 0, `max_absolute_error=0` | On unmodified main at `5a2c782` the same test ran in **59.13 s** here and passed, so this adapter sits right at the limit: 1.9 s of extra draw cases push it over. The work is not slow, the device creation is, exactly as measured above. This is a case where the timeout now hides a passing result on supported hardware, so any of the proposed fixes (batch device, higher `TIMEOUT`, or splitting the test) would restore a useful signal. A per-case `TIMEOUT` that scales with the case count would also stop the limit from silently creeping back. _AI-assisted._
JB2WIN commented 2026-11-24 06:48:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T01:42:18Z.


Timing data point at 37ed46d: on an RTX 3080 (driver 32.0.16.2124, Windows 11 26200.9974, debug layer enabled), pixel_aot_predicate_rounding_hardware passed in 56.4 s in one full run. In a second build from the same base it hit its 60 s timeout twice: once in a parallel run and once run on its own. Earlier on this machine it took about 41.8 s. That mode now runs at or past its timeout on this adapter. AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7089353768 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7089353768). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-23T01:42:18Z. --- Timing data point at `37ed46d`: on an RTX 3080 (driver 32.0.16.2124, Windows 11 26200.9974, debug layer enabled), `pixel_aot_predicate_rounding_hardware` passed in 56.4 s in one full run. In a second build from the same base it hit its 60 s timeout twice: once in a parallel run and once run on its own. Earlier on this machine it took about 41.8 s. That mode now runs at or past its timeout on this adapter. AI-assisted (Claude Code).
roansystemlabs commented 2026-11-24 06:48:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-23T02:22:53Z.


We'd like to take the pixel_aot_predicate_rounding_hardware timeout next: it is now at or past its 60 s limit in the RTX 3080/4060 reports above, and on our RTX 3070 under load. Its cases already go through run_pixel_batch per shader since #697, so the first step is to measure where the time actually goes (per-shader compiles, renderer start-up, draws) on RTX 3070 and WARP with the debug layer, then propose the smallest change that brings it back under the limit without touching any case's expected bytes or mismatch controls. I'll post the measurements and link the PR here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7089891902 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7089891902). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-23T02:22:53Z. --- We'd like to take the `pixel_aot_predicate_rounding_hardware` timeout next: it is now at or past its 60 s limit in the RTX 3080/4060 reports above, and on our RTX 3070 under load. Its cases already go through `run_pixel_batch` per shader since #697, so the first step is to measure where the time actually goes (per-shader compiles, renderer start-up, draws) on RTX 3070 and WARP with the debug layer, then propose the smallest change that brings it back under the limit without touching any case's expected bytes or mismatch controls. I'll post the measurements and link the PR here.
R0Y00 commented 2026-11-24 06:48:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T03:05:24Z.


The timing split sounds good. Please measure the current run_pixel_batch path as-is, record serial repetitions on the same build and adapter, and keep the existing per-shader mismatch cases. A split into separate CTests is fine if the timings show one mode is doing too much. Please keep capability skips distinct from timeouts in the results.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7090451542 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7090451542). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T03:05:24Z. --- The timing split sounds good. Please measure the current `run_pixel_batch` path as-is, record serial repetitions on the same build and adapter, and keep the existing per-shader mismatch cases. A split into separate CTests is fine if the timings show one mode is doing too much. Please keep capability skips distinct from timeouts in the results.
JB2WIN commented 2026-11-24 06:49:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T05:03:26Z.


Another data point, from the same RTX 3080 (driver 32.0.16.2124, Windows 11 26200.9974). On plain 333562f, compute_store_aot_hardware now hits its 45 s CTest timeout, both run alone and in a parallel run. Run directly it passes in about 57 s (mismatches=0, debug_errors=0). On 37ed46d it passed in 35.2 s. AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7092083005 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7092083005). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-23T05:03:26Z. --- Another data point, from the same RTX 3080 (driver 32.0.16.2124, Windows 11 26200.9974). On plain `333562f`, `compute_store_aot_hardware` now hits its 45 s CTest timeout, both run alone and in a parallel run. Run directly it passes in about 57 s (`mismatches=0`, `debug_errors=0`). On `37ed46d` it passed in 35.2 s. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:49:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T05:35:01Z.


Thanks for isolating compute_store_aot_hardware. I checked that this fixture has its own 45 s timeout. At 333562f the direct run completed in about 57 s with zero mismatches and debug errors, while CTest timed out both alone and in parallel. That is a separate timing signal from the pixel runner batching. If you still have both builds, could you record three warm direct runs at 37ed46d and 333562f, with DXC version and debug-layer status, and note whether the extra time is in DXC invocations or the renderer process? The readback checks should stay in place. The case-local debug-layer and device-removal items here are still open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7092532222 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7092532222). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T05:35:01Z. --- Thanks for isolating `compute_store_aot_hardware`. I checked that this fixture has its own 45 s timeout. At `333562f` the direct run completed in about 57 s with zero mismatches and debug errors, while CTest timed out both alone and in parallel. That is a separate timing signal from the pixel runner batching. If you still have both builds, could you record three warm direct runs at `37ed46d` and `333562f`, with DXC version and debug-layer status, and note whether the extra time is in DXC invocations or the renderer process? The readback checks should stay in place. The case-local debug-layer and device-removal items here are still open.
JB2WIN commented 2026-11-24 06:49:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T06:18:53Z.


About compute_store_aot_hardware (35.2 s at 37ed46d → about 57 s now, against its 45 s timeout, on the same RTX 3080). Since 37ed46d, six commits touched tests/compute_store_check.py or the compute store lowering: 405e992, 9e1032d, 532c951, d8840b5, 72c7ae5 and 2019751. Each one adds cases rather than slowing existing ones. That suggests the test is growing past its budget, not regressing. I have not timed each commit. Splitting the newer cases into their own CTest mode, as was done for draw-bfm and draw-e64-integer, would keep each entry under its limit. AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7093216168 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7093216168). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-23T06:18:53Z. --- About `compute_store_aot_hardware` (35.2 s at `37ed46d` → about 57 s now, against its 45 s timeout, on the same RTX 3080). Since `37ed46d`, six commits touched `tests/compute_store_check.py` or the compute store lowering: `405e992`, `9e1032d`, `532c951`, `d8840b5`, `72c7ae5` and `2019751`. Each one adds cases rather than slowing existing ones. That suggests the test is growing past its budget, not regressing. I have not timed each commit. Splitting the newer cases into their own CTest mode, as was done for `draw-bfm` and `draw-e64-integer`, would keep each entry under its limit. AI-assisted (Claude Code).
JB2WIN commented 2026-11-24 06:49:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T06:19:17Z.


I'll take the compute_store_aot_hardware split, so it doesn't collide with the predicate_rounding work above. The plan is one more CTest entry for the newer compute-store cases, leaving every case's bytes, controls and mismatch checks unchanged. I'll link the PR here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7093222484 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7093222484). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-23T06:19:17Z. --- I'll take the `compute_store_aot_hardware` split, so it doesn't collide with the `predicate_rounding` work above. The plan is one more CTest entry for the newer compute-store cases, leaving every case's bytes, controls and mismatch checks unchanged. I'll link the PR here.
JB2WIN commented 2026-11-24 06:49:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T06:29:50Z.


The compute_store_aot split is in #808. On the RTX 3080 it now takes 35.6 s plus 22.8 s, against 45 s each, with the same cases and controls. The full suite passed there 374/374.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7093390348 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7093390348). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-23T06:29:50Z. --- The `compute_store_aot` split is in #808. On the RTX 3080 it now takes 35.6 s plus 22.8 s, against 45 s each, with the same cases and controls. The full suite passed there 374/374.
R0Y00 commented 2026-11-24 06:49:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T06:56:11Z.


The compute-store split merged in #808 (a81b55a). On the reported RTX 3080, the two groups took 35.6 s and 22.8 s under separate 45 s limits, with the same readback cases and controls. Use ctest --preset dev --no-tests=error -R '^compute_store_aot(_guard_read)?_hardware$' -V for both groups. The case-local debug-layer messages and device-removal checks from this issue remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7093821155 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7093821155). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T06:56:11Z. --- The compute-store split merged in #808 (`a81b55a`). On the reported RTX 3080, the two groups took 35.6 s and 22.8 s under separate 45 s limits, with the same readback cases and controls. Use `ctest --preset dev --no-tests=error -R '^compute_store_aot(_guard_read)?_hardware$' -V` for both groups. The case-local debug-layer messages and device-removal checks from this issue remain open.
roansystemlabs commented 2026-11-24 06:49:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-23T09:31:31Z.


Measurements for pixel_aot_predicate_rounding_hardware, as promised above. AI-assisted; all runs local, serial, on one build.

Environment: main at 325fe1e, Windows 11 build 26200, MSVC 19.44, Windows SDK 10.0.26100 DXC, dev preset. RTX 3070 (10de:2484, driver 32.0.16.2101) and WARP (10.0.26100.9818), debug layer enabled on both. Idle machine: CPU 7-15 % and GPU 3-7 % before each run.

Where the time goes. I wrapped subprocess.run and the check_* helpers of the unmodified module and ran pixel_aot_check.py draw-predicate-rounding with the CTest arguments, on the current run_pixel_batch path as-is:

Phase RTX 3070, 3 runs WARP
Total 31.00 / 30.98 / 31.16 s 9.14 s
Renderer, 50 --check-pixel-batch launches (254 cases) 19.60 / 19.61 / 19.82 s 4.65 s
Renderer, 30 --check-pixel-case launches (mismatch controls on mutated shaders, single draws) 8.39 / 8.36 / 8.37 s 1.51 s
DXC, 84 compiles 2.68 / 2.68 / 2.64 s 2.64 s
Python 0.33 / 0.33 / 0.33 s 0.34 s

A linear fit over the 80 renderer launches gives 0.246-0.249 s per launch plus 0.028-0.029 s per case on the RTX 3070 (the median single-case launch is 0.27-0.28 s; on WARP it is 0.04 s). So about 20 s (≈64 %) is renderer start-up with the debug layer, about 8 s (≈27 %) is the per-case draw and readback (each case rebuilds its pipeline state and waits for the GPU), and DXC is under 10 %. On the same machine draw-blend-scalar (65 launches, 206 cases, 24.8 s) and draw-core (72 launches, 138 cases, 27.7 s) show the same per-launch and per-case cost (0.25 / 0.24 s + 0.03 / 0.04 s); draw-predicate-rounding is simply the largest mode, and it has grown back to 80 launches from the 74 recorded after #697.

CTest on 325fe1e: hardware 33.21 / 31.75 / 31.58 s, WARP 9.58 / 9.61 / 12.36 s (the last overlapped a short CPU spike from another process), all passed. Under load the night before, at 3cd9df3 with the same 80 launches, the same entry took 37-45 s on this machine; load moves the total but not the split.

Smallest change. Move the comparison and class draws (f16, i16, i32, u32, SDWA predicates and v_cmp_class) into their own mode, draw-comparisons, registered as pixel_aot_comparisons_{hardware,warp} with the same 60 s timeout, as was done for the e64 draws, and skip code 77 like the newer entries. No case, reference or mismatch control changes. Comparing every renderer and DXC call by content hash, on both adapters, the two modes together make the same 80 renderer calls (46 + 34) with identical shader and case bytes, exit codes and per-case statuses, and compile the same 84 sources.

Run predicate_rounding hw comparisons hw predicate_rounding WARP comparisons WARP
1 16.81 s 15.36 s 3.94 s 5.93 s
2 16.70 s 15.28 s 4.12 s 5.97 s
3 16.89 s 15.17 s 3.91 s 5.95 s

Each hardware entry goes from 31.6-33.2 s to 15.2-16.9 s here, from 53-55 % to 25-28 % of the limit. All runs passed; no skips and no timeouts, so nothing here mixes the two. A per-process pipeline cache or a multi-shader batch could remove much of the start-up cost for every mode, but it changes the renderer and its batch format, so I'd keep it as a separate follow-up. PR: #831.

Not covered: adapters other than the RTX 3070 and WARP; no live debug-layer message or device-removal evidence.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7096761146 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7096761146). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-23T09:31:31Z. --- Measurements for `pixel_aot_predicate_rounding_hardware`, as promised above. AI-assisted; all runs local, serial, on one build. **Environment:** `main` at `325fe1e`, Windows 11 build 26200, MSVC 19.44, Windows SDK 10.0.26100 DXC, `dev` preset. RTX 3070 (`10de:2484`, driver 32.0.16.2101) and WARP (10.0.26100.9818), **debug layer enabled** on both. Idle machine: CPU 7-15 % and GPU 3-7 % before each run. **Where the time goes.** I wrapped `subprocess.run` and the `check_*` helpers of the unmodified module and ran `pixel_aot_check.py draw-predicate-rounding` with the CTest arguments, on the current `run_pixel_batch` path as-is: | Phase | RTX 3070, 3 runs | WARP | |---|---:|---:| | Total | 31.00 / 30.98 / 31.16 s | 9.14 s | | Renderer, 50 `--check-pixel-batch` launches (254 cases) | 19.60 / 19.61 / 19.82 s | 4.65 s | | Renderer, 30 `--check-pixel-case` launches (mismatch controls on mutated shaders, single draws) | 8.39 / 8.36 / 8.37 s | 1.51 s | | DXC, 84 compiles | 2.68 / 2.68 / 2.64 s | 2.64 s | | Python | 0.33 / 0.33 / 0.33 s | 0.34 s | A linear fit over the 80 renderer launches gives **0.246-0.249 s per launch plus 0.028-0.029 s per case** on the RTX 3070 (the median single-case launch is 0.27-0.28 s; on WARP it is 0.04 s). So about 20 s (≈64 %) is renderer start-up with the debug layer, about 8 s (≈27 %) is the per-case draw and readback (each case rebuilds its pipeline state and waits for the GPU), and DXC is under 10 %. On the same machine `draw-blend-scalar` (65 launches, 206 cases, 24.8 s) and `draw-core` (72 launches, 138 cases, 27.7 s) show the same per-launch and per-case cost (0.25 / 0.24 s + 0.03 / 0.04 s); `draw-predicate-rounding` is simply the largest mode, and it has grown back to 80 launches from the 74 recorded after #697. CTest on `325fe1e`: hardware 33.21 / 31.75 / 31.58 s, WARP 9.58 / 9.61 / 12.36 s (the last overlapped a short CPU spike from another process), all passed. Under load the night before, at `3cd9df3` with the same 80 launches, the same entry took 37-45 s on this machine; load moves the total but not the split. **Smallest change.** Move the comparison and class draws (f16, i16, i32, u32, SDWA predicates and `v_cmp_class`) into their own mode, `draw-comparisons`, registered as `pixel_aot_comparisons_{hardware,warp}` with the same 60 s timeout, as was done for the e64 draws, and skip code 77 like the newer entries. No case, reference or mismatch control changes. Comparing every renderer and DXC call by content hash, on both adapters, the two modes together make the same 80 renderer calls (46 + 34) with identical shader and case bytes, exit codes and per-case statuses, and compile the same 84 sources. | Run | predicate_rounding hw | comparisons hw | predicate_rounding WARP | comparisons WARP | |---|---:|---:|---:|---:| | 1 | 16.81 s | 15.36 s | 3.94 s | 5.93 s | | 2 | 16.70 s | 15.28 s | 4.12 s | 5.97 s | | 3 | 16.89 s | 15.17 s | 3.91 s | 5.95 s | Each hardware entry goes from 31.6-33.2 s to 15.2-16.9 s here, from 53-55 % to 25-28 % of the limit. All runs passed; no skips and no timeouts, so nothing here mixes the two. A per-process pipeline cache or a multi-shader batch could remove much of the start-up cost for every mode, but it changes the renderer and its batch format, so I'd keep it as a separate follow-up. PR: #831. **Not covered:** adapters other than the RTX 3070 and WARP; no live debug-layer message or device-removal evidence.
R0Y00 commented 2026-11-24 06:49:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T09:43:08Z.


#831 landed as 06ee195. The comparison draws now have their own 60-second CTest entry. The RTX 3070 report split the former 31–33 s entry into roughly 17 s plus 15 s while preserving shader bytes, readbacks, negative controls and the union of the coverage records. An RTX 3080 retest near the old timeout would be useful. Run ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -V and record both elapsed times, the driver and debug-layer status. The broader renderer start-up and device-removal work remains open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7097009834 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7097009834). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T09:43:08Z. --- #831 landed as `06ee195`. The comparison draws now have their own 60-second CTest entry. The RTX 3070 report split the former 31–33 s entry into roughly 17 s plus 15 s while preserving shader bytes, readbacks, negative controls and the union of the coverage records. An RTX 3080 retest near the old timeout would be useful. Run `ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -V` and record both elapsed times, the driver and debug-layer status. The broader renderer start-up and device-removal work remains open.
romn4rch commented 2026-11-24 06:49:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-23T16:26:44Z.


Timings on an RTX 3050 6GB Laptop GPU and an Intel UHD Graphics at c639a01, on AC power

This is not the RTX 3080 retest asked for above. It is the same command on two other adapters, because on this laptop pixel_aot_hardware now runs close to its limit.

Source c639a01, one build, Windows 11 build 26300.10075, Balanced power plan. The power line read online at 99 % charge at the start, before the timing runs and at the end. Debug layer unavailable on both adapters (debug_layer=unavailable). All runs were serial, with XBOX2WINDOWS_ADAPTER set to NVIDIA or Intel.

1. ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -V

Adapter, driver pixel_aot_predicate_rounding_hardware pixel_aot_comparisons_hardware
NVIDIA GeForce RTX 3050 6GB Laptop GPU (10DE:25EC), 32.0.16.2114, 3 runs 34.54 / 31.66 / 31.41 s 33.74 / 32.05 / 31.55 s
Intel(R) UHD Graphics (8086:468B), 32.0.101.7092, 1 run 24.14 s 21.60 s

All passed. On the NVIDIA laptop GPU the two entries take 1.9–2.2 times the RTX 3070 figures above, 52–58 % of the 60 s limit.

2. ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|blend_scalar_hardware)$' -j 1 -V, then pixel_aot_check.py run directly with the CTest arguments, without the CTest timeout:

Adapter pixel_aot_hardware (draw-core) pixel_aot_blend_scalar_hardware
NVIDIA, CTest, 3 runs 57.98 / 58.52 / 57.97 s 49.36 / 47.09 / 46.71 s
NVIDIA, direct 57.52 s 46.29 s
Intel, CTest 47.32 s 33.94 s

All passed. Earlier in the same session, ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -j 1 -V took 56.09 s on NVIDIA and 50.06 / 47.25 / 45.90 s on Intel, all passed.

So pixel_aot_hardware used 93.5–97.5 % of its 60 s limit in all four NVIDIA CTest runs, on AC power. On the same laptop and NVIDIA driver, the entry took 45.49 and 46.45 s at 787ace7, also on AC. In a full-suite run at 34d03c7, on battery, it timed out on NVIDIA.

Not covered: where the time goes on this machine (start-up per launch versus work per case), and the RTX 3080. If a split of draw-core like #831 would help, I can prepare one and time it on these adapters.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107144529 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7107144529). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-23T16:26:44Z. --- **Timings on an RTX 3050 6GB Laptop GPU and an Intel UHD Graphics at `c639a01`, on AC power** This is not the RTX 3080 retest asked for above. It is the same command on two other adapters, because on this laptop `pixel_aot_hardware` now runs close to its limit. Source `c639a01`, one build, Windows 11 build 26300.10075, Balanced power plan. The power line read online at 99 % charge at the start, before the timing runs and at the end. Debug layer unavailable on both adapters (`debug_layer=unavailable`). All runs were serial, with `XBOX2WINDOWS_ADAPTER` set to `NVIDIA` or `Intel`. **1.** `ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -V` | Adapter, driver | `pixel_aot_predicate_rounding_hardware` | `pixel_aot_comparisons_hardware` | |---|---:|---:| | NVIDIA GeForce RTX 3050 6GB Laptop GPU (`10DE:25EC`), 32.0.16.2114, 3 runs | 34.54 / 31.66 / 31.41 s | 33.74 / 32.05 / 31.55 s | | Intel(R) UHD Graphics (`8086:468B`), 32.0.101.7092, 1 run | 24.14 s | 21.60 s | All passed. On the NVIDIA laptop GPU the two entries take 1.9–2.2 times the RTX 3070 figures above, 52–58 % of the 60 s limit. **2.** `ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|blend_scalar_hardware)$' -j 1 -V`, then `pixel_aot_check.py` run directly with the CTest arguments, without the CTest timeout: | Adapter | `pixel_aot_hardware` (`draw-core`) | `pixel_aot_blend_scalar_hardware` | |---|---:|---:| | NVIDIA, CTest, 3 runs | 57.98 / 58.52 / 57.97 s | 49.36 / 47.09 / 46.71 s | | NVIDIA, direct | 57.52 s | 46.29 s | | Intel, CTest | 47.32 s | 33.94 s | All passed. Earlier in the same session, `ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -j 1 -V` took 56.09 s on NVIDIA and 50.06 / 47.25 / 45.90 s on Intel, all passed. So `pixel_aot_hardware` used 93.5–97.5 % of its 60 s limit in all four NVIDIA CTest runs, on AC power. On the same laptop and NVIDIA driver, the entry took 45.49 and 46.45 s at `787ace7`, also on AC. In a full-suite run at `34d03c7`, on battery, it timed out on NVIDIA. Not covered: where the time goes on this machine (start-up per launch versus work per case), and the RTX 3080. If a split of `draw-core` like #831 would help, I can prepare one and time it on these adapters. _AI-assisted._
R0Y00 commented 2026-11-24 06:49:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:59:36Z.


Yes, a focused draw-core split is worth trying. The four AC runs at 56.09–58.52 s leave at most 3.91 s under the existing limit. Please keep the current cases, negative controls and union of coverage records, and retain the existing timeout for each entry. Run the old and split selections serially on the same commit and adapter if practical, with at least three NVIDIA runs and an Intel comparison. Record each new entry's time and combined wall time so we can distinguish headroom from a speedup. The device-reuse work can stay separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107986763 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7107986763). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:59:36Z. --- Yes, a focused draw-core split is worth trying. The four AC runs at 56.09–58.52 s leave at most 3.91 s under the existing limit. Please keep the current cases, negative controls and union of coverage records, and retain the existing timeout for each entry. Run the old and split selections serially on the same commit and adapter if practical, with at least three NVIDIA runs and an Intel comparison. Record each new entry's time and combined wall time so we can distinguish headroom from a speedup. The device-reuse work can stay separate.
grahamster2 commented 2026-11-24 06:49:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-23T21:17:02Z.


RTX 3080 retest of the two entries after the #831 split. All runs are on current main, serial and local.

Environment: main at 7c04aa0, dev preset (Debug, Ninja), MSVC 19.50.35725, CMake 4.1.2, DXC 1.8.2502.11 from Windows SDK 10.0.26100.0, Python 3.12.10. Windows 11 25H2, build 26200.9974, Ryzen 5 7600X. NVIDIA GeForce RTX 3080 (10de:2206), driver 32.0.16.1088 (610.88), selected with XBOX2WINDOWS_ADAPTER=3080. Debug layer: unavailable (debug_layer=unavailable in every run; Graphics Tools is not installed). CPU load was 7–9% before each run. This is the RTX 3080 from my earlier ba7d6b7 comment, not the RTX 3080 with driver 32.0.16.2124 and the debug layer from the 37ed46d report.

ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -V

Run pixel_aot_predicate_rounding_hardware pixel_aot_comparisons_hardware Total (real)
1 14.51 s 14.19 s 28.72 s
2 13.11 s 13.20 s 26.33 s
3 13.01 s 13.21 s 26.23 s

All 6 entries passed, with no skips and no timeouts. Run 1 was the first after the build and about 1.3 s slower per entry.

For comparison, on the AMD Radeon(TM) Graphics iGPU of the same machine (1002:164e, driver 32.0.13066.12, XBOX2WINDOWS_ADAPTER=Radeon, debug layer unavailable), two runs gave 10.55 / 10.16 s for predicate_rounding and 10.06 / 9.51 s for comparisons, all passing.

Headroom: on the RTX 3080 each entry used at most 14.5 s of its 60 s timeout (24%), leaving about 45 s. The warm runs were at about 13.1–13.2 s (22%). This says nothing about the debug-layer cost on this adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114251910 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7114251910). Originally posted by [grahamster2](https://github.com/grahamster2) on 2026-11-23T21:17:02Z. --- RTX 3080 retest of the two entries after the #831 split. All runs are on current `main`, serial and local. **Environment:** `main` at `7c04aa0`, `dev` preset (Debug, Ninja), MSVC 19.50.35725, CMake 4.1.2, DXC 1.8.2502.11 from Windows SDK 10.0.26100.0, Python 3.12.10. Windows 11 25H2, build 26200.9974, Ryzen 5 7600X. NVIDIA GeForce RTX 3080 (`10de:2206`), driver 32.0.16.1088 (610.88), selected with `XBOX2WINDOWS_ADAPTER=3080`. **Debug layer: unavailable** (`debug_layer=unavailable` in every run; Graphics Tools is not installed). CPU load was 7–9% before each run. This is the RTX 3080 from my earlier `ba7d6b7` comment, not the RTX 3080 with driver 32.0.16.2124 and the debug layer from the `37ed46d` report. `ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -V` | Run | `pixel_aot_predicate_rounding_hardware` | `pixel_aot_comparisons_hardware` | Total (real) | |---|---:|---:|---:| | 1 | 14.51 s | 14.19 s | 28.72 s | | 2 | 13.11 s | 13.20 s | 26.33 s | | 3 | 13.01 s | 13.21 s | 26.23 s | All 6 entries passed, with no skips and no timeouts. Run 1 was the first after the build and about 1.3 s slower per entry. For comparison, on the AMD Radeon(TM) Graphics iGPU of the same machine (`1002:164e`, driver 32.0.13066.12, `XBOX2WINDOWS_ADAPTER=Radeon`, debug layer unavailable), two runs gave 10.55 / 10.16 s for predicate_rounding and 10.06 / 9.51 s for comparisons, all passing. **Headroom:** on the RTX 3080 each entry used at most 14.5 s of its 60 s timeout (24%), leaving about 45 s. The warm runs were at about 13.1–13.2 s (22%). This says nothing about the debug-layer cost on this adapter.
R0Y00 commented 2026-11-24 06:49:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:32:15Z.


The #831 split has the headroom we asked for on this RTX 3080 run: the longest entry was 14.51 s against its 60 s timeout, with all six entries passing. The two Radeon iGPU runs also passed. That establishes per-entry headroom on these adapters. A same-driver before/after comparison would be needed for a wall-time speedup claim. Let's keep this issue open for the device-reuse investigation and use the split entries as the baseline. An Intel run is still useful if someone already has that adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114591449 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7114591449). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:32:15Z. --- The #831 split has the headroom we asked for on this RTX 3080 run: the longest entry was 14.51 s against its 60 s timeout, with all six entries passing. The two Radeon iGPU runs also passed. That establishes per-entry headroom on these adapters. A same-driver before/after comparison would be needed for a wall-time speedup claim. Let's keep this issue open for the device-reuse investigation and use the split entries as the baseline. An Intel run is still useful if someone already has that adapter.
RavenCurseBurg commented 2026-11-25 07:01:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T06:38:08Z.


I'll take the remaining case-local diagnostic and device-removal regression checks. #508 reports both injections in a temporary control build. I’ll turn those into reproducible tests of the same pixel-batch loop using three matching source-built draws. A real D3D12 info-queue error in the middle case should give pass/error/pass; removing the test process's logical device should give pass/error/error. Both batches must exit 1. I'll verify the debug-layer control on WARP and keep capability skips distinct from failures.

AI-assisted (Codex, GPT-6.2 Astra xhigh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154997463 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7154997463). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T06:38:08Z. --- I'll take the remaining case-local diagnostic and device-removal regression checks. #508 reports both injections in a temporary control build. I’ll turn those into reproducible tests of the same pixel-batch loop using three matching source-built draws. A real D3D12 info-queue error in the middle case should give pass/error/pass; removing the test process's logical device should give pass/error/error. Both batches must exit 1. I'll verify the debug-layer control on WARP and keep capability skips distinct from failures. AI-assisted (Codex, GPT-6.2 Astra xhigh).
RavenCurseBurg commented 2026-11-25 14:05:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T13:43:27Z.


I will measure the existing startup_mrt_check.py fixture on Windows before proposing changes to its shared cache. I will separate time spent in startup_stream_consumer, gfx2hlsl --pending, and FXC/DXC, record the process counts, and check the existing pixel/signedness controls. This follows the MRT profiling question in #2355.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7164195510 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7164195510). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T13:43:27Z. --- I will measure the existing startup_mrt_check.py fixture on Windows before proposing changes to its shared cache. I will separate time spent in startup_stream_consumer, gfx2hlsl --pending, and FXC/DXC, record the process counts, and check the existing pixel/signedness controls. This follows the MRT profiling question in #2355.
RavenCurseBurg commented 2026-11-25 14:05:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T13:55:52Z.


I measured the unmodified MRT fixture at upstream 01a2197b. Each row below is two complete runs with all pixel, signedness, narrow-format, folding and manifest publication assertions active. Times are in seconds. The pending column includes the translator's own child work.

Backend Compiler Total Nine pending scans Renderer processes
RTX 4060 FXC 36.58 / 32.64 14.87 / 13.81 19.85 / 17.09
RTX 4060 DXC 33.39 / 33.34 14.01 / 13.36 17.03 / 17.94
Local WARP FXC 24.29 / 31.04 13.77 / 16.62 8.91 / 10.60
Local WARP DXC 24.50 / 27.08 13.79 / 14.83 8.79 / 9.46
Windows Server 2025 WARP FXC 22.07 / 22.55 12.57 / 13.11 8.70 / 8.60
Windows Server 2025 WARP DXC 22.40 / 22.28 11.99 / 12.67 8.67 / 8.67

Each FXC run made 22 renderer and 22 direct compiler calls. DXC made 21 of each. Direct compiler time was 0.32–2.07 seconds across these measurements. Local Windows build 26100.9711, RTX driver 32.0.15.9579, WARP 10.0.26100.9711, local debug layer unavailable. The Server WARP fixture reported the debug layer enabled.

The pending logs explain a repeatable part of the cost. The first integer format case creates eight synthetic narrow RTV request markers and directly verifies all eight refusals. Each of the eight subsequent --pending scans sees the same markers again: 64 repeated refusals per fixture. I am testing removal of each fixture-created marker immediately after its refusal and missing-manifest assertions. This keeps the valid-format requests, their publication order, the shared cache and the renderer calls intact. Timing wrapper · Hosted baseline

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7164498195 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7164498195). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T13:55:52Z. --- I measured the unmodified MRT fixture at upstream 01a2197b. Each row below is two complete runs with all pixel, signedness, narrow-format, folding and manifest publication assertions active. Times are in seconds. The pending column includes the translator's own child work. | Backend | Compiler | Total | Nine pending scans | Renderer processes | | --- | --- | --- | --- | --- | | RTX 4060 | FXC | 36.58 / 32.64 | 14.87 / 13.81 | 19.85 / 17.09 | | RTX 4060 | DXC | 33.39 / 33.34 | 14.01 / 13.36 | 17.03 / 17.94 | | Local WARP | FXC | 24.29 / 31.04 | 13.77 / 16.62 | 8.91 / 10.60 | | Local WARP | DXC | 24.50 / 27.08 | 13.79 / 14.83 | 8.79 / 9.46 | | Windows Server 2025 WARP | FXC | 22.07 / 22.55 | 12.57 / 13.11 | 8.70 / 8.60 | | Windows Server 2025 WARP | DXC | 22.40 / 22.28 | 11.99 / 12.67 | 8.67 / 8.67 | Each FXC run made 22 renderer and 22 direct compiler calls. DXC made 21 of each. Direct compiler time was 0.32–2.07 seconds across these measurements. Local Windows build 26100.9711, RTX driver 32.0.15.9579, WARP 10.0.26100.9711, local debug layer unavailable. The Server WARP fixture reported the debug layer enabled. The pending logs explain a repeatable part of the cost. The first integer format case creates eight synthetic narrow RTV request markers and directly verifies all eight refusals. Each of the eight subsequent --pending scans sees the same markers again: 64 repeated refusals per fixture. I am testing removal of each fixture-created marker immediately after its refusal and missing-manifest assertions. This keeps the valid-format requests, their publication order, the shared cache and the renderer calls intact. [Timing wrapper](https://github.com/RavenCurseBurg/Xbox2Windows/blob/d7fd8e0bf86335891e19e1a74fd60a241f38771d/tests/measure_startup_mrt.py) · [Hosted baseline](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45626776479)
R0Y00 commented 2026-11-25 15:01:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T14:29:26Z.


The targeted MRT fix landed in #2370. In the author's same-runner Server 2025 WARP A/B, the repeated refusal count fell from 64 to zero, and the two compilers' fixture runs were 16.86–18.62 s after the change versus 24.09–29.18 s before. I checked all four FXC/DXC × WARP/RTX paths locally, including the narrow-format refusal and readback controls. This is a fixture result; the author's physical GPU timings overlapped.

The separate compiler-queue change #2368 also landed. The broader device-creation and batch diagnostic work in this issue stays open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7165358313 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7165358313). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T14:29:26Z. --- The targeted MRT fix landed in #2370. In the author's same-runner Server 2025 WARP A/B, the repeated refusal count fell from 64 to zero, and the two compilers' fixture runs were 16.86–18.62 s after the change versus 24.09–29.18 s before. I checked all four FXC/DXC × WARP/RTX paths locally, including the narrow-format refusal and readback controls. This is a fixture result; the author's physical GPU timings overlapped. The separate compiler-queue change #2368 also landed. The broader device-creation and batch diagnostic work in this issue stays open.
RavenCurseBurg commented 2026-11-25 20:04:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T19:43:37Z.


I can run the outstanding Intel comparison for #831 and #1049 on an Intel UHD Graphics 770, driver 32.0.101.5973, alongside an RTX 4060 on the same Windows 11 machine. I'll use the four registered hardware CTests at 82bb67ef, report serial warm timings and the 60 s timeout margin for each entry, and keep any skips or failing readbacks visible. I can also compare the per-entry form records between the two adapters. The debug layer is unavailable on this machine.

I am also taking the first part of the multi-shader device-reuse proposal. I'll try an opt-in offscreen_check <backend> --check-pixel-pairs <shader> <case> [<shader> <case> ...] using the existing per-case error and device-removal checks. I'll compare each pair with its single-process invocation, including an intentional wrong shader between two passing draws. That gives us a measurable baseline for converting individual Python fixtures.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7172685814 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7172685814). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T19:43:37Z. --- I can run the outstanding Intel comparison for #831 and #1049 on an Intel UHD Graphics 770, driver 32.0.101.5973, alongside an RTX 4060 on the same Windows 11 machine. I'll use the four registered hardware CTests at `82bb67ef`, report serial warm timings and the 60 s timeout margin for each entry, and keep any skips or failing readbacks visible. I can also compare the per-entry form records between the two adapters. The debug layer is unavailable on this machine. I am also taking the first part of the multi-shader device-reuse proposal. I'll try an opt-in `offscreen_check <backend> --check-pixel-pairs <shader> <case> [<shader> <case> ...]` using the existing per-case error and device-removal checks. I'll compare each pair with its single-process invocation, including an intentional wrong shader between two passing draws. That gives us a measurable baseline for converting individual Python fixtures.
R0Y00 commented 2026-11-25 21:01:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T20:15:59Z.


#2525 landed at 42d690a7. The mixed-shader batch now has a separate opt-in renderer entry, with case-local mismatch/error reporting and the existing device-removal control. I verified the four focused Windows Release WARP checks. The remaining throughput question is the full fixture path: compare serial and shared-device runs over the same ordered references, preserve per-case status and form records, and report per-test margin against 60 seconds. Keep the ongoing Intel and RTX comparison in this thread.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173416686 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7173416686). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T20:15:59Z. --- #2525 landed at `42d690a7`. The mixed-shader batch now has a separate opt-in renderer entry, with case-local mismatch/error reporting and the existing device-removal control. I verified the four focused Windows Release WARP checks. The remaining throughput question is the full fixture path: compare serial and shared-device runs over the same ordered references, preserve per-case status and form records, and report per-test margin against 60 seconds. Keep the ongoing Intel and RTX comparison in this thread.
RavenCurseBurg commented 2026-11-25 21:01:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T20:17:38Z.


Split GPU timings on Intel UHD 770 and RTX 4060

I ran the four registered hardware CTests serially at 82bb67ef70221f5c2d9a714f1ce379903258793a. The table gives each entry's elapsed time and CTest's total real time, in seconds. Each entry kept its 60 s timeout. The first run on each adapter is shown separately from the three warm runs.

Adapter Run Core Core vector Predicate rounding Comparisons Total
Intel warm-up 59.32 24.39 35.05 31.54 150.39
Intel warm 1 60.01 timeout 26.53 28.75 30.95 146.32
Intel warm 2 60.02 timeout 38.62 43.89 52.60 195.23
Intel warm 3 60.02 timeout 31.11 34.10 32.92 158.24
NVIDIA warm-up 60.02 timeout 33.04 39.17 37.77 170.07
NVIDIA warm 1 57.96 27.49 31.96 31.56 149.06
NVIDIA warm 2 60.02 timeout 38.27 57.82 52.55 208.76
NVIDIA warm 3 60.01 timeout 41.83 33.52 39.12 174.57
Across the 32 entries there were 26 passes, 6 timeouts, 0 capability skips and 0 other failures. All six timeouts were in core. The smallest margin for another entry was 2.18 s (RTX predicate rounding, 57.82 s). Every passing run of a given entry produced the same form record on both adapters. The four distinct records contained 1,010, 91, 88 and 160 forms respectively.

I ran the original core selection directly on RTX after the warm-up timeout. It completed in 66.01 s with exit 0 and the identical 1,010-form record. Timing its subprocess calls attributed 21.36 s to 35 renderer launches and 2.87 s to 33 DXC invocations. The remaining wall time includes the Python fixture, host controls and other process overhead. This direct timing used instrumentation and excluded the CTest timeout.

Windows 11 26100.9711, Intel UHD Graphics 770 (32.0.101.5973) and RTX 4060 (32.0.15.9579), debug layer unavailable. DXC 1.9.2609.5 and CTest 4.1.2. I alternated adapter order and ran only one GPU workload at a time. The Debug executable and CMake-generated registrations came from the pinned dev build (static Debug CRT). I checked the artifact hashes and relocated the source, Python, DXC and renderer paths. Build and registrations

$env:XBOX2WINDOWS_ADAPTER = 'Intel'  # then 'NVIDIA' on this machine
ctest --preset dev -j 1 --no-tests=error -V -R '^pixel_aot_(hardware|core_vector_hardware|predicate_rounding_hardware|comparisons_hardware)$'

The multi-shader operation merged in #2525. The follow-up in #2541 runs the 32-bit integer predicate groups on one device. On Server 2025 WARP, both versions produced identical HLSL inputs, DXIL, reference bytes, per-case outcomes and all 49 subgroup forms. The full comparisons CTest also passed with 160 forms.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173455245 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7173455245). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T20:17:38Z. --- ## Split GPU timings on Intel UHD 770 and RTX 4060 I ran the four registered hardware CTests serially at `82bb67ef70221f5c2d9a714f1ce379903258793a`. The table gives each entry's elapsed time and CTest's total real time, in seconds. Each entry kept its 60 s timeout. The first run on each adapter is shown separately from the three warm runs. | Adapter | Run | Core | Core vector | Predicate rounding | Comparisons | Total | | --- | --- | ---: | ---: | ---: | ---: | ---: | | Intel | warm-up | 59.32 | 24.39 | 35.05 | 31.54 | 150.39 | | Intel | warm 1 | 60.01 timeout | 26.53 | 28.75 | 30.95 | 146.32 | | Intel | warm 2 | 60.02 timeout | 38.62 | 43.89 | 52.60 | 195.23 | | Intel | warm 3 | 60.02 timeout | 31.11 | 34.10 | 32.92 | 158.24 | | NVIDIA | warm-up | 60.02 timeout | 33.04 | 39.17 | 37.77 | 170.07 | | NVIDIA | warm 1 | 57.96 | 27.49 | 31.96 | 31.56 | 149.06 | | NVIDIA | warm 2 | 60.02 timeout | 38.27 | 57.82 | 52.55 | 208.76 | | NVIDIA | warm 3 | 60.01 timeout | 41.83 | 33.52 | 39.12 | 174.57 | Across the 32 entries there were 26 passes, 6 timeouts, 0 capability skips and 0 other failures. All six timeouts were in core. The smallest margin for another entry was 2.18 s (RTX predicate rounding, 57.82 s). Every passing run of a given entry produced the same form record on both adapters. The four distinct records contained 1,010, 91, 88 and 160 forms respectively. I ran the original core selection directly on RTX after the warm-up timeout. It completed in 66.01 s with exit 0 and the identical 1,010-form record. Timing its subprocess calls attributed 21.36 s to 35 renderer launches and 2.87 s to 33 DXC invocations. The remaining wall time includes the Python fixture, host controls and other process overhead. This direct timing used instrumentation and excluded the CTest timeout. Windows 11 26100.9711, Intel UHD Graphics 770 (32.0.101.5973) and RTX 4060 (32.0.15.9579), debug layer unavailable. DXC 1.9.2609.5 and CTest 4.1.2. I alternated adapter order and ran only one GPU workload at a time. The Debug executable and CMake-generated registrations came from the pinned dev build (static Debug CRT). I checked the artifact hashes and relocated the source, Python, DXC and renderer paths. [Build and registrations](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45688139197) ```powershell $env:XBOX2WINDOWS_ADAPTER = 'Intel' # then 'NVIDIA' on this machine ctest --preset dev -j 1 --no-tests=error -V -R '^pixel_aot_(hardware|core_vector_hardware|predicate_rounding_hardware|comparisons_hardware)$' ``` The multi-shader operation merged in [#2525](https://github.com/R0Y00/Xbox2Windows/pull/2525). The follow-up in [#2541](https://github.com/R0Y00/Xbox2Windows/pull/2541) runs the 32-bit integer predicate groups on one device. On [Server 2025 WARP](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45693327568), both versions produced identical HLSL inputs, DXIL, reference bytes, per-case outcomes and all 49 subgroup forms. The full comparisons CTest also passed with 160 forms.
RavenCurseBurg commented 2026-11-25 21:01:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:01:27Z.


I found a local way to recover headroom for the existing 60-second core test on the two adapters from the 32-run matrix. The Windows CTest starts Python with -B, which permits reading an existing bytecode cache. I primed the test module and its imports in a build-local cache, then ran the registered test with the same environment. Python 3.14.3 saw all 24 logical processors throughout the GPU runs.

# From the repository root after configuring the dev preset.
$env:PYTHONPYCACHEPREFIX = Join-Path $PWD 'out/pycache'
& .\out\pe-env\Scripts\python.exe -c "import sys; sys.path.insert(0, 'tests'); import pixel_aot_check"
ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -V

At 82bb67ef with the same registered command, renderer, DXC, and 60-second timeout, the initial import took 5.75 s once. Warm-cache times in seconds:

Adapter Previous four runs, default local environment Three runs with the primed cache
Intel UHD 770, 32.0.101.5973 59.32, three timeouts 27.64, 27.75, 25.68
RTX 4060, 32.0.15.9579 Three timeouts, 57.96 26.02, 25.65, 27.77

All six runs retained the exact 1,010-line coverage record from both earlier successful runs, SHA-256 0d14bba50cf16622c11e42d42be8d681573460bb55728e4ecb80c3aeee8cf469. The two series ran at different times on the same Windows 11 machine, build 26100.9711, debug layer unavailable. Each test ran serially.

I also isolated the Python side on newer main e9ae884f using the normal device-free entry python -B tests/pyc_main.py pixel_aot_check. With an intentionally empty cache, the three runs took 39.57–40.69 s for 24 logical processors and 17.33–18.12 s for four. With a preloaded cache the corresponding results were 4.94–5.03 s and 4.74–5.12 s. All 12 coverage files matched byte for byte. The cache accounts for the large difference on this host without changing the worker count used for the hardware tests. I'll document the optional local command alongside the existing draw-core reproduction.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174505456 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7174505456). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T21:01:27Z. --- I found a local way to recover headroom for the existing 60-second core test on the two adapters from [the 32-run matrix](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7173455245). The Windows CTest starts Python with `-B`, which permits reading an existing bytecode cache. I primed the test module and its imports in a build-local cache, then ran the registered test with the same environment. Python 3.14.3 saw all 24 logical processors throughout the GPU runs. ```powershell # From the repository root after configuring the dev preset. $env:PYTHONPYCACHEPREFIX = Join-Path $PWD 'out/pycache' & .\out\pe-env\Scripts\python.exe -c "import sys; sys.path.insert(0, 'tests'); import pixel_aot_check" ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -V ``` At `82bb67ef` with the same registered command, renderer, DXC, and 60-second timeout, the initial import took 5.75 s once. Warm-cache times in seconds: | Adapter | Previous four runs, default local environment | Three runs with the primed cache | | --- | --- | --- | | Intel UHD 770, 32.0.101.5973 | 59.32, three timeouts | 27.64, 27.75, 25.68 | | RTX 4060, 32.0.15.9579 | Three timeouts, 57.96 | 26.02, 25.65, 27.77 | All six runs retained the exact 1,010-line coverage record from both earlier successful runs, SHA-256 `0d14bba50cf16622c11e42d42be8d681573460bb55728e4ecb80c3aeee8cf469`. The two series ran at different times on the same Windows 11 machine, build 26100.9711, debug layer unavailable. Each test ran serially. I also isolated the Python side on newer main `e9ae884f` using the normal device-free entry `python -B tests/pyc_main.py pixel_aot_check`. With an intentionally empty cache, the three runs took 39.57–40.69 s for 24 logical processors and 17.33–18.12 s for four. With a preloaded cache the corresponding results were 4.94–5.03 s and 4.74–5.12 s. All 12 coverage files matched byte for byte. The cache accounts for the large difference on this host without changing the worker count used for the hardware tests. I'll document the optional local command alongside the existing draw-core reproduction.
tedin7 commented 2026-11-25 22:02:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:15:20Z.


Claiming: speed of startup_storage_worker_start + startup_heartbeat_commit (one family PR, test-only).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174823661 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7174823661). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:15:20Z. --- Claiming: speed of startup_storage_worker_start + startup_heartbeat_commit (one family PR, test-only).
tedin7 commented 2026-11-25 22:02:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:17:19Z.


Claiming speed item: compute_store_aot_descriptor_load_format_warp (tests/compute_load_format_check.py draw: cut remaining serial launches, same checks).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174872712 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7174872712). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:17:19Z. --- Claiming speed item: compute_store_aot_descriptor_load_format_warp (tests/compute_load_format_check.py draw: cut remaining serial launches, same checks).
tedin7 commented 2026-11-25 23:02:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:06:10Z.


Claiming speed item: startup_mrt_fxc_warp + startup_mrt_dxc_warp (tests/startup_mrt_check.py: run the 6 integer-format cases in parallel, private cache per format, test-only).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175938046 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7175938046). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:06:10Z. --- Claiming speed item: startup_mrt_fxc_warp + startup_mrt_dxc_warp (tests/startup_mrt_check.py: run the 6 integer-format cases in parallel, private cache per format, test-only).
RavenCurseBurg commented 2026-11-25 23:02:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T22:45:52Z.


I’ll measure a follow-up to the merged #2568 using the same compute_store_aot_descriptor_load_format_warp fixture. Its six workers retain a separate renderer process and D3D12 device for each dispatch. Twenty-one of the 32 dispatches use the same compiled shader (seven matching references and fourteen intentionally wrong ones).

I’ll compare that version with a prototype that reuses one device for those 21 cases and leaves the eleven independently compiled shader mutations intact. I’ll check the same case order, individual mismatch diagnostics, and a device/error case. I can run WARP, RTX 4060 and UHD 770 on the same Windows machine and post the timings even if reusing the device loses to six parallel workers.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176759724 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7176759724). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T22:45:52Z. --- I’ll measure a follow-up to the merged #2568 using the same `compute_store_aot_descriptor_load_format_warp` fixture. Its six workers retain a separate renderer process and D3D12 device for each dispatch. Twenty-one of the 32 dispatches use the same compiled shader (seven matching references and fourteen intentionally wrong ones). I’ll compare that version with a prototype that reuses one device for those 21 cases and leaves the eleven independently compiled shader mutations intact. I’ll check the same case order, individual mismatch diagnostics, and a device/error case. I can run WARP, RTX 4060 and UHD 770 on the same Windows machine and post the timings even if reusing the device loses to six parallel workers.
RavenCurseBurg commented 2026-11-26 00:01:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T23:20:47Z.


I measured the follow-up to #2568 on the full compute_store_aot_descriptor_load_format fixture. Sharing only the device slowed down all three desktop adapters. Sharing the fixed shader's root signature and compute pipeline as well reduced the median on all three and on hosted WARP.

Environment Six-worker baseline → device only Six-worker baseline → device + pipeline
Windows 11 WARP 26.806 → 59.095 s 22.736 → 14.859 s
RTX 4060 14.694 → 16.084 s 16.343 → 11.220 s
Intel UHD 770 20.968 → 34.832 s 22.720 → 15.311 s
Windows Server 2025 WARP, debug layer enabled — 22.31 → 12.29 s

Each desktop column is a separate experiment with its own baseline. On Windows 11 build 26100.9711 I warmed both implementations, then ran three timed pairs on each adapter with the same renderer binary for both sides. Desktop driver versions were 32.0.15.9579 (NVIDIA), 32.0.101.5973 (Intel) and 10.0.26100.9711 (WARP). The desktop debug layer was unavailable. The hosted figures are medians of three interleaved runs per implementation on one runner. Windows build and raw CTest output

The fixture goes from 32 renderer launches to 12. All 21 fixed-shader references get fresh buffers, a separate dispatch and a fenced comparison of all 320 words. On each desktop adapter I compared the bytes of the 32 case inputs, the 12 HLSL and DXIL pairs, and the individual statuses, mismatch counts and first differing words. All matched. A one-byte reference between two passing inputs returned pass/error/pass and exit 1. In a separate hosted debug-layer control, an injected D3D12 error affected only the middle case and actual device removal failed that case and the next one. Debug-layer controls

The candidate retains the per-case labels and the renderer's debug output. Its Release checks and timings also exercise the other root signatures and image paths that use the compute helper.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177435480 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7177435480). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T23:20:47Z. --- I measured the follow-up to #2568 on the full `compute_store_aot_descriptor_load_format` fixture. Sharing only the device slowed down all three desktop adapters. Sharing the fixed shader's root signature and compute pipeline as well reduced the median on all three and on hosted WARP. | Environment | Six-worker baseline → device only | Six-worker baseline → device + pipeline | | --- | ---: | ---: | | Windows 11 WARP | 26.806 → 59.095 s | 22.736 → 14.859 s | | RTX 4060 | 14.694 → 16.084 s | 16.343 → 11.220 s | | Intel UHD 770 | 20.968 → 34.832 s | 22.720 → 15.311 s | | Windows Server 2025 WARP, debug layer enabled | — | 22.31 → 12.29 s | Each desktop column is a separate experiment with its own baseline. On Windows 11 build 26100.9711 I warmed both implementations, then ran three timed pairs on each adapter with the same renderer binary for both sides. Desktop driver versions were 32.0.15.9579 (NVIDIA), 32.0.101.5973 (Intel) and 10.0.26100.9711 (WARP). The desktop debug layer was unavailable. The hosted figures are medians of three interleaved runs per implementation on one runner. [Windows build and raw CTest output](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45718468397) The fixture goes from 32 renderer launches to 12. All 21 fixed-shader references get fresh buffers, a separate dispatch and a fenced comparison of all 320 words. On each desktop adapter I compared the bytes of the 32 case inputs, the 12 HLSL and DXIL pairs, and the individual statuses, mismatch counts and first differing words. All matched. A one-byte reference between two passing inputs returned `pass/error/pass` and exit 1. In a separate hosted debug-layer control, an injected D3D12 error affected only the middle case and actual device removal failed that case and the next one. [Debug-layer controls](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45717519630) The [candidate](https://github.com/RavenCurseBurg/Xbox2Windows/commit/c0cd0bfe10823a070c8f42a6cfe6118b92c1493c) retains the per-case labels and the renderer's debug output. Its [Release checks and timings](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45720220591) also exercise the other root signatures and image paths that use the compute helper.
RavenCurseBurg commented 2026-11-26 00:01:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T23:40:47Z.


I’ll take the heap-view load fixture as a follow-up to #2615. The Windows receipt on that PR puts compute_store_aot_heap_view_load_warp among the slower cases. Its matching references for one- and two-group dispatches reuse two shaders (XY and XYZW). I’ll measure batching references by shader, preserving the independently compiled mutations and per-slot failure diagnostics. I also noticed four zero-publication controls in the current source while the summary counts three. I’ll reconcile the summary with the actual case stream and compare the inputs and first wrong words on WARP and hardware before proposing the change.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177898211 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7177898211). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T23:40:47Z. --- I’ll take the heap-view **load** fixture as a follow-up to #2615. The Windows receipt on that PR puts `compute_store_aot_heap_view_load_warp` among the slower cases. Its matching references for one- and two-group dispatches reuse two shaders (XY and XYZW). I’ll measure batching references by shader, preserving the independently compiled mutations and per-slot failure diagnostics. I also noticed four zero-publication controls in the current source while the summary counts three. I’ll reconcile the summary with the actual case stream and compare the inputs and first wrong words on WARP and hardware before proposing the change.
R0Y00 commented 2026-11-26 01:02:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T00:15:51Z.


The heap-view load follow-up #2635 is on main at 8ecaa8ec. It reduces this fixture from 77 renderer launches to 16 while retaining all 77 observed records, including 14 separately compiled mutations and the seven wrong-reference checks. The PR's paired Windows Server WARP median went from 11.51 s to 7.87 s. The latest Windows receipt also passed all four adjacent checks in Debug and Release. Please keep any next batching slice anchored to an identified fixture and its per-case mismatches.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178572777 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7178572777). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T00:15:51Z. --- The heap-view load follow-up #2635 is on `main` at `8ecaa8ec`. It reduces this fixture from 77 renderer launches to 16 while retaining all 77 observed records, including 14 separately compiled mutations and the seven wrong-reference checks. The PR's paired Windows Server WARP median went from 11.51 s to 7.87 s. The latest Windows receipt also passed all four adjacent checks in Debug and Release. Please keep any next batching slice anchored to an identified fixture and its per-case mismatches.
RavenCurseBurg commented 2026-11-26 01:02:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T00:21:11Z.


I’ll measure compute_store_aot_heap_view_store_warp and its hardware counterpart next. The four-check run for #2635 recorded 12, 12, 16, 17 and 17 matching cases across UINT4 and four D16 stores, plus 52 independently compiled shader mutations. Each mode currently starts a process for every fixed-shader reference. I’ll compare one batch per mode, keeping each mutation and its required first-word diagnostic, the 320-word sentinels, and the hardware capability skip. I’ll report the full-fixture timings and compare the individual readbacks before proposing a change. Original run

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178665540 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7178665540). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-26T00:21:11Z. --- I’ll measure `compute_store_aot_heap_view_store_warp` and its hardware counterpart next. The four-check run for #2635 recorded 12, 12, 16, 17 and 17 matching cases across UINT4 and four D16 stores, plus 52 independently compiled shader mutations. Each mode currently starts a process for every fixed-shader reference. I’ll compare one batch per mode, keeping each mutation and its required first-word diagnostic, the 320-word sentinels, and the hardware capability skip. I’ll report the full-fixture timings and compare the individual readbacks before proposing a change. [Original run](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45724010576)
RavenCurseBurg commented 2026-11-26 02:05:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T01:11:59Z.


The heap-view store result is in merged PR #2654. Its 126 readbacks and 52 shader mutations matched on WARP, an RTX 4060 and a UHD 770. Three-pair medians fell by 28.9%, 36.6% and 37.6% respectively.

I’ll measure the fixed-shader references in startup_vertex_fetch_formats_{warp,hardware} next. On current main the TBUFFER section starts 50 renderers for 14 matching references and 36 deliberately wrong references over the same 14 shaders. I’ll test one batch per format against the separate runs, retaining the predicted first wrong word, 320-word guard checks, and the fixture’s existing skip behavior. The 15 shader mutations and the later descriptor-driven cases have separate coverage. #2006 extends the format table and decoder. I’ll check that the batching handles its additional format and compare the full-fixture timings before proposing a change.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7179532174 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7179532174). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-26T01:11:59Z. --- The heap-view store result is in [merged PR #2654](https://github.com/R0Y00/Xbox2Windows/pull/2654). Its 126 readbacks and 52 shader mutations matched on WARP, an RTX 4060 and a UHD 770. Three-pair medians fell by 28.9%, 36.6% and 37.6% respectively. I’ll measure the fixed-shader references in `startup_vertex_fetch_formats_{warp,hardware}` next. On current main the TBUFFER section starts 50 renderers for 14 matching references and 36 deliberately wrong references over the same 14 shaders. I’ll test one batch per format against the separate runs, retaining the predicted first wrong word, 320-word guard checks, and the fixture’s existing skip behavior. The 15 shader mutations and the later descriptor-driven cases have separate coverage. #2006 extends the format table and decoder. I’ll check that the batching handles its additional format and compare the full-fixture timings before proposing a change.
RavenCurseBurg commented 2026-11-26 03:03:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T02:41:09Z.


I will take the compiler reuse follow-up to merged #2690. The full vertex-fetch fixture calls DXC 186 times. I will compare every distinct stage and complete input, its DXIL hash, all 129 readbacks and first mismatches, and paired wall time on WARP, RTX 4060 and UHD 770. The cache lives in one fixture invocation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181027049 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7181027049). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-26T02:41:09Z. --- I will take the compiler reuse follow-up to merged #2690. The full vertex-fetch fixture calls DXC 186 times. I will compare every distinct stage and complete input, its DXIL hash, all 129 readbacks and first mismatches, and paired wall time on WARP, RTX 4060 and UHD 770. The cache lives in one fixture invocation.
tedin7 commented 2026-11-26 07:00:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T06:50:27Z.


Claiming a generic follow-up for the per-case process cost: an offscreen_check --serve mode that runs any operation case after case on one device, adopted first by the flat-param, pixel-words and image-sample draw checks (builds on #2635, #2654, #2690, #2711). Draft PR soon.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184835097 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7184835097). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T06:50:27Z. --- Claiming a generic follow-up for the per-case process cost: an offscreen_check --serve mode that runs any operation case after case on one device, adopted first by the flat-param, pixel-words and image-sample draw checks (builds on #2635, #2654, #2690, #2711). Draft PR soon.
RavenCurseBurg commented 2026-11-26 09:04:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T08:39:36Z.


I will take the remaining compile cost in startup_gfx2hlsl_f16_alu_draw mentioned in #2766. I will measure which FXC/DXC inputs repeat, reuse or queue independent compilations within the fixture, and compare shader bytes, case order, wrong-word controls and paired elapsed times with the current suite. GPU draws will still execute in their original order.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7186863769 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7186863769). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-26T08:39:36Z. --- I will take the remaining compile cost in `startup_gfx2hlsl_f16_alu_draw` mentioned in #2766. I will measure which FXC/DXC inputs repeat, reuse or queue independent compilations within the fixture, and compare shader bytes, case order, wrong-word controls and paired elapsed times with the current suite. GPU draws will still execute in their original order.
lukaslw-lab commented 2026-12-02 03:31:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T03:31:41Z.


Closing: the proposal is done. Per-case device creation is gone from the large draw fixtures:

  • batch mode: #556, #697;
  • several shaders on one device, with case-local mismatch and error reporting and the device-removal control: #2525;
  • a generic offscreen_check serve mode: #2766.

Fixture-specific speedups (#808, #831, #2370, #2568, #2635, #2654, #2690) landed along the way. New slow fixtures can get their own issues.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7333971851 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7333971851). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T03:31:41Z. --- Closing: the proposal is done. Per-case device creation is gone from the large draw fixtures: - batch mode: #556, #697; - several shaders on one device, with case-local mismatch and error reporting and the device-removal control: #2525; - a generic `offscreen_check` serve mode: #2766. Fixture-specific speedups (#808, #831, #2370, #2568, #2635, #2654, #2690) landed along the way. New slow fixtures can get their own issues. AI-assisted.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#442
No description provided.