D3D12.X: check writability in note_signaled and remove per-frame allocations in WaitFrameEventX #2692

Open
github-bot wants to merge 1 commit from github-bot/gh-2692 into main AGit
Owner

@⁠Decodere on GitHub · 2026-11-26 06:27 UTC · original
Decodere:fix-frame-note-signaled-writable-and-zero-alloc → main · +232 −20 · 1 files · 1 commits · open

What is in it

Hardens note_signaled against non-writable output pointers and removes per-frame heap allocations, unnecessary Arc::clone traffic, and O(N) ring-buffer shifts on the WaitFrameEventX / mark_flipped hot path in crates/xcl/src/hle/d3d12x/frame.rs.

  • Writability check in note_signaled: Replaces crate::gpu::shader::readable(out, 4) with writable(p, len). writable checks a K32QueryWorkingSetEx fast path (resident_and_writable, up to 16 pages, treating only flags & 1 != 0 && protect != 0 entries as resident so non-resident or protect == 0 pages fall through cleanly) and falls back to VirtualQuery, requiring MEM_COMMIT, no PAGE_GUARD, and a writable page protection (PAGE_READWRITE, PAGE_WRITECOPY, PAGE_EXECUTE_READWRITE, or PAGE_EXECUTE_WRITECOPY). Read-only, execute-read, guard, no-access, reserved-only, null, and cross-page RW->RO targets are safely skipped without touching pages or triggering guard faults.
  • Zero per-frame heap allocations on paced WaitFrameEventX: Replaces ancillary's Vec<HANDLE> with a stack-allocated AncillaryHandles ([HANDLE; 63] + len, implementing Deref<Target = [HANDLE]> and IntoIterator) and replaces the paced wait-handle Vec<HANDLE> with a stack [HANDLE; 64] array.
  • Lazy Arc::clone for uncapped mode: Clones c.kinds[ty as usize].extra inside wait_frame_event_x only when interval_override() == Some(0), avoiding an unused atomic reference-count increment/decrement on every default paced frame wait.
  • O(1) ring-buffer eviction: Changes ISSUED and FLIPPED from Vec (remove(0) / drain(..n)) to VecDeque (pop_front() / push_back(...)).
  • Unit tests: Adds three pure-Win32 unit tests covering writable / note_signaled (read-only, resident read-only, RW->RO cross-page straddle, PAGE_GUARD preservation, PAGE_EXECUTE_READ, PAGE_NOACCESS, reserved-only, and valid write), AncillaryHandles boundary cases (null, 0, 63, 64, u32::MAX, unreadable list), and ISSUED/FLIPPED FIFO eviction order.

Part of #103

Tested

  • Failing-first probe on origin/main (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7): Confirmed unmodified gpu::shader::readable accepted both a PAGE_READONLY target (ro_ok=true) and a 4-byte PAGE_READWRITE -> PAGE_READONLY cross-page straddle (straddle_ok=true), whereas post-fix writable rejects both and note_signaled skips them safely.
  • Debug WARP (XCL_ADAPTER=warp, XCL_WARP=1): cargo test -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture -> 8 passed; 0 failed; 0 ignored (0 skipped, 1.05s).
  • Release WARP (XCL_ADAPTER=warp, XCL_WARP=1): cargo test --release -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture -> 8 passed; 0 failed; 0 ignored (0 skipped, 0.25s).
  • Clippy: cargo clippy --all-targets -> 0 new warnings in crates/xcl/src/hle/d3d12x/frame.rs.
  • Release RTX 4060: cargo test --release -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture -> 8 passed; 0 failed; 0 ignored (0 skipped, 0.25s).
  • Full release workspace on RTX 4060: cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture -> 37 test binaries, 1438 passed; 0 failed; 47 ignored (29 pre-existing host-gated SKIPPED lines: 21 wave64-only tests on a 32-lane GPU, 3 per-lane wave32 tests refused by the driver, 3 D3D12 debug layer tests without d3d12SDKLayers.dll, 1 no heap windows, 1 cannot disable the driver cache).

Regression run

Baseline (origin/main):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1572 (PresentX 1572)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13976 MB

Branch (HEAD):

xcl-smoke v1
commit: 9a547e23ab97a0620384a91c305f5a8ebac3088b
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1523 (PresentX 1524)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14013 MB

Not tested

  • Wave64-only GPU tests and D3D12 debug-layer tests (unavailable on this 32-lane RTX 4060 host without d3d12SDKLayers.dll).
  • Wine/Proton runtime behavior when K32QueryWorkingSetEx reports protect == 0 (covered structurally by falling through to VirtualQuery).
  • Retail title smoke under XCL_FRAME_INTERVAL_US=0 (uncapped override path).

AI use

Implemented, unit-tested, and verified with assistance from Google Antigravity (Gemini 4 Neon); every change and test result was reviewed and executed locally.

**@⁠Decodere** on GitHub · 2026-11-26 06:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/2692) `Decodere:fix-frame-note-signaled-writable-and-zero-alloc` → `main` · +232 −20 · 1 files · 1 commits · open **What is in it** Hardens `note_signaled` against non-writable output pointers and removes per-frame heap allocations, unnecessary `Arc::clone` traffic, and O(N) ring-buffer shifts on the `WaitFrameEventX` / `mark_flipped` hot path in `crates/xcl/src/hle/d3d12x/frame.rs`. - **Writability check in `note_signaled`:** Replaces `crate::gpu::shader::readable(out, 4)` with `writable(p, len)`. `writable` checks a `K32QueryWorkingSetEx` fast path (`resident_and_writable`, up to 16 pages, treating only `flags & 1 != 0 && protect != 0` entries as resident so non-resident or `protect == 0` pages fall through cleanly) and falls back to `VirtualQuery`, requiring `MEM_COMMIT`, no `PAGE_GUARD`, and a writable page protection (`PAGE_READWRITE`, `PAGE_WRITECOPY`, `PAGE_EXECUTE_READWRITE`, or `PAGE_EXECUTE_WRITECOPY`). Read-only, execute-read, guard, no-access, reserved-only, null, and cross-page RW->RO targets are safely skipped without touching pages or triggering guard faults. - **Zero per-frame heap allocations on paced `WaitFrameEventX`:** Replaces `ancillary`'s `Vec<HANDLE>` with a stack-allocated `AncillaryHandles` (`[HANDLE; 63]` + `len`, implementing `Deref<Target = [HANDLE]>` and `IntoIterator`) and replaces the paced wait-handle `Vec<HANDLE>` with a stack `[HANDLE; 64]` array. - **Lazy `Arc::clone` for uncapped mode:** Clones `c.kinds[ty as usize].extra` inside `wait_frame_event_x` only when `interval_override() == Some(0)`, avoiding an unused atomic reference-count increment/decrement on every default paced frame wait. - **O(1) ring-buffer eviction:** Changes `ISSUED` and `FLIPPED` from `Vec` (`remove(0)` / `drain(..n)`) to `VecDeque` (`pop_front()` / `push_back(...)`). - **Unit tests:** Adds three pure-Win32 unit tests covering `writable` / `note_signaled` (read-only, resident read-only, RW->RO cross-page straddle, `PAGE_GUARD` preservation, `PAGE_EXECUTE_READ`, `PAGE_NOACCESS`, reserved-only, and valid write), `AncillaryHandles` boundary cases (`null`, `0`, `63`, `64`, `u32::MAX`, unreadable list), and `ISSUED`/`FLIPPED` FIFO eviction order. Part of #103 **Tested** - **Failing-first probe on `origin/main` (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`):** Confirmed unmodified `gpu::shader::readable` accepted both a `PAGE_READONLY` target (`ro_ok=true`) and a 4-byte `PAGE_READWRITE -> PAGE_READONLY` cross-page straddle (`straddle_ok=true`), whereas post-fix `writable` rejects both and `note_signaled` skips them safely. - **Debug WARP (`XCL_ADAPTER=warp`, `XCL_WARP=1`):** `cargo test -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture` -> `8 passed; 0 failed; 0 ignored` (`0` skipped, `1.05s`). - **Release WARP (`XCL_ADAPTER=warp`, `XCL_WARP=1`):** `cargo test --release -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture` -> `8 passed; 0 failed; 0 ignored` (`0` skipped, `0.25s`). - **Clippy:** `cargo clippy --all-targets` -> `0` new warnings in `crates/xcl/src/hle/d3d12x/frame.rs`. - **Release RTX 4060:** `cargo test --release -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture` -> `8 passed; 0 failed; 0 ignored` (`0` skipped, `0.25s`). - **Full release workspace on RTX 4060:** `cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture` -> `37` test binaries, `1438 passed; 0 failed; 47 ignored` (`29` pre-existing host-gated `SKIPPED` lines: `21` wave64-only tests on a 32-lane GPU, `3` per-lane wave32 tests refused by the driver, `3` D3D12 debug layer tests without `d3d12SDKLayers.dll`, `1` `no heap windows`, `1` `cannot disable the driver cache`). **Regression run** Baseline (`origin/main`): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1572 (PresentX 1572) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13976 MB ``` Branch (`HEAD`): ``` xcl-smoke v1 commit: 9a547e23ab97a0620384a91c305f5a8ebac3088b gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1523 (PresentX 1524) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14013 MB ``` **Not tested** - Wave64-only GPU tests and D3D12 debug-layer tests (unavailable on this 32-lane RTX 4060 host without `d3d12SDKLayers.dll`). - Wine/Proton runtime behavior when `K32QueryWorkingSetEx` reports `protect == 0` (covered structurally by falling through to `VirtualQuery`). - Retail title smoke under `XCL_FRAME_INTERVAL_US=0` (uncapped override path). **AI use** Implemented, unit-tested, and verified with assistance from Google Antigravity (Gemini 4 Neon); every change and test result was reviewed and executed locally.
`note_signaled` previously guarded its `i32` write with `gpu::shader::readable(out, 4)`, which only checks that pages are readable. A pointer to `PAGE_READONLY`, `PAGE_EXECUTE_READ`, or a cross-page straddle ending on a read-only page passed the guard and faulted on write.

- Add `writable(p, len)` with a `K32QueryWorkingSetEx` fast path (`resident_and_writable`, falling back to `VirtualQuery` when non-resident or `protect == 0`) and use it in `note_signaled` so read-only, guard, no-access, unmapped, and cross-page non-writable targets are safely skipped without touching pages.
- Replace `ancillary`'s `Vec<HANDLE>` with a stack-allocated `AncillaryHandles` (`[HANDLE; 63]` + `len`) and replace the paced `WaitFrameEventX` wait-handle `Vec` with a `[HANDLE; 64]` stack array, removing both per-frame heap allocations on the default paced path.
- Only `Arc::clone` the scheduled ancillary handles inside `WaitFrameEventX` when `XCL_FRAME_INTERVAL_US` is set to uncapped (`Some(0)`).
- Switch `ISSUED` and `FLIPPED` ring buffers from `Vec` (`remove(0)` / `drain(..n)`) to `VecDeque` (`pop_front()` / `push_back(...)`) for O(1) eviction.
- Add unit tests covering `writable` / `note_signaled` (read-only, resident read-only, RW->RO straddle, `PAGE_GUARD`, `PAGE_EXECUTE_READ`, `PAGE_NOACCESS`, reserved-only), `AncillaryHandles` boundary cases, and `ISSUED`/`FLIPPED` FIFO eviction order.

Part of #103
Assisted-by: Google Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:34:42 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-26 06:50 UTC · original · edited 2026-11-26 07:02 UTC

Tested on the Linux/Wine lane, full standard env (AMD rig: Ryzen 9 9900X, 96 GB DDR5, RX 7900 XT 20 GB, Arch kernel 7.2.15, Mesa 26.2.5 RADV, wine-11.0 Proton, rustc 1.94.0; d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b overrides, official DXC kit, VKD3D_CONFIG=ignore_shared_fence, threads=2), head 9a547e23, mergeable against main b49be183:
non-gpu suite (--skip gpu::): 599 passed, 3 failed, 4 ignored, 733 filtered.
The failure set is identical to bare main b49be183 measured on the same rig the same day (596 passed, 3 failed): gpu_promoted_uav_clear (our #2490), xma2_source_voice (#2481, vendored-FAudio gate). The third red, the sparse tile video-memory test, is a known batch flake (green solo).
Zero delta from this PR; every test it adds passes inside the suite.
Not tested: gpu suite, Windows native.
Correction: an earlier version of this row reported three extra reds; those runs lacked the d3d12,d3d12core=n,b DLL overrides and hit stub-DLL NOTIMPL artifacts. Re-ran with the standard env, artifacts gone.
AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-26 06:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/2692#issuecomment-7184842631) · edited 2026-11-26 07:02 UTC **Tested** on the Linux/Wine lane, full standard env (AMD rig: Ryzen 9 9900X, 96 GB DDR5, RX 7900 XT 20 GB, Arch kernel 7.2.15, Mesa 26.2.5 RADV, wine-11.0 Proton, rustc 1.94.0; `d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b` overrides, official DXC kit, `VKD3D_CONFIG=ignore_shared_fence`, threads=2), head `9a547e23`, mergeable against main `b49be183`: non-gpu suite (`--skip gpu::`): **599 passed, 3 failed, 4 ignored, 733 filtered**. The failure set is identical to bare main `b49be183` measured on the same rig the same day (596 passed, 3 failed): gpu_promoted_uav_clear (our #2490), xma2_source_voice (#2481, vendored-FAudio gate). The third red, the sparse tile video-memory test, is a known batch flake (green solo). Zero delta from this PR; every test it adds passes inside the suite. **Not tested**: gpu suite, Windows native. **Correction**: an earlier version of this row reported three extra reds; those runs lacked the `d3d12,d3d12core=n,b` DLL overrides and hit stub-DLL NOTIMPL artifacts. Re-ran with the standard env, artifacts gone. **AI use**: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
Author
Owner

@⁠sage-sage on GitHub · 2026-11-26 07:05 UTC · original

Test report: passes on NVIDIA. Exact head 9a547e23 (its base is current main b49be18, so head = merged).

Tested

  • RTX 4080 SUPER (driver 621.40), Ryzen 5 7600X, Windows 11 26H2 build 26300.10075, rustc 1.100.0 MSVC, DXC 1.9.2602.17 (Windows SDK 10.0.26100), debug build
  • cargo test --workspace -- --test-threads=4: 1438 passed, 0 failed, 47 ignored; the 3 new tests pass
  • SKIPPED (29 lines, the same as on main on this machine): 21 wave64 tests (NVIDIA is wave32 only), 3 per-lane wave32 f16/f32 forms (refused), 3 D3D12 debug layer (d3d12SDKLayers.dll not installed), 1 no heap windows, 1 pso_measurement_compiles_an_exact_synthetic_record (Developer Mode off)

Not tested

  • No game, so not WaitFrameEventX pacing on a title.

Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

**@⁠sage-sage** on GitHub · 2026-11-26 07:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/2692#issuecomment-7185092240) **Test report: passes on NVIDIA.** Exact head `9a547e23` (its base is current `main` `b49be18`, so head = merged). **Tested** - RTX 4080 SUPER (driver 621.40), Ryzen 5 7600X, Windows 11 26H2 build 26300.10075, rustc 1.100.0 MSVC, DXC 1.9.2602.17 (Windows SDK 10.0.26100), debug build - `cargo test --workspace -- --test-threads=4`: 1438 passed, 0 failed, 47 ignored; the 3 new tests pass - SKIPPED (29 lines, the same as on `main` on this machine): 21 wave64 tests (NVIDIA is wave32 only), 3 per-lane wave32 f16/f32 forms (refused), 3 D3D12 debug layer (`d3d12SDKLayers.dll` not installed), 1 `no heap windows`, 1 `pso_measurement_compiles_an_exact_synthetic_record` (Developer Mode off) **Not tested** - No game, so not `WaitFrameEventX` pacing on a title. Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Author
Owner

@⁠relativespace2K on GitHub · 2026-11-26 07:18 UTC · original

Tested - native Windows AMD RDNA2, PR head 9a547e23 on main b49be183

Tool: OpenCode with DeepSeek V4.1 Flash 1017

  • AMD Radeon RX 6800 XT (16338 MiB), driver 32.0.21045.29003; Ryzen 5 5600, 31.9 GB;
    Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17.
  • cargo test --release -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture:
    8 passed, 0 failed, 0 ignored, 0 skipped, 1331 filtered out.
  • Game: retail title 1.0.2.1, four 240 s runs, XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=1 XCL_RUN_SECONDS=240, no other XCL_* variables; shader and pipeline
    caches warm; main and the PR run alternately.
run presents peak commit local VRAM first frame DXIL misses
main 1 1,625 33,980 MB 15,933 MB 20.95 s 139
PR 1 3,780 31,490 MB 16,274 MB 17.22 s 41
main 2 (warm) 1,849 31,819 MB 16,465 MB 20.13 s 79
PR 2 (warm) 1,780 32,490 MB 16,401 MB 16.17 s 60

PR 1 ran second and started with a warmer cache (139 -> 41 DXIL misses); the warm repeat
does not reproduce 3,780 (PR 1,780 vs main 1,849, within run-to-run variance). The only
consistent difference is the first frame ~4 s earlier in both PR runs (17.2/16.2 s vs
20.9/20.1 s); n=2, not enough to claim a gain.

Both trees: 40 mesh refusals, 0 failed pipelines, 0 DXIL failures, no crash and no device
removal. The title still stalls on its loading screen (presentation falls to zero around
125 s; 1,780-1,849 frames), so there is no world or FPS comparison in this window.

Not tested: full workspace, NVIDIA, debug build, world/FPS runs.

AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the figures and crash lines were checked against the run logs.

**@⁠relativespace2K** on GitHub · 2026-11-26 07:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/2692#issuecomment-7185313408) **Tested** - native Windows AMD RDNA2, PR head `9a547e23` on `main` `b49be183` Tool: OpenCode with DeepSeek V4.1 Flash 1017 - AMD Radeon RX 6800 XT (16338 MiB), driver 32.0.21045.29003; Ryzen 5 5600, 31.9 GB; Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17. - `cargo test --release -p xcl --lib -- hle::d3d12x::frame::tests:: --nocapture`: **8 passed, 0 failed, 0 ignored, 0 skipped**, 1331 filtered out. - Game: retail title 1.0.2.1, four 240 s runs, `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=1 XCL_RUN_SECONDS=240`, no other XCL_* variables; shader and pipeline caches warm; `main` and the PR run alternately. | run | presents | peak commit | local VRAM | first frame | DXIL misses | |---|---:|---:|---:|---:|---:| | `main` 1 | 1,625 | 33,980 MB | 15,933 MB | 20.95 s | 139 | | PR 1 | 3,780 | 31,490 MB | 16,274 MB | 17.22 s | 41 | | `main` 2 (warm) | 1,849 | 31,819 MB | 16,465 MB | 20.13 s | 79 | | PR 2 (warm) | 1,780 | 32,490 MB | 16,401 MB | 16.17 s | 60 | PR 1 ran second and started with a warmer cache (139 -> 41 DXIL misses); the warm repeat does not reproduce 3,780 (PR 1,780 vs `main` 1,849, within run-to-run variance). The only consistent difference is the first frame ~4 s earlier in both PR runs (17.2/16.2 s vs 20.9/20.1 s); n=2, not enough to claim a gain. Both trees: 40 mesh refusals, 0 failed pipelines, 0 DXIL failures, no crash and no device removal. The title still stalls on its loading screen (presentation falls to zero around 125 s; 1,780-1,849 frames), so there is no world or FPS comparison in this window. **Not tested**: full workspace, NVIDIA, debug build, world/FPS runs. **AI use**: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the figures and crash lines were checked against the run logs.
Author
Owner

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

RX 6800M verification at exact PR head 9a547e23ab97a0620384a91c305f5a8ebac3088b against current main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 (Windows 11, AMD driver 30.0.13002.13003, Rust 1.99.0 MSVC):

  • cargo test --locked -p xcl --lib hle::d3d12x::frame::tests:: -j 1 -- --test-threads=1 --nocapture, with XCL_ADAPTER=6800M: 8 passed, 0 failed, 0 ignored, 1,331 filtered.
  • cargo build --locked --release -p xcl -j 1: passed; head executable SHA-256 0A0B772118DD4E4A7DB88D8CE014A70A1146BCCF5F5B48A5C778C62195A7C95C.
  • Paired guarded 12-second release smokes used XCL_FRAME_INTERVAL_US=0, XCL_TRACE_FRAME_EVENTS=1, XCL_ADAPTER=6800M, separate data/DXIL cache directories, and the same locally owned title build (hash 2ef5fd64). Both logs explicitly say XCL_FRAME_INTERVAL_US=0 – uncapped and show WaitFrameEventX calls plus nonzero frame-event wait counts.
Main b49be183 PR 9a547e23
Exit 0x0 0x0
Frames shown / PresentX 825 / 826 896 / 897
Last three 2-second present windows 184, 322, 320 187, 351, 358
Frame-event waits in those windows 367, 644, 640 375, 702, 715
Device removals / crashes 0 / 0 0 / 0
Peak commit 7,589 MB 7,567 MB

This confirms startup presentation and frame-event activity on this AMD card with the uncapped override. The 12-second samples are too short for a performance conclusion and do not establish world-load behavior or exercise every changed edge case. I did not run the full workspace suite on this head. AI-assisted test report with Codex.

**@⁠luckyteagirl** on GitHub · 2026-11-26 07:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/2692#issuecomment-7185410806) RX 6800M verification at exact PR head `9a547e23ab97a0620384a91c305f5a8ebac3088b` against current main `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7` (Windows 11, AMD driver `30.0.13002.13003`, Rust 1.99.0 MSVC): - `cargo test --locked -p xcl --lib hle::d3d12x::frame::tests:: -j 1 -- --test-threads=1 --nocapture`, with `XCL_ADAPTER=6800M`: **8 passed, 0 failed, 0 ignored**, 1,331 filtered. - `cargo build --locked --release -p xcl -j 1`: passed; head executable SHA-256 `0A0B772118DD4E4A7DB88D8CE014A70A1146BCCF5F5B48A5C778C62195A7C95C`. - Paired guarded 12-second release smokes used `XCL_FRAME_INTERVAL_US=0`, `XCL_TRACE_FRAME_EVENTS=1`, `XCL_ADAPTER=6800M`, separate data/DXIL cache directories, and the same locally owned title build (hash `2ef5fd64`). Both logs explicitly say `XCL_FRAME_INTERVAL_US=0 – uncapped` and show `WaitFrameEventX` calls plus nonzero frame-event wait counts. | | Main `b49be183` | PR `9a547e23` | | --- | ---: | ---: | | Exit | `0x0` | `0x0` | | Frames shown / PresentX | 825 / 826 | 896 / 897 | | Last three 2-second present windows | 184, 322, 320 | 187, 351, 358 | | Frame-event waits in those windows | 367, 644, 640 | 375, 702, 715 | | Device removals / crashes | 0 / 0 | 0 / 0 | | Peak commit | 7,589 MB | 7,567 MB | This confirms startup presentation and frame-event activity on this AMD card with the uncapped override. The 12-second samples are too short for a performance conclusion and do not establish world-load behavior or exercise every changed edge case. I did not run the full workspace suite on this head. AI-assisted test report with Codex.
Author
Owner

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

Ran the frame hot-path tests at 9a547e23:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=nvidia cargo test -p xcl --lib hle::d3d12x::frame::tests:: -- --test-threads=1 --nocapture
8 passed; 0 failed; 0 ignored; 1331 filtered out      (exit 0)

All eight tests pass, including the three new ones for the writability check (note_signaled_skips_readonly_guard_and_cross_page_targets), the 63/64-handle boundary (ancillary_stack_handles_boundary_cases) and the FIFO eviction (issued_and_flipped_ring_buffers_evict_oldest_in_order). These are Win32 unit tests, not GPU rendering measurements.

What this adds: the author measured on an RTX 4060 (Ada) and WARP; this is a second NVIDIA host (Blackwell, different driver), and the thread already has one more NVIDIA report on an RTX 4080 SUPER.

Not tested: the full workspace suite, a paired 60 s smoke run, the retail title under XCL_FRAME_INTERVAL_US=0, AMD and Intel GPUs, Wine, release profile, title data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-26 09:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/2692#issuecomment-7188347109) Ran the frame hot-path tests at `9a547e23`: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=nvidia cargo test -p xcl --lib hle::d3d12x::frame::tests:: -- --test-threads=1 --nocapture 8 passed; 0 failed; 0 ignored; 1331 filtered out (exit 0) ``` All eight tests pass, including the three new ones for the writability check (`note_signaled_skips_readonly_guard_and_cross_page_targets`), the 63/64-handle boundary (`ancillary_stack_handles_boundary_cases`) and the FIFO eviction (`issued_and_flipped_ring_buffers_evict_oldest_in_order`). These are Win32 unit tests, not GPU rendering measurements. What this adds: the author measured on an RTX 4060 (Ada) and WARP; this is a second NVIDIA host (Blackwell, different driver), and the thread already has one more NVIDIA report on an RTX 4080 SUPER. Not tested: the full workspace suite, a paired 60 s smoke run, the retail title under `XCL_FRAME_INTERVAL_US=0`, AMD and Intel GPUs, Wine, release profile, title data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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