D3D12.X: a console list keeps its record chunk across Reset #505

Open
TG0000 wants to merge 2 commits from upstream-pr/510 into main
TG0000 commented 2026-11-24 01:07:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by TG0000 on 2026-11-24T01:07:12Z.


Every console-shaped command list (made by CreateCommandListX, so every list the title records through D3D12.X) did this on each recording:

  • Reset dropped its record chunks and allocated a new zeroed 1 MiB chunk (vec![0u8; CHUNK]). That is a fresh large allocation, page faults on first touch, and the free of the old chunk, for every list every frame.
  • Close first copied the whole recording into a Vec<Vec<u32>> (chunks(4).map(from_le_bytes).collect()), then replayed it.
  • the methods (SetComputeRoot32BitConstants, SetDescriptorHeaps, ResourceBarrier, CopyBufferRegion, ClearUnorderedAccessView*, CopyTextureRegion) each built their record in a heap Vec before copying it into the chunk.

Now:

  • Reset keeps the first chunk. It zeroes the part the last recording wrote (up to the write pointer), so the chunk is as a new zeroed one, and starts the next recording in it. Any other chunks are freed as before, so a list holds the same memory as before: one chunk between recordings.
  • the chunks are Box<[u32]>, and Close reads the records where they were written (&c[..used / 4]). uma_copy takes the arena and block list rather than the whole ListState, so the loop can borrow the chunks while it uploads argument tables.
  • the methods write their records with push_parts (slices and stack arrays, no allocation). The words are the same.

The behaviour is the same: the same words in the same order, the same chunk geometry (F_WRITE, F_END, F_DISPATCH_END), records split across chunks the same way, and a zeroed chunk at the start of every recording.

What is in it

  • crates/xcl/src/hle/d3d12x/console_list.rs only. It adds seal_last, recycle_chunks and push_parts, plus the spare field. close and recorded_words read the chunks directly. There are two new unit tests and an #[ignore]d release microbenchmark.

No open PR touches console_list.rs (I checked all open PRs' file lists). This PR does not touch real.rs, bind.rs or list_x.rs.

Tested

  • AMD Radeon RX 6800 (driver 32.0.21045.29003), Ryzen 9 5900X, Windows 11 build 26300, rustc 1.100.0 stable-x86_64-pc-windows-msvc
  • New unit tests:
    • methods_record_the_same_words: every recording method (root constants with and without a count, root constant, root descriptor, descriptor heaps, two transitions, buffer copy, float UAV clear, texture copy with and without a box, dispatch, barrier), compared with words built by hand from the old encodings. I also ran this same test against the unchanged origin/main code, and it passed there too, so the encodings are unchanged.
    • a_reset_reuses_the_first_chunk_zeroed: a recording three chunks long reads back whole and in order. After Reset, the next recording starts at the first chunk's address, with the same F_END / F_DISPATCH_END, one chunk, and that chunk all zero. Words the inline code writes itself (past the last method's record) are zeroed too. The next recording reads back only its own words.
  • cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib console_list: 7 passed, 0 failed, 1 ignored. title_list's test of console-list objects still passes.
  • cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib: 633 passed, 4 failed, 21 ignored. None of the 4 is in this file:
    • vram::tests::d32s8_targets_take_their_own_size_of_video_memory and title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels fail the same way on origin/main on this adapter.
    • rdna2::tests::llvm_gfx10_corpus and recomp::tests::buffer_format_table_matches_llvm need the untracked tests/data/llvm-amdgpu folder, which a fresh worktree does not have.
  • cargo +stable-x86_64-pc-windows-msvc clippy -p xcl --all-targets: no new warnings. The 6 warnings in console_list.rs were already on main (# Safety docs on existing unsafe fns, cl_release's slice cast, the existing chunks_exact). The release build has the same single rustc warning as main.
  • Release microbenchmark, cargo test --release -p xcl --lib console_list_frame_speed -- --ignored --nocapture. It models one recording per frame (Reset, a heaps record, then 64 dispatches each with a pipeline, 12 root constants, two root descriptors and two transitions, then Close reading the words). Before: the old chunk allocation, a Vec per record and the copy-out. After: the list's own code, including the LISTS lock the old path skipped in the bench.
    console list frame (64 dispatches): as it was 36267 ns, now 3468 ns (10.5x)
    console list frame (64 dispatches): as it was 39105 ns, now 3601 ns (10.9x)
    console list frame (64 dispatches): as it was 42840 ns, now 6905 ns (6.2x)
    

Regression run

scripts/smoke.ps1 -Seconds 45, one run each, under a 1 s free-RAM watchdog (FreePhysicalMemory below 3.5 GB; it never fired), one game instance at a time. First origin/main (47efa2e, a later commit of main than this PR's base), then this PR's head:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 6800
title: retail-title-1.0.2.1
seconds: 45
exit: 0x0
frames shown: 954 (PresentX 954)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15118 MB
xcl-smoke v1
commit: b66109575bfe87d9d52e7fa88fa19930f92650d7
gpu: AMD Radeon RX 6800
title: retail-title-1.0.2.1
seconds: 45
exit: 0x0
frames shown: 1012 (PresentX 1013)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15096 MB

These are single runs, and frame counts vary a lot from run to run on this machine (other builds are often compiling on it): an earlier run of main (2997c9a) gave 692 frames, and an earlier run of an earlier head of this PR gave 835. I don't claim this change caused the difference in frame counts. The point of these runs is that nothing regressed: no device removal, no crash, and the same peak commit (15096 MB against 15118 MB).

Not tested

  • NVIDIA and Intel GPUs, and RDNA4.
  • How many console lists the title resets per frame, and how many bytes each records. I have no count from the retail run, so the per-frame saving in that title is not measured. The microbenchmark measures only the record path.
  • close with a real PC list in a unit test. The replay loop is unchanged apart from reading the words in place; the smoke run exercises it.

AI use

  • Claude Code with Claude Opus 5.5: found the hot path, wrote the change, the tests and the benchmark, and ran the builds, tests and smoke runs. I reviewed the diff.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5464115619 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/510). Originally posted by [TG0000](https://github.com/TG0000) on 2026-11-24T01:07:12Z. --- Every console-shaped command list (made by `CreateCommandListX`, so every list the title records through D3D12.X) did this on each recording: - `Reset` dropped its record chunks and allocated a new **zeroed 1 MiB** chunk (`vec![0u8; CHUNK]`). That is a fresh large allocation, page faults on first touch, and the free of the old chunk, for every list every frame. - `Close` first copied the whole recording into a `Vec<Vec<u32>>` (`chunks(4).map(from_le_bytes).collect()`), then replayed it. - the methods (`SetComputeRoot32BitConstants`, `SetDescriptorHeaps`, `ResourceBarrier`, `CopyBufferRegion`, `ClearUnorderedAccessView*`, `CopyTextureRegion`) each built their record in a heap `Vec` before copying it into the chunk. Now: - `Reset` keeps the first chunk. It zeroes the part the last recording wrote (up to the write pointer), so the chunk is as a new zeroed one, and starts the next recording in it. Any other chunks are freed as before, so a list holds the same memory as before: one chunk between recordings. - the chunks are `Box<[u32]>`, and `Close` reads the records where they were written (`&c[..used / 4]`). `uma_copy` takes the arena and block list rather than the whole `ListState`, so the loop can borrow the chunks while it uploads argument tables. - the methods write their records with `push_parts` (slices and stack arrays, no allocation). The words are the same. The behaviour is the same: the same words in the same order, the same chunk geometry (`F_WRITE`, `F_END`, `F_DISPATCH_END`), records split across chunks the same way, and a zeroed chunk at the start of every recording. **What is in it** - `crates/xcl/src/hle/d3d12x/console_list.rs` only. It adds `seal_last`, `recycle_chunks` and `push_parts`, plus the `spare` field. `close` and `recorded_words` read the chunks directly. There are two new unit tests and an `#[ignore]`d release microbenchmark. No open PR touches `console_list.rs` (I checked all open PRs' file lists). This PR does not touch `real.rs`, `bind.rs` or `list_x.rs`. **Tested** - AMD Radeon RX 6800 (driver 32.0.21045.29003), Ryzen 9 5900X, Windows 11 build 26300, rustc 1.100.0 `stable-x86_64-pc-windows-msvc` - New unit tests: - `methods_record_the_same_words`: every recording method (root constants with and without a count, root constant, root descriptor, descriptor heaps, two transitions, buffer copy, float UAV clear, texture copy with and without a box, dispatch, barrier), compared with words built by hand from the old encodings. **I also ran this same test against the unchanged `origin/main` code, and it passed there too**, so the encodings are unchanged. - `a_reset_reuses_the_first_chunk_zeroed`: a recording three chunks long reads back whole and in order. After Reset, the next recording starts at the first chunk's address, with the same `F_END` / `F_DISPATCH_END`, one chunk, and that chunk all zero. Words the inline code writes itself (past the last method's record) are zeroed too. The next recording reads back only its own words. - `cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib console_list`: 7 passed, 0 failed, 1 ignored. `title_list`'s test of console-list objects still passes. - `cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib`: 633 passed, 4 failed, 21 ignored. None of the 4 is in this file: - `vram::tests::d32s8_targets_take_their_own_size_of_video_memory` and `title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` fail the same way on `origin/main` on this adapter. - `rdna2::tests::llvm_gfx10_corpus` and `recomp::tests::buffer_format_table_matches_llvm` need the untracked `tests/data/llvm-amdgpu` folder, which a fresh worktree does not have. - `cargo +stable-x86_64-pc-windows-msvc clippy -p xcl --all-targets`: no new warnings. The 6 warnings in `console_list.rs` were already on `main` (`# Safety` docs on existing `unsafe fn`s, `cl_release`'s slice cast, the existing `chunks_exact`). The release build has the same single rustc warning as `main`. - Release microbenchmark, `cargo test --release -p xcl --lib console_list_frame_speed -- --ignored --nocapture`. It models one recording per frame (Reset, a heaps record, then 64 dispatches each with a pipeline, 12 root constants, two root descriptors and two transitions, then Close reading the words). Before: the old chunk allocation, a Vec per record and the copy-out. After: the list's own code, including the `LISTS` lock the old path skipped in the bench. ``` console list frame (64 dispatches): as it was 36267 ns, now 3468 ns (10.5x) console list frame (64 dispatches): as it was 39105 ns, now 3601 ns (10.9x) console list frame (64 dispatches): as it was 42840 ns, now 6905 ns (6.2x) ``` **Regression run** `scripts/smoke.ps1 -Seconds 45`, one run each, under a 1 s free-RAM watchdog (`FreePhysicalMemory` below 3.5 GB; it never fired), one game instance at a time. First `origin/main` (47efa2e, a later commit of main than this PR's base), then this PR's head: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: AMD Radeon RX 6800 title: retail-title-1.0.2.1 seconds: 45 exit: 0x0 frames shown: 954 (PresentX 954) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15118 MB ``` ``` xcl-smoke v1 commit: b66109575bfe87d9d52e7fa88fa19930f92650d7 gpu: AMD Radeon RX 6800 title: retail-title-1.0.2.1 seconds: 45 exit: 0x0 frames shown: 1012 (PresentX 1013) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15096 MB ``` These are single runs, and frame counts vary a lot from run to run on this machine (other builds are often compiling on it): an earlier run of `main` (2997c9a) gave 692 frames, and an earlier run of an earlier head of this PR gave 835. I don't claim this change caused the difference in frame counts. The point of these runs is that nothing regressed: no device removal, no crash, and the same peak commit (15096 MB against 15118 MB). **Not tested** - NVIDIA and Intel GPUs, and RDNA4. - How many console lists the title resets per frame, and how many bytes each records. I have no count from the retail run, so the per-frame saving in that title is not measured. The microbenchmark measures only the record path. - `close` with a real PC list in a unit test. The replay loop is unchanged apart from reading the words in place; the smoke run exercises it. **AI use** - Claude Code with Claude Opus 5.5: found the hot path, wrote the change, the tests and the benchmark, and ran the builds, tests and smoke runs. I reviewed the diff. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
towiice commented 2026-11-24 01:12:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by towiice on 2026-11-24T01:12:33Z.

Review: COMMENTED


Tested PR head 26d98b6 on NVIDIA GeForce GTX 1650 SUPER (Turing / TU116, driver 610.88), Windows 11 build 10.0.26300 (26H2), Rust 1.100.0 (stable-x86_64-pc-windows-gnullvm), DXC v1.9.2609:

  • cargo test -p xcl --lib record -- --test-threads=4: 6 passed, 0 failed (including hle::d3d12x::console_list::tests::methods_record_the_same_words).
  • cargo test -p xcl --lib reset -- --test-threads=4: 7 passed, 0 failed (including hle::d3d12x::console_list::tests::a_reset_reuses_the_first_chunk_zeroed).

Builds and passes cleanly on Turing / gnullvm.

<!-- greyfinch-sync:ivall/xcl:review:6032123312 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/510#pullrequestreview-6032123312). Originally posted by [towiice](https://github.com/towiice) on 2026-11-24T01:12:33Z. **Review:** COMMENTED --- Tested PR head `26d98b6` on **NVIDIA GeForce GTX 1650 SUPER** (Turing / TU116, driver 610.88), Windows 11 build 10.0.26300 (26H2), Rust 1.100.0 (`stable-x86_64-pc-windows-gnullvm`), DXC `v1.9.2609`: - `cargo test -p xcl --lib record -- --test-threads=4`: **6 passed, 0 failed** (including `hle::d3d12x::console_list::tests::methods_record_the_same_words`). - `cargo test -p xcl --lib reset -- --test-threads=4`: **7 passed, 0 failed** (including `hle::d3d12x::console_list::tests::a_reset_reuses_the_first_chunk_zeroed`). Builds and passes cleanly on Turing / `gnullvm`.
shdann commented 2026-11-24 01:12:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by shdann on 2026-11-24T01:12:34Z.

Review: COMMENTED


At console_list.rs:501 and :506, the new from_raw_parts calls require a non-null pointer even for a zero-length slice. The old loops did not read either pointer when n was zero. A call with zero entries and a null array can now cause undefined behavior. Use an empty slice for zero entries and preserve the existing record header. Please test both zero-count paths. Static review with OpenAI Codex (GPT-6.2 Sol).

<!-- greyfinch-sync:ivall/xcl:review:6032123540 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/510#pullrequestreview-6032123540). Originally posted by [shdann](https://github.com/shdann) on 2026-11-24T01:12:34Z. **Review:** COMMENTED --- At console_list.rs:501 and :506, the new from_raw_parts calls require a non-null pointer even for a zero-length slice. The old loops did not read either pointer when n was zero. A call with zero entries and a null array can now cause undefined behavior. Use an empty slice for zero entries and preserve the existing record header. Please test both zero-count paths. Static review with OpenAI Codex (GPT-6.2 Sol).
Alpha325 commented 2026-11-24 07:05:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Alpha325 on 2026-11-24T01:23:12Z.


Independent release-build check on clean PR head 26d98b66bc30f978c1b30b72ca862065629bcb05, using a Ryzen 5 7600X3D, Windows 11 build 26200.9974, and Rust 1.100.0 MSVC x64.

cargo test --offline --locked --release -j 4 -p xcl --lib console_list -- --test-threads=1 --nocapture

7 passed, 0 failed, 1 ignored. The recording-format and chunk-reuse tests both passed. The ignored test was the benchmark, which I ran separately five times.

In the PR's CPU benchmark (64 dispatches per recording), the modeled old path took 22.06–23.54 µs per recording and the new path took 2.01–2.21 µs, a 10.3–11.7× speedup across the five runs. This measures CPU recording overhead only. I did not measure GPU execution or frame rate. These tests also did not cover the zero-count paths raised in review.

AI use: OpenAI Codex (GPT-6.2 Sol) ran the tests and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7119048570 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/510#issuecomment-7119048570). Originally posted by [Alpha325](https://github.com/Alpha325) on 2026-11-24T01:23:12Z. --- Independent release-build check on clean PR head `26d98b66bc30f978c1b30b72ca862065629bcb05`, using a Ryzen 5 7600X3D, Windows 11 build `26200.9974`, and Rust 1.100.0 MSVC x64. `cargo test --offline --locked --release -j 4 -p xcl --lib console_list -- --test-threads=1 --nocapture` **7 passed, 0 failed, 1 ignored.** The recording-format and chunk-reuse tests both passed. The ignored test was the benchmark, which I ran separately five times. In the PR's CPU benchmark (64 dispatches per recording), the modeled old path took **22.06–23.54 µs** per recording and the new path took **2.01–2.21 µs**, a **10.3–11.7×** speedup across the five runs. This measures CPU recording overhead only. I did not measure GPU execution or frame rate. These tests also did not cover the zero-count paths raised in review. **AI use:** OpenAI Codex (GPT-6.2 Sol) ran the tests and drafted this report.
H0UNDZER0 commented 2026-11-24 07:05:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by H0UNDZER0 on 2026-11-24T02:14:37Z.


Tested on an RTX 5080: pass, 678 passed, 0 failed. This adds the whole suite to the partial runs above (the record, reset and console_list tests).

  • Commit 26d98b66bc30f978c1b30b72ca862065629bcb05, this PR's head as is (on its base 2997c9a), release build.
  • NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124), 32-lane waves; Ryzen 7 9700X; Windows 11 Pro 24H2 (26100.9711); Rust 1.100.0 MSVC; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). No XCL_* variables set.
  • cargo build --release --workspace --locked: OK, the same single fetch_update warning as main.
  • cargo test --workspace --release --no-fail-fast --locked -- --test-threads=4, run twice (the second with --show-output): 678 passed, 0 failed, 42 ignored both times. main 2997c9a gives 676 / 0 / 41 on this PC: the difference is this PR's 2 new tests and its ignored benchmark.
  • SKIPPED: the usual 2, gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64).
  • methods_record_the_same_words and a_reset_reuses_the_first_chunk_zeroed pass, with the other console_list tests. The test title (e2e) ends with failures: 0.

Not tested

  • This PR merged onto a newer main. At the time of the run that was 508a0c7; git merge-tree showed no conflict.
  • The benchmark, debug build, retail titles, scripts/smoke.ps1.

AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2)

<!-- greyfinch-sync:ivall/xcl:comment:7119912388 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/510#issuecomment-7119912388). Originally posted by [H0UNDZER0](https://github.com/H0UNDZER0) on 2026-11-24T02:14:37Z. --- **Tested** on an RTX 5080: **pass**, 678 passed, 0 failed. This adds the whole suite to the partial runs above (the `record`, `reset` and `console_list` tests). - Commit `26d98b66bc30f978c1b30b72ca862065629bcb05`, this PR's head as is (on its base `2997c9a`), release build. - NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124), 32-lane waves; Ryzen 7 9700X; Windows 11 Pro 24H2 (26100.9711); Rust 1.100.0 MSVC; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). No `XCL_*` variables set. - `cargo build --release --workspace --locked`: OK, the same single `fetch_update` warning as `main`. - `cargo test --workspace --release --no-fail-fast --locked -- --test-threads=4`, run twice (the second with `--show-output`): **678 passed, 0 failed, 42 ignored** both times. `main` `2997c9a` gives 676 / 0 / 41 on this PC: the difference is this PR's 2 new tests and its ignored benchmark. - `SKIPPED`: the usual 2, `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64). - `methods_record_the_same_words` and `a_reset_reuses_the_first_chunk_zeroed` pass, with the other `console_list` tests. The test title (`e2e`) ends with `failures: 0`. **Not tested** - This PR merged onto a newer `main`. At the time of the run that was `508a0c7`; `git merge-tree` showed no conflict. - The benchmark, debug build, retail titles, `scripts/smoke.ps1`. **AI use:** Claude Code (Claude Opus 5.5, Claude Fable 5.2)
TG0000 commented 2026-11-24 11:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by TG0000 on 2026-11-24T10:22:49Z.


Thanks @shdann, good catch. SetDescriptorHeaps and ResourceBarrier now go through a small counted helper that returns an empty slice for a zero count, so the null array is never read, and the record header is written as before. New test a_call_with_no_entries_records_its_header_for_a_null_array calls both (and SetRootConstants) with zero entries and a null array; with the guard removed it aborts on the from_raw_parts precondition check.

I also rebased onto the current main (one conflict in console_list.rs, with the new IO_UMA_BASE_HI line). New head b661095; cargo test -p xcl --lib console_list: 8 passed, 0 failed, 1 ignored. The full lib run shows the same 3 failures as a clean main on my GPU (title_textures x2, vram::d32s8_targets...), unrelated to this change.

AI-assisted (Claude Sonnet 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7128697516 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/510#issuecomment-7128697516). Originally posted by [TG0000](https://github.com/TG0000) on 2026-11-24T10:22:49Z. --- Thanks @shdann, good catch. `SetDescriptorHeaps` and `ResourceBarrier` now go through a small `counted` helper that returns an empty slice for a zero count, so the null array is never read, and the record header is written as before. New test `a_call_with_no_entries_records_its_header_for_a_null_array` calls both (and `SetRootConstants`) with zero entries and a null array; with the guard removed it aborts on the `from_raw_parts` precondition check. I also rebased onto the current `main` (one conflict in `console_list.rs`, with the new `IO_UMA_BASE_HI` line). New head `b661095`; `cargo test -p xcl --lib console_list`: 8 passed, 0 failed, 1 ignored. The full lib run shows the same 3 failures as a clean `main` on my GPU (`title_textures` x2, `vram::d32s8_targets...`), unrelated to this change. AI-assisted (Claude Sonnet 5.5).
Toons29 commented 2026-11-25 03:05:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T02:56:51Z.


Regression run of 88f16482 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 88f16482a31d0eafffe2207b64e9f99115552e8b
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1632 (PresentX 1632)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14811 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7151399882 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/510#issuecomment-7151399882). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T02:56:51Z. --- Regression run of `88f16482` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 88f16482a31d0eafffe2207b64e9f99115552e8b gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1632 (PresentX 1632) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14811 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
DavidM1911 commented 2026-11-25 14:10:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:53:41Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7164444952 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/510#issuecomment-7164444952). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T13:53:41Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
github-actions[bot] commented 2026-11-29 20:41:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:41:35Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262282626 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/510#issuecomment-7262282626). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:41:35Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:37:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:37:38Z.


Triage (#1607) – head 88f1648

No open or merged PR makes the same change. On main, cl_reset still runs st.chunks.clear(), and close still copies the chunks into a Vec<Vec<u32>>. #806 (oversized records) and #1477 / #1558 / #3315 (null-pointer guards) touch nearby code in console_list.rs but make different changes.
The second commit fixes UB that the first commit introduces (from_raw_parts with a null array). Main's loops never read the pointer when the count is zero. Consider squashing the two commits.
console_list_frame_speed is an #[ignore] benchmark, not a skipped check. The failing check is only PR description.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7299900748 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/510#issuecomment-7299900748). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:37:38Z. --- **Triage (#1607)** – head 88f1648 No open or merged PR makes the same change. On main, `cl_reset` still runs `st.chunks.clear()`, and `close` still copies the chunks into a `Vec<Vec<u32>>`. #806 (oversized records) and #1477 / #1558 / #3315 (null-pointer guards) touch nearby code in `console_list.rs` but make different changes. The second commit fixes UB that the first commit introduces (`from_raw_parts` with a null array). Main's loops never read the pointer when the count is zero. Consider squashing the two commits. `console_list_frame_speed` is an `#[ignore]` benchmark, not a skipped check. The failing check is only `PR description`. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/510:upstream-pr/510'
git switch 'upstream-pr/510'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/510'
git switch 'upstream-pr/510'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/510'
git switch 'upstream-pr/510'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/510'
git switch 'main'
git merge --squash 'upstream-pr/510'
git switch 'main'
git merge --ff-only 'upstream-pr/510'
git switch 'main'
git merge 'upstream-pr/510'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
xcl-dev/xcl!505
No description provided.