d3d12-gpu: in_shader_heap takes no empty range and does not overflow #3045

Merged
Kal0s-design merged 1 commit from upstream-pr/3045 into main 2026-12-02 13:43:26 +00:00
Kal0s-design commented 2026-12-02 05:02:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T05:02:51Z.


Claimed in the coordination issue as: D3D12-GPU-IN-SHADER-HEAP-EMPTY-RANGE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7278305873)

What and why

in_shader_heap(at, len) in d3d12/crates/leonida-gpu/src/descriptor.rs tests from < end && start < to. With len == 0 and at inside a placed shader-visible heap, from == to and both sides still hold, so a copy that writes no bytes counted as touching the heap, and the copy and placed-copy steps asked port_journal for a round for nothing. at + len was also added unchecked.

The change: a zero-length range touches no heap, and the end uses saturating_add.

This ports ahmetbagci's fix from the sibling VIctory tree (TaynanGT/Vice-Tay 0f102de, GPL-3.0), credited as co-author.

Tested

  • New test descriptor::tests::in_shader_heap_takes_no_empty_range_and_does_not_overflow: places a shader-visible view heap over a buffer, then checks a 32-byte range inside is in, a zero-length range inside or at its start is not, a range to the top of memory is in, and (usize::MAX, 1) is not. With main's logic (8422def75) it fails at the "no bytes copied" assert; with the change it passes.
  • cargo test -p leonida-gpu --lib: 669 passed, 0 failed, 59 ignored.
  • cargo clippy -p leonida-gpu --lib --tests: no warning in the changed lines.
  • Windows only, unit tests; the title wasn't run.

GPUs tested: n/a (CPU unit tests)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5600196141 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3045). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T05:02:51Z. --- Claimed in the coordination issue as: D3D12-GPU-IN-SHADER-HEAP-EMPTY-RANGE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7278305873) ### What and why `in_shader_heap(at, len)` in `d3d12/crates/leonida-gpu/src/descriptor.rs` tests `from < end && start < to`. With `len == 0` and `at` inside a placed shader-visible heap, `from == to` and both sides still hold, so a copy that writes no bytes counted as touching the heap, and the copy and placed-copy steps asked `port_journal` for a round for nothing. `at + len` was also added unchecked. The change: a zero-length range touches no heap, and the end uses `saturating_add`. This ports ahmetbagci's fix from the sibling VIctory tree (TaynanGT/Vice-Tay `0f102de`, GPL-3.0), credited as co-author. ### Tested - New test `descriptor::tests::in_shader_heap_takes_no_empty_range_and_does_not_overflow`: places a shader-visible view heap over a buffer, then checks a 32-byte range inside is in, a zero-length range inside or at its start is not, a range to the top of memory is in, and `(usize::MAX, 1)` is not. **With `main`'s logic (`8422def75`) it fails** at the "no bytes copied" assert; with the change it passes. - `cargo test -p leonida-gpu --lib`: 669 passed, 0 failed, 59 ignored. - `cargo clippy -p leonida-gpu --lib --tests`: no warning in the changed lines. - Windows only, unit tests; the title wasn't run. GPUs tested: n/a (CPU unit tests) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lixonik commented 2026-12-02 07:18:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T07:18:01Z.


Independent verification on Windows 10 Pro 22H2 (build 19045), NVIDIA GeForce RTX 5070 12 GB (driver 621.40), MSVC toolchain (1.98.1). Head cb30a595a merged cleanly onto main (f37c4a87d).

  • python -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/descriptor.rs: PASS.
  • cargo test -p leonida-gpu --locked --lib in_shader_heap_takes_no_empty_range_and_does_not_overflow: 1 passed, 0 failed.
  • cargo test -p leonida-gpu --locked --lib -- --skip depth_bounds_pipeline_loads_and_filters_draws: 668 passed, 0 failed, 59 ignored.
  • cargo clippy -p leonida-gpu --locked --lib --tests: clean (0 new warnings).
  • Source check: in_shader_heap (descriptor.rs:345-351) cleanly guards len == 0 -> false and computes to with saturating_add.

Verdict: PASS (unit tests & source review; title not run).

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7338014988 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3045#issuecomment-7338014988). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T07:18:01Z. --- Independent verification on Windows 10 Pro 22H2 (build 19045), NVIDIA GeForce RTX 5070 12 GB (driver `621.40`), MSVC toolchain (`1.98.1`). Head `cb30a595a` merged cleanly onto `main` (`f37c4a87d`). - `python -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/descriptor.rs`: PASS. - `cargo test -p leonida-gpu --locked --lib in_shader_heap_takes_no_empty_range_and_does_not_overflow`: **1 passed, 0 failed**. - `cargo test -p leonida-gpu --locked --lib -- --skip depth_bounds_pipeline_loads_and_filters_draws`: **668 passed, 0 failed, 59 ignored**. - `cargo clippy -p leonida-gpu --locked --lib --tests`: clean (0 new warnings). - Source check: `in_shader_heap` (`descriptor.rs:345-351`) cleanly guards `len == 0` -> `false` and computes `to` with `saturating_add`. **Verdict: PASS** (unit tests & source review; title not run). AI-assisted: yes (Antigravity).
imShangLi commented 2026-12-02 07:56:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-02T07:56:25Z.


VERIFY-3045 — Linux, Fedora 45, Rust 1.98.1, cross-compiled for x86_64-pc-windows-gnu, Wine 11.21, no GPU device, no game files

Verdict: PASS. The change fixes a real wrong answer and a real overflow in in_shader_heap, the fix is at the root cause (the empty range and the addition), it is minimal and in the style of the file, and the new test fails on the merge base with exactly the message the fix is about and passes with the pull request. Nothing regressed: 728 tests on each side, 0 regressions, the only three failures are the same three watch tests that fail on the base as well.

head cb30a595ababbbb14d4fd2e2f8a65ed8127e5960 ("d3d12-gpu: in_shader_heap takes no empty range and does not overflow"), base origin/main = 0ae5a2664b9cd2fd30abfb1f6096f1c07b030f39, merge base 8422def759cda12c89f918438eeb8d53dd5972a6 (4 commits behind main). One file, +25/−1: d3d12/crates/leonida-gpu/src/descriptor.rs.

1. What it changes

descriptor::in_shader_heap(at: usize, len: usize) -> bool answers "does [at, at + len) touch the title memory of a placed shader-visible heap of descriptors". It is called from two places, both of which use the answer to decide whether to ask the journal for a round:

  • host.rs:9781 — a deferred Step::Copy into a heap's records ("Renderer port #7: into a heap's records, the rounds asked earlier did not see it") → crate::port_journal::prep_wrote().
  • host.rs:9814 — the same for a deferred Step::Placed.

The old body was

let (from, to) = (at as u64, at as u64 + len as u64);
SHADER_HEAPS.read()...iter().any(|&(start, end, _)| from < end && start < to)

and the new body is

// A copy of no bytes touches no heap, wherever it starts.
if len == 0 {
    return false;
}
let (from, to) = (at as u64, (at as u64).saturating_add(len as u64));

Two defects, both fixed at the source:

  1. An empty range was reported as touching a heap. With len == 0, from == to, so from < end && start < to is true for every heap that contains at — the answer was "yes" for a copy of no bytes, and the caller asked the journal for a round it did not need. The fix makes len == 0 answer "no" before the heap list is consulted at all, so the empty case no longer depends on the heap list at all.
  2. at as u64 + len as u64 could overflow. At the top of memory the addition overflows: in a debug build it panics ("attempt to add with overflow"), and in a release build it wraps, so to becomes a small number and the range test answers something unrelated to the range asked about. saturating_add makes the end of the range the top of memory instead, which is the truthful answer for a range that runs past it.

2. The new test checks the property that matters

descriptor::tests::in_shader_heap_takes_no_empty_range_and_does_not_overflow (the PR's only new test) is the property the caller depends on, not an implementation detail:

  • It places a real shader-visible descriptor heap over a CPU buffer (create(desc, Placement { address, size }, &mut h) — the crate's own placement bookkeeping, create_heap with a null device, no GPU and no game files needed), and then asks five questions:

    • in_shader_heap(address + 32, 32) → true: a real copy into the heap is still recognised (the fix did not break the positive case).
    • in_shader_heap(address + 32, 0) → false: "no bytes copied" — the empty copy does not touch the heap.
    • in_shader_heap(address, 0) → false: "no bytes copied, at its start" — the empty copy is refused even when it starts exactly at the heap's first byte (the case where the old from == to test was true).
    • in_shader_heap(address + 32, usize::MAX) → true: a length that runs to the top of memory still hits the heap (the saturating add).
    • in_shader_heap(usize::MAX, 1) → false: a range that starts at the top of memory touches no heap (the old code overflowed here).
  • The test body really runs here; it is not a no-op that reports "ok" because there is no device. The heap is placed in ordinary host memory over a Vec, so no device is needed, and I confirmed the failure on the red side is an assertion failure inside the test, not a skip: the red side prints

    thread 'descriptor::tests::in_shader_heap_takes_no_empty_range_and_does_not_overflow' panicked at crates/leonida-gpu/src/descriptor.rs:3807:9:
    no bytes copied
    

    (line 3807 on the red side = line 3811 on the green side, where the four added lines of the fix shift it), i.e. the second assertion, !in_shader_heap(address + 32, 0), is reached and fails. The old code answered "true" for the empty range, exactly as analysed above.

  • The test discriminates the two defects separately. Assertions 2 and 3 are the empty-range defect; assertions 4 and 5 are the overflow defect (the old code panics with "attempt to add with overflow" at at == usize::MAX, so on the base the test cannot even get past the fifth assertion).

3. What the tests do here

I cross-compiled the crate for x86_64-pc-windows-gnu and ran the test binaries under Wine with python3 tools/wine_red_green.py 3045 --crate leonida-gpu (run from /home/shangli/oc-workspace/gta6), which builds the red side the way scripts/red_green.py does (merge base + only the PR's test hunks) and the green side from the PR head, then runs every test binary of the crate under Wine and compares per-test outcomes.

side commit tests new test regressions
red 916f84bd0a3a (merge base 8422def7 + the PR's test hunks) 728 FAILED — "no bytes copied" at descriptor.rs:3807 —
green cb30a595 (PR head) 728 ok 0

The tool's verdict: "red then green" — 1 red→green (the new test), 0 regressions, 3 failing on both sides, 665 passing on both sides, no test present on one side only.

To be sure the red side really had the fix missing (and not, say, a stale binary), I also built the red side alone and ran the new test by name under Wine (lane/red_3045.log): the test binary reported 1 failed; 727 filtered out with the panic above.

4. Any failure I saw and why it is not this PR

  • Three watch tests fail on both sides, on the merge base as well as on the head: watch::many_askers_tests::holes_are_known_until_the_runtime_tells, watch::many_askers_tests::no_mapping_is_lost_between_askers, watch::tests::what_is_left_alone_is_no_known_hole. They are in watch.rs, which this pull request does not touch at all, and they fail identically with the pull request reverted (measured 6/6 failures per side on the base of PR #3046, which has the same merge base). They are environment failures of the guard-page/exception machinery of watch under Wine without a real GPU, not a property of this change.
  • A one-line observation about the test's own hygiene (not a defect of the change): the test registers the placed heap in the process-global descriptor::SHADER_HEAPS and only removes it with release(h) after the last assertion. If an assertion fails, the heap entry is left behind for the rest of the test process. On the green side the test passes, so this never happens there; on a red build the stale entry would point at freed memory. Nothing else in the crate's tests asks in_shader_heap, so no other test is affected, and it does not change the verdict.

5. What I did not check

  • No GPU, no game files, no title: the whole point of in_shader_heap is a runtime decision made while the title's copies are deferred. I could not check that a real copy into a real shader-visible heap still asks the journal for a round, nor that an empty copy no longer does; the test only exercises the bookkeeping function over host memory.
  • No Windows build, no MSVC: everything here is cargo test --target x86_64-pc-windows-gnu under Wine 11.21 on Fedora 45. The #[cfg(windows)] code path was taken (the crate does not compile for Linux), but the ABI/exception behaviour of a real Windows build is not exercised.
  • Release builds: the overflow in the old code panics in a debug build and wraps in a release build. I only ran the debug build (what cargo test produces); I did not check the release behaviour of the old code, so the "wraps to a wrong answer" half of my analysis of defect 2 is reasoning from the code, not something I measured.
  • The at + len addition at the call sites: host.rs:9781/host.rs:9814 compute their own dst/len; I read the two call sites but did not trace every producer of a Step::Copy/Step::Placed length, so I did not check whether a zero-length or overflowing step can actually reach in_shader_heap in the running title.
  • The attribution in the test's doc comment ("After ahmetbagci's fix in TaynanGT/Vice-Tay (0f102de)") — I did not fetch that repository or commit and cannot confirm the attribution.
  • The other two crates of the workspace (leonida-hle, leonida-loader) and the repository's own Python test suite were not run; only leonida-gpu was, because the change is confined to it.
  • The PR's GitHub discussion (comments, review threads, the coordination issue) was not read: I was asked not to touch GitHub.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7338801014 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3045#issuecomment-7338801014). Originally posted by [imShangLi](https://github.com/imShangLi) on 2026-12-02T07:56:25Z. --- ## VERIFY-3045 — Linux, Fedora 45, Rust 1.98.1, cross-compiled for x86_64-pc-windows-gnu, Wine 11.21, no GPU device, no game files **Verdict: PASS.** The change fixes a real wrong answer and a real overflow in `in_shader_heap`, the fix is at the root cause (the empty range and the addition), it is minimal and in the style of the file, and the new test fails on the merge base with exactly the message the fix is about and passes with the pull request. Nothing regressed: 728 tests on each side, 0 regressions, the only three failures are the same three `watch` tests that fail on the base as well. head `cb30a595ababbbb14d4fd2e2f8a65ed8127e5960` ("d3d12-gpu: in_shader_heap takes no empty range and does not overflow"), base `origin/main` = `0ae5a2664b9cd2fd30abfb1f6096f1c07b030f39`, merge base `8422def759cda12c89f918438eeb8d53dd5972a6` (4 commits behind `main`). One file, +25/−1: `d3d12/crates/leonida-gpu/src/descriptor.rs`. ### 1. What it changes `descriptor::in_shader_heap(at: usize, len: usize) -> bool` answers "does `[at, at + len)` touch the title memory of a placed shader-visible heap of descriptors". It is called from two places, both of which use the answer to decide whether to ask the journal for a round: - `host.rs:9781` — a deferred `Step::Copy` into a heap's records ("Renderer port #7: into a heap's records, the rounds asked earlier did not see it") → `crate::port_journal::prep_wrote()`. - `host.rs:9814` — the same for a deferred `Step::Placed`. The old body was ```rust let (from, to) = (at as u64, at as u64 + len as u64); SHADER_HEAPS.read()...iter().any(|&(start, end, _)| from < end && start < to) ``` and the new body is ```rust // A copy of no bytes touches no heap, wherever it starts. if len == 0 { return false; } let (from, to) = (at as u64, (at as u64).saturating_add(len as u64)); ``` Two defects, both fixed at the source: 1. **An empty range was reported as touching a heap.** With `len == 0`, `from == to`, so `from < end && start < to` is true for every heap that contains `at` — the answer was "yes" for a copy of no bytes, and the caller asked the journal for a round it did not need. The fix makes `len == 0` answer "no" before the heap list is consulted at all, so the empty case no longer depends on the heap list at all. 2. **`at as u64 + len as u64` could overflow.** At the top of memory the addition overflows: in a debug build it panics ("attempt to add with overflow"), and in a release build it wraps, so `to` becomes a small number and the range test answers something unrelated to the range asked about. `saturating_add` makes the end of the range the top of memory instead, which is the truthful answer for a range that runs past it. ### 2. The new test checks the property that matters `descriptor::tests::in_shader_heap_takes_no_empty_range_and_does_not_overflow` (the PR's only new test) is the property the caller depends on, not an implementation detail: - It places a real shader-visible descriptor heap over a CPU buffer (`create(desc, Placement { address, size }, &mut h)` — the crate's own placement bookkeeping, `create_heap` with a null device, **no GPU and no game files needed**), and then asks five questions: - `in_shader_heap(address + 32, 32)` → **true**: a real copy into the heap is still recognised (the fix did not break the positive case). - `in_shader_heap(address + 32, 0)` → **false**: "no bytes copied" — the empty copy does not touch the heap. - `in_shader_heap(address, 0)` → **false**: "no bytes copied, at its start" — the empty copy is refused even when it starts exactly at the heap's first byte (the case where the old `from == to` test was true). - `in_shader_heap(address + 32, usize::MAX)` → **true**: a length that runs to the top of memory still hits the heap (the saturating add). - `in_shader_heap(usize::MAX, 1)` → **false**: a range that starts at the top of memory touches no heap (the old code overflowed here). - **The test body really runs here; it is not a no-op that reports "ok" because there is no device.** The heap is placed in ordinary host memory over a `Vec`, so no device is needed, and I confirmed the failure on the red side is an assertion failure inside the test, not a skip: the red side prints ``` thread 'descriptor::tests::in_shader_heap_takes_no_empty_range_and_does_not_overflow' panicked at crates/leonida-gpu/src/descriptor.rs:3807:9: no bytes copied ``` (line 3807 on the red side = line 3811 on the green side, where the four added lines of the fix shift it), i.e. the second assertion, `!in_shader_heap(address + 32, 0)`, is reached and fails. The old code answered "true" for the empty range, exactly as analysed above. - **The test discriminates the two defects separately.** Assertions 2 and 3 are the empty-range defect; assertions 4 and 5 are the overflow defect (the old code panics with "attempt to add with overflow" at `at == usize::MAX`, so on the base the test cannot even get past the fifth assertion). ### 3. What the tests do here I cross-compiled the crate for `x86_64-pc-windows-gnu` and ran the test binaries under Wine with `python3 tools/wine_red_green.py 3045 --crate leonida-gpu` (run from `/home/shangli/oc-workspace/gta6`), which builds the red side the way `scripts/red_green.py` does (merge base + only the PR's test hunks) and the green side from the PR head, then runs every test binary of the crate under Wine and compares per-test outcomes. | side | commit | tests | new test | regressions | |---|---|---|---|---| | red | `916f84bd0a3a` (merge base `8422def7` + the PR's test hunks) | 728 | **FAILED** — "no bytes copied" at `descriptor.rs:3807` | — | | green | `cb30a595` (PR head) | 728 | **ok** | **0** | The tool's verdict: **"red then green"** — 1 red→green (the new test), 0 regressions, 3 failing on both sides, 665 passing on both sides, no test present on one side only. To be sure the red side really had the fix missing (and not, say, a stale binary), I also built the red side alone and ran the new test by name under Wine (`lane/red_3045.log`): the test binary reported `1 failed; 727 filtered out` with the panic above. ### 4. Any failure I saw and why it is not this PR - **Three `watch` tests fail on both sides, on the merge base as well as on the head**: `watch::many_askers_tests::holes_are_known_until_the_runtime_tells`, `watch::many_askers_tests::no_mapping_is_lost_between_askers`, `watch::tests::what_is_left_alone_is_no_known_hole`. They are in `watch.rs`, which this pull request does not touch at all, and they fail identically with the pull request reverted (measured 6/6 failures per side on the base of PR #3046, which has the same merge base). They are environment failures of the guard-page/exception machinery of `watch` under Wine without a real GPU, not a property of this change. - **A one-line observation about the test's own hygiene (not a defect of the change)**: the test registers the placed heap in the process-global `descriptor::SHADER_HEAPS` and only removes it with `release(h)` after the last assertion. If an assertion fails, the heap entry is left behind for the rest of the test process. On the green side the test passes, so this never happens there; on a red build the stale entry would point at freed memory. Nothing else in the crate's tests asks `in_shader_heap`, so no other test is affected, and it does not change the verdict. ### 5. What I did not check - **No GPU, no game files, no title**: the whole point of `in_shader_heap` is a runtime decision made while the title's copies are deferred. I could not check that a real copy into a real shader-visible heap still asks the journal for a round, nor that an empty copy no longer does; the test only exercises the bookkeeping function over host memory. - **No Windows build, no MSVC**: everything here is `cargo test --target x86_64-pc-windows-gnu` under Wine 11.21 on Fedora 45. The `#[cfg(windows)]` code path was taken (the crate does not compile for Linux), but the ABI/exception behaviour of a real Windows build is not exercised. - **Release builds**: the overflow in the old code panics in a debug build and wraps in a release build. I only ran the debug build (what `cargo test` produces); I did not check the release behaviour of the old code, so the "wraps to a wrong answer" half of my analysis of defect 2 is reasoning from the code, not something I measured. - **The `at + len` addition at the call sites**: `host.rs:9781`/`host.rs:9814` compute their own `dst`/`len`; I read the two call sites but did not trace every producer of a `Step::Copy`/`Step::Placed` length, so I did not check whether a zero-length or overflowing step can actually reach `in_shader_heap` in the running title. - **The attribution in the test's doc comment** ("After ahmetbagci's fix in TaynanGT/Vice-Tay (0f102de)") — I did not fetch that repository or commit and cannot confirm the attribution. - **The other two crates of the workspace** (`leonida-hle`, `leonida-loader`) and the repository's own Python test suite were not run; only `leonida-gpu` was, because the change is confined to it. - **The PR's GitHub discussion** (comments, review threads, the coordination issue) was not read: I was asked not to touch GitHub.
MoonEyes commented 2026-12-02 13:16:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T13:16:07Z.


RUN (in game, grouped): this head cb30a595a was merged with git merge --no-ff, together with nine other rendering pull requests, onto main f6dd2242e (no conflicts), and the d3d12 layer was rebuilt from that tree (diag profile, with DLSS). RTX 4060 8 GB, driver 610.88, Windows 11; scripts/play-d3d12.ps1 -SeriesS -Resolution 1080 -FrameGen 2, low-memory profile, keyboard-driven entry into the world and a walking route.

  • At least 381 s in the world (time limit 330 s, then the run script stopped the game): no device loss, no unhandled exception, no hang or GPU stall in the log.
  • Rendering 14.7 frames/s median over the last 240 s (a single earlier run with the same launcher options on a different tree: 15.2).
  • Limits: one run, grouped, so a failure would not have named one pull request; the picture was not checked; free RAM was about 1.2 GB during the run.

Heads in this run: #2854 81a6e94a9, #2936 68215ad0b, #2939 561bbc19c, #2997 ef429f923, #3043 915d4d5aa, #3045 cb30a595a, #3046 0f19a0819, #3047 c33e5b48e, #3048 2ab0b4b9d, #3051 856615ce7.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346608389 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3045#issuecomment-7346608389). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T13:16:07Z. --- RUN (in game, grouped): this head `cb30a595a` was merged with `git merge --no-ff`, together with nine other rendering pull requests, onto `main` `f6dd2242e` (no conflicts), and the d3d12 layer was rebuilt from that tree (diag profile, with DLSS). RTX 4060 8 GB, driver 610.88, Windows 11; `scripts/play-d3d12.ps1 -SeriesS -Resolution 1080 -FrameGen 2`, low-memory profile, keyboard-driven entry into the world and a walking route. - At least 381 s in the world (time limit 330 s, then the run script stopped the game): no device loss, no unhandled exception, no hang or GPU stall in the log. - Rendering 14.7 frames/s median over the last 240 s (a single earlier run with the same launcher options on a different tree: 15.2). - Limits: one run, grouped, so a failure would not have named one pull request; the picture was not checked; free RAM was about 1.2 GB during the run. Heads in this run: #2854 81a6e94a9, #2936 68215ad0b, #2939 561bbc19c, #2997 ef429f923, #3043 915d4d5aa, #3045 cb30a595a, #3046 0f19a0819, #3047 c33e5b48e, #3048 2ab0b4b9d, #3051 856615ce7. AI-assisted (Claude Code, Claude Opus 5.5)
MoonEyes commented 2026-12-02 13:21:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T13:21:06Z.


Merging. Head cb30a595a merges cleanly with main bf7886746 and does not force a rebase of #2566. Checked on head cb30a595a: all 6 CI checks green; third-party red/green by imShangLi on this head; an in-game run of at least 381 s with this head merged onto main f6dd2242e (grouped with nine other rendering pull requests, comment above) showed no device loss, no unhandled exception and no hang; item claimed in the coordination issue; author has earlier merged pull requests; conflict-free merge against main. Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346737887 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3045#issuecomment-7346737887). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T13:21:06Z. --- Merging. Head `cb30a595a` merges cleanly with `main` `bf7886746` and does not force a rebase of #2566. Checked on head cb30a595a: all 6 CI checks green; third-party red/green by imShangLi on this head; an in-game run of at least 381 s with this head merged onto main f6dd2242e (grouped with nine other rendering pull requests, comment above) showed no device loss, no unhandled exception and no hang; item claimed in the coordination issue; author has earlier merged pull requests; conflict-free merge against main. Merged by MoonEyes. AI-assisted (Claude Code).
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
ProjectLeonida/mandy!3045
No description provided.