d3d12-gpu: clear watch rest state on unmap/free and serialize standing-ask tests #2896

Open
lixonik wants to merge 3 commits from upstream-pr/2896 into main
lixonik commented 2026-12-01 16:23:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-01T16:23:10Z.


Claimed in the coordination issue as: D3D12-WATCH-OPENED-AND-STANDING-ASK (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7317195132)

What and why

Fixes two parallel unit-test races observed in leonida-gpu (watch::tests::what_is_put_in_beside_the_guards_is_told_at_every_view and watch::port7_tests::no_write_is_lost_with_port_7):

  1. Stale Guards::opened entries across unmap / remap / free (d3d12/crates/leonida-gpu/src/watch.rs):

    • title_memory_changed and title_memory_freed cleared protected, clean, absent, foreign, aliased, and PUBLISHED, but left Guards::opened intact. When a subsequent mapping reused a freed/unmapped virtual address within the rest window (or under another thread's REST_IN_TEST), Guards::rests kept the block open and skipped guarding, breaking published(...).
    • Added Guards::forget_opened(range) and called it in title_memory_changed and title_memory_freed (both len != 0 and len == 0 -- before the noted early-return so allocations whose blocks were already opened by write faults are still cleared).
    • Added unmapping_clears_opened_rest_state and freeing_whole_allocation_clears_opened_rest_state in watch::tests.
  2. Process-global JOURNAL standing-ask contention across parallel tests (watch.rs, d3d12/crates/leonida-gpu/src/host.rs):

    • host::refresh_tests::submission previously used a private static ONE mutex while host::refresh_tests::unchanged_ranges_are_known, watch::tests::the_rest_of_the_one_asking_has_a_number_of_its_own, and watch::port7_tests::askers_and_a_submission ran ask_once / ask_ahead / ask_rest / ask_once_end concurrently over the process-global JOURNAL.
    • Shared a single #[cfg(test)] watch::TEST_STANDING_ASK_LOCK across all four standing-ask test sites.

Tested

  • Red (without g.forget_opened in title_memory_changed):
    • cargo test --locked -p leonida-gpu --lib unmapping_clears_opened_rest_state -- --nocapture: 0 passed, 1 failed.
  • Green (at 992961be4):
    • cargo test --locked -p leonida-gpu --lib clears_opened_rest_state -- --nocapture: 2 passed, 0 failed.
    • cargo test --locked -p leonida-gpu --lib watch::: 10/10 consecutive parallel runs passed (55 passed, 0 failed, 4 ignored each).
    • cargo test --locked -p leonida-gpu --lib -- --skip depth_bounds_pipeline_loads_and_filters_draws: 10/10 consecutive parallel runs passed (631 passed) before adding freeing_whole_allocation_clears_opened_rest_state; after adding it, 2/3 parallel runs passed (632 passed), with run 3 hitting an unrelated pre-existing watch::tests::what_the_kernel_writes_through_is_not_guarded_for_another_view flake (assertion failed: left: Some([...]), right: Some([])).
    • cargo check --workspace --all-targets --locked: passed.
    • python -I scripts/check_no_game_data.py: clean.

GPUs tested: NVIDIA GeForce RTX 5070 12 GB (driver 621.40, Windows 10 Pro 22H2 build 19045, Ryzen 9 5950X 16C/32T)

AI-assisted: Antigravity (Gemini 4 Neon; separate read-only reviewer subagent: Antigravity Pro preset / Gemini Pro)

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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5589819320 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-01T16:23:10Z. --- Claimed in the coordination issue as: `D3D12-WATCH-OPENED-AND-STANDING-ASK` (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7317195132) ### What and why Fixes two parallel unit-test races observed in `leonida-gpu` (`watch::tests::what_is_put_in_beside_the_guards_is_told_at_every_view` and `watch::port7_tests::no_write_is_lost_with_port_7`): 1. **Stale `Guards::opened` entries across unmap / remap / free (`d3d12/crates/leonida-gpu/src/watch.rs`):** - `title_memory_changed` and `title_memory_freed` cleared `protected`, `clean`, `absent`, `foreign`, `aliased`, and `PUBLISHED`, but left `Guards::opened` intact. When a subsequent mapping reused a freed/unmapped virtual address within the rest window (or under another thread's `REST_IN_TEST`), `Guards::rests` kept the block open and skipped guarding, breaking `published(...)`. - Added `Guards::forget_opened(range)` and called it in `title_memory_changed` and `title_memory_freed` (both `len != 0` and `len == 0` -- before the `noted` early-return so allocations whose blocks were already opened by write faults are still cleared). - Added `unmapping_clears_opened_rest_state` and `freeing_whole_allocation_clears_opened_rest_state` in `watch::tests`. 2. **Process-global `JOURNAL` standing-ask contention across parallel tests (`watch.rs`, `d3d12/crates/leonida-gpu/src/host.rs`):** - `host::refresh_tests::submission` previously used a private `static ONE` mutex while `host::refresh_tests::unchanged_ranges_are_known`, `watch::tests::the_rest_of_the_one_asking_has_a_number_of_its_own`, and `watch::port7_tests::askers_and_a_submission` ran `ask_once` / `ask_ahead` / `ask_rest` / `ask_once_end` concurrently over the process-global `JOURNAL`. - Shared a single `#[cfg(test)]` `watch::TEST_STANDING_ASK_LOCK` across all four standing-ask test sites. ### Tested - **Red (without `g.forget_opened` in `title_memory_changed`):** - `cargo test --locked -p leonida-gpu --lib unmapping_clears_opened_rest_state -- --nocapture`: **0 passed, 1 failed**. - **Green (at `992961be4`):** - `cargo test --locked -p leonida-gpu --lib clears_opened_rest_state -- --nocapture`: **2 passed, 0 failed**. - `cargo test --locked -p leonida-gpu --lib watch::`: **10/10** consecutive parallel runs passed (**55 passed, 0 failed, 4 ignored** each). - `cargo test --locked -p leonida-gpu --lib -- --skip depth_bounds_pipeline_loads_and_filters_draws`: **10/10** consecutive parallel runs passed (**631 passed**) before adding `freeing_whole_allocation_clears_opened_rest_state`; after adding it, **2/3** parallel runs passed (**632 passed**), with run 3 hitting an unrelated pre-existing `watch::tests::what_the_kernel_writes_through_is_not_guarded_for_another_view` flake (`assertion failed: left: Some([...]), right: Some([])`). - `cargo check --workspace --all-targets --locked`: passed. - `python -I scripts/check_no_game_data.py`: clean. GPUs tested: NVIDIA GeForce RTX 5070 12 GB (driver 621.40, Windows 10 Pro 22H2 build 19045, Ryzen 9 5950X 16C/32T) AI-assisted: Antigravity (Gemini 4 Neon; separate read-only reviewer subagent: Antigravity Pro preset / Gemini Pro) ### 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.
KelboLive commented 2026-12-01 16:52:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T16:52:37Z.

Review: COMMENTED


Verified end to end: base never removes Guards::opened per range, guard_shared gates protection on rests (watch.rs:3183) and publish only lights bits for clean/held blocks (watch.rs:2056), so a stale entry really does silence published() and force the kernel ask. The cost is a needless ask per refresh plus the invariant violation — not a lost write — and the failing assertion is exactly published(two, …) (:6126). Both new guards are load-bearing: dropping forget_opened from title_memory_changed reds unmapping_clears_opened_rest_state, and dropping the len == 0 branch reds the freeing test. Merge-tree is clean against current main and the branch is only 4 commits behind, with both touched files byte-identical on main.

Three things worth fixing before merge:

  1. A surviving mutation: replacing forget_opened's body with opened.clear() still passes both tests, because they only assert the target block is gone and never that an unrelated block keeps its rest entry. A third view outside the unmapped/freed range would pin it.
  2. The len == 0 range at :4342 lacks the .max(first + 1) its neighbour forget_views uses (:4335), so a free at at == 0 or a non-allocation base clears nothing.
  3. The standing-ask lock is good hygiene but covers only the four askers; watch::tests::a_write_told_at_one_view_is_reported_at_the_others still failed 1 of 11 full-suite runs here. I could not reproduce the pre-fix port7/what_is_put_beside flakes at all (0/12, 0/15, 0/10 targeted runs on the branch parent), so that half is plausible but unproven on this machine.

CI note: the workspace command is red only on the ambient texture::alias_cast_tests::…legacy_barriers flake, which I also see on origin/main (1/4 full runs) — not this PR.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6135882794 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#pullrequestreview-6135882794). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T16:52:37Z. **Review:** COMMENTED --- Verified end to end: base never removes `Guards::opened` per range, `guard_shared` gates protection on `rests` (`watch.rs:3183`) and `publish` only lights bits for clean/held blocks (`watch.rs:2056`), so a stale entry really does silence `published()` and force the kernel ask. The cost is a needless ask per refresh plus the invariant violation — not a lost write — and the failing assertion is exactly `published(two, …)` (`:6126`). Both new guards are load-bearing: dropping `forget_opened` from `title_memory_changed` reds `unmapping_clears_opened_rest_state`, and dropping the `len == 0` branch reds the freeing test. Merge-tree is clean against current main and the branch is only 4 commits behind, with both touched files byte-identical on main. Three things worth fixing before merge: 1. **A surviving mutation**: replacing `forget_opened`'s body with `opened.clear()` still passes both tests, because they only assert the target block is gone and never that an unrelated block keeps its rest entry. A third view outside the unmapped/freed range would pin it. 2. **The `len == 0` range at `:4342` lacks the `.max(first + 1)`** its neighbour `forget_views` uses (`:4335`), so a free at `at == 0` or a non-allocation base clears nothing. 3. The standing-ask lock is good hygiene but covers only the four askers; `watch::tests::a_write_told_at_one_view_is_reported_at_the_others` still failed 1 of 11 full-suite runs here. I could not reproduce the pre-fix `port7`/`what_is_put_beside` flakes at all (0/12, 0/15, 0/10 targeted runs on the branch parent), so that half is plausible but unproven on this machine. CI note: the workspace command is red only on the ambient `texture::alias_cast_tests::…legacy_barriers` flake, which I also see on `origin/main` (1/4 full runs) — not this PR.
lixonik commented 2026-12-01 20:55:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-01T20:55:40Z.


@KelboLive Thanks for the mutation check and end-to-end review! Addressed both code items in c9c6b103d and merged origin/main so CI picks up the Python test fixes:

  1. Killed the opened.clear() mutation: both unmapping_clears_opened_rest_state and freeing_whole_allocation_clears_opened_rest_state now allocate a second block (other) outside the unmapped/freed range, mark it opened, and assert it keeps its rest entry after title_memory_unmapping / title_memory_freed (cleaning it up afterward).
  2. len == 0 range in title_memory_freed: matched neighbor forget_views with .max(first + 1) while guarding at != 0 so a non-allocation base still clears first and at == 0 does not spuriously clear block 0.

Re-verified unmapping_clears_opened_rest_state, freeing_whole_allocation_clears_opened_rest_state, 5/5 consecutive parallel runs of cargo test --locked -p leonida-gpu --lib watch:: (55 passed, 0 failed, 4 ignored each), and scripts/check_no_game_data.py.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7325482977 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7325482977). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-01T20:55:40Z. --- @KelboLive Thanks for the mutation check and end-to-end review! Addressed both code items in `c9c6b103d` and merged `origin/main` so CI picks up the Python test fixes: 1. **Killed the `opened.clear()` mutation:** both `unmapping_clears_opened_rest_state` and `freeing_whole_allocation_clears_opened_rest_state` now allocate a second block (`other`) outside the unmapped/freed range, mark it opened, and assert it keeps its rest entry after `title_memory_unmapping` / `title_memory_freed` (cleaning it up afterward). 2. **`len == 0` range in `title_memory_freed`:** matched neighbor `forget_views` with `.max(first + 1)` while guarding `at != 0` so a non-allocation base still clears `first` and `at == 0` does not spuriously clear block 0. Re-verified `unmapping_clears_opened_rest_state`, `freeing_whole_allocation_clears_opened_rest_state`, 5/5 consecutive parallel runs of `cargo test --locked -p leonida-gpu --lib watch::` (55 passed, 0 failed, 4 ignored each), and `scripts/check_no_game_data.py`.
EdenBendheim commented 2026-12-01 23:17:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-01T23:17:01Z.


Independent native Windows 11 + RTX 3090 verification (VERIFY-2896-RTX3090, claimed in #2570): PASS

  • Tested: PR head c9c6b103d merged cleanly onto main c4ca57615 (diagnostics,mimalloc, exe_sha16: 265c24dd72abe7bd).
  • Hardware / OS: Windows 11, AMD Ryzen 9 5900X, 32 GiB RAM, NVIDIA GeForce RTX 3090 24 GiB (driver 610.88).
  • Clean-room check: python -I scripts/check_no_game_data.py passed on host.rs and watch.rs.
  • Unit red/green (cargo test -p leonida-gpu --locked --lib -- clears_opened_rest_state --test-threads=1):
    • Baseline c4ca57615 with new tests: 0 passed, 2 failed (reproduced stale rest state after both unmapping and whole-allocation free).
    • Merged PR (default and --features diagnostics): 2 passed, 0 failed in both configurations.
  • Retail 300 s in-game gate (scripts/game-gate.ps1, Series X 1080–1440p, -NoFrameGen, gate_driver mode=roam, same free-roam template as main baseline):
    • Verdict: PASS (reasons=[], warnings=[], exit=clean, stop=target, cache_saved=true, GATE CONTROL fired with moved=1.72 m, max from_control_m=8.6 m, 0 GATE FAIL).
    • Metrics (world_s=302.7s, world+60s, 5,523 presents, 7,232 median draws): 22.92 FPS median, 19.19 FPS p5, 52.12 ms p95 frame time, 0.226 s longest present gap, 0 missed pipeline waits, 25,417 MB max private memory, 3,228 MB min commit left, 7,511 MB max VRAM (0 s over budget).
    • Reference main c4ca57615 roam-stress baseline (exe_sha16: 94748f45e468665a): PASS (300.9 s, 22.29 FPS median, 54.13 ms p95, 2.851 s longest gap, 7,450 median draws).
  • Code note (non-blocking): A zero-length free can now query allocation bounds whenever any opened block exists; no regression observed during the 300 s roaming run.

AI-assisted: yes (Gemini 4 Neon orchestrator; Codex GPT-6.2 Astra build, unit tests, and serialized RTX 3090 gate execution).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329153599 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7329153599). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-12-01T23:17:01Z. --- Independent native Windows 11 + RTX 3090 verification (**`VERIFY-2896-RTX3090`**, claimed in #2570): **PASS** - **Tested:** PR head `c9c6b103d` merged cleanly onto `main` `c4ca57615` (`diagnostics,mimalloc`, `exe_sha16`: `265c24dd72abe7bd`). - **Hardware / OS:** Windows 11, AMD Ryzen 9 5900X, 32 GiB RAM, NVIDIA GeForce RTX 3090 24 GiB (driver `610.88`). - **Clean-room check:** `python -I scripts/check_no_game_data.py` passed on `host.rs` and `watch.rs`. - **Unit red/green (`cargo test -p leonida-gpu --locked --lib -- clears_opened_rest_state --test-threads=1`):** - Baseline `c4ca57615` with new tests: **0 passed, 2 failed** (reproduced stale rest state after both unmapping and whole-allocation free). - Merged PR (default and `--features diagnostics`): **2 passed, 0 failed** in both configurations. - **Retail 300 s in-game gate (`scripts/game-gate.ps1`, Series X 1080–1440p, `-NoFrameGen`, `gate_driver` `mode=roam`, same free-roam template as `main` baseline):** - **Verdict:** **`PASS`** (`reasons=[]`, `warnings=[]`, `exit=clean`, `stop=target`, `cache_saved=true`, `GATE CONTROL` fired with `moved=1.72 m`, max `from_control_m=8.6 m`, `0` `GATE FAIL`). - **Metrics (`world_s=302.7s`, `world+60s`, 5,523 presents, 7,232 median draws):** `22.92 FPS` median, `19.19 FPS` p5, `52.12 ms` p95 frame time, `0.226 s` longest present gap, `0` missed pipeline waits, `25,417 MB` max private memory, `3,228 MB` min commit left, `7,511 MB` max VRAM (`0 s` over budget). - **Reference `main` `c4ca57615` roam-stress baseline (`exe_sha16`: `94748f45e468665a`):** `PASS` (`300.9 s`, `22.29 FPS` median, `54.13 ms` p95, `2.851 s` longest gap, `7,450` median draws). - **Code note (non-blocking):** A zero-length free can now query allocation bounds whenever any opened block exists; no regression observed during the 300 s roaming run. *AI-assisted: yes (Gemini 4 Neon orchestrator; Codex GPT-6.2 Astra build, unit tests, and serialized RTX 3090 gate execution).*
MoonEyes commented 2026-12-02 12:31:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:31:08Z.


This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).

Could you, or anyone with a working setup, post a run report on the current head merged onto current main:

  • the head SHA and the main SHA it was merged onto;
  • GPU, driver and OS;
  • at least 300 s in the world after loading;
  • device lost / crashes (count), and rendered fps (median) if you have them;
  • the same run on main alone for comparison, if you can.

Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345459948 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7345459948). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:31:08Z. --- This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists). Could you, or anyone with a working setup, post a run report on the **current head** merged onto current `main`: - the head SHA and the `main` SHA it was merged onto; - GPU, driver and OS; - at least 300 s in the world after loading; - device lost / crashes (count), and rendered fps (median) if you have them; - the same run on `main` alone for comparison, if you can. Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough. AI-assisted (Claude Code).
lixonik commented 2026-12-02 13:58:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T13:58:59Z.


RUN (in game): head c9c6b103d merged cleanly (git merge --no-ff) onto main bf7886746, built with cargo build --locked --profile diag -p leonida --features diagnostics,dlss,mimalloc, plus a matched main bf7886746 baseline run on the same save snapshot.

  • System: Windows 10 22H2, NVIDIA GeForce RTX 5070 12 GB, driver 621.40 (Series S profile, -NoFrameGen -NoPrecompile, standing in-world).
  • In-world duration (1,000+ draws/frame):
    • PR #2896 (c9c6b103d on bf7886746): 316.7 s (63 world frame lines)
    • main (bf7886746) baseline: 319.2 s (62 world frame lines)
  • Stability:
    • Device lost: 0 (both runs)
    • Crashes / unhandled exceptions / panics / ERROR lines: 0 (both runs)
  • Rendered FPS (tools/d3d12_run_fps.py):
Build World duration Median FPS (ms/frame) 3,000-4,999 draws FPS Preparing / copies / copy-back (ms) Median draws Device lost / crashes / errors
main (bf7886746) 319.2 s 26.6 fps (37.7 ms) 26.6 fps (n=56) 29.1 / 11.8 / 8.3 4,428 0 / 0 / 0
PR #2896 (c9c6b103d) 316.7 s 26.3 fps (38.1 ms) 26.3 fps (n=56) 29.5 / 12.2 / 8.5 4,385 0 / 0 / 0

Result: PASS.

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7347787390 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7347787390). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T13:58:59Z. --- RUN (in game): head `c9c6b103d` merged cleanly (`git merge --no-ff`) onto `main` `bf7886746`, built with `cargo build --locked --profile diag -p leonida --features diagnostics,dlss,mimalloc`, plus a matched `main` `bf7886746` baseline run on the same save snapshot. - **System:** Windows 10 22H2, NVIDIA GeForce RTX 5070 12 GB, driver `621.40` (Series S profile, `-NoFrameGen -NoPrecompile`, standing in-world). - **In-world duration (1,000+ draws/frame):** - PR `#2896` (`c9c6b103d` on `bf7886746`): **316.7 s** (63 world frame lines) - `main` (`bf7886746`) baseline: **319.2 s** (62 world frame lines) - **Stability:** - Device lost: **0** (both runs) - Crashes / unhandled exceptions / panics / `ERROR` lines: **0** (both runs) - **Rendered FPS (`tools/d3d12_run_fps.py`):** | Build | World duration | Median FPS (ms/frame) | 3,000-4,999 draws FPS | Preparing / copies / copy-back (ms) | Median draws | Device lost / crashes / errors | |---|---|---|---|---|---|---| | `main` (`bf7886746`) | 319.2 s | 26.6 fps (37.7 ms) | 26.6 fps (n=56) | 29.1 / 11.8 / 8.3 | 4,428 | 0 / 0 / 0 | | PR `#2896` (`c9c6b103d`) | 316.7 s | 26.3 fps (38.1 ms) | 26.3 fps (n=56) | 29.5 / 12.2 / 8.5 | 4,385 | 0 / 0 / 0 | Result: **PASS**. AI-assisted: yes (Antigravity).
KelboLive commented 2026-12-02 15:18:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-02T15:18:35Z.

Review: COMMENTED


Fresh evidence for this PR after the Dec 1–2 merges, on main 69cd4106c (which now contains #2854 and #2884):

  • Full suite, parallel: 30/30 consecutive fresh-process cargo test -p leonida-gpu --lib runs clean (696 passed, 59 ignored, ~11 s each). The pre-#2854 control (128648cfe) failed 7/20, all texture::alias_cast_tests::…under_legacy_barriers / pool::fresh (texture.rs:5664). So the dominant flake is fixed upstream.
  • Residual watch race: your branch applies cleanly (merge-tree 0) and with the full patch is 20/20 full-suite and 0/500 targeted watch:: runs. Main alone shows 5/384 (~1.3%) on what_is_left_alone_is_no_known_hole (watch.rs:5132).
  • Both halves are needed: with only forget_opened, 7/500 watch failures; with only TEST_STANDING_ASK_LOCK, 1/500 (residual many_askers_tests::no_mapping_is_lost_between_askers, watch.rs:6810); with both, 0/500.

So please land it as one change (do not split it), and keep CI parallel — #2923 never landed, so there is no serial step to revert. For any future serialization proposal, the bar should be 30/30 full-suite parallel + 500/500 watch:: + WARP runs, since this host is a hardware adapter and the original failure was WARP-specific.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6153696301 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#pullrequestreview-6153696301). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-02T15:18:35Z. **Review:** COMMENTED --- Fresh evidence for this PR after the Dec 1–2 merges, on `main` `69cd4106c` (which now contains #2854 and #2884): - **Full suite, parallel:** 30/30 consecutive fresh-process `cargo test -p leonida-gpu --lib` runs clean (696 passed, 59 ignored, ~11 s each). The pre-#2854 control (`128648cfe`) failed **7/20**, all `texture::alias_cast_tests::…under_legacy_barriers` / `pool::fresh` (`texture.rs:5664`). So the dominant flake is fixed upstream. - **Residual watch race:** your branch applies cleanly (`merge-tree` 0) and with the full patch is **20/20 full-suite** and **0/500** targeted `watch::` runs. Main alone shows **5/384** (~1.3%) on `what_is_left_alone_is_no_known_hole` (`watch.rs:5132`). - **Both halves are needed:** with only `forget_opened`, **7/500** watch failures; with only `TEST_STANDING_ASK_LOCK`, **1/500** (residual `many_askers_tests::no_mapping_is_lost_between_askers`, `watch.rs:6810`); with both, **0/500**. So please land it as one change (do not split it), and keep CI parallel — #2923 never landed, so there is no serial step to revert. For any future serialization proposal, the bar should be 30/30 full-suite parallel + 500/500 `watch::` + WARP runs, since this host is a hardware adapter and the original failure was WARP-specific.
Kal0s-design commented 2026-12-02 17:19:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T17:19:36Z.


Ran natively on Windows 11, head c9c6b103d merged into current main (3c106eb2f, clean merge).

This adds a WARP watch:: loop (the bar set above), a concurrent unmap/free stress test, and a measurement of the len == 0 cost noted above.

Measured on the merge

Check Result
clears_opened_rest_state (2 PR tests) 2 passed
Full cargo test -p leonida-gpu --lib --locked 698 passed, 0 failed, 59 ignored
cargo clippy -p leonida-gpu --all-targets --locked only the existing unused_mut in host.rs
watch:: only, --features diagnostics, LEONIDA_D3D12_WARP=1, parallel, 150 fresh-process runs each, PR and main side by side PR: 0 / 150 runs failed; main: 1 / 150 (watch::tests::what_is_taken_again_is_what_was_written, watch.rs:5933). Builds and the stress test below were running on the machine at the same time. 1 vs 0 does not separate the two builds on its own

Throwaway stress test (not pushed): unmap/free next to a standing asking

One thread holds the standing-ask lock and loops ask_once → wrote → ask_once_end over a write-watched region of its own. At the same time, 4 threads each run 400 rounds of:

  • two_views, then guard and fault on every other round;
  • opened(two), then title_memory_unmapping(two) and drop_views;
  • VirtualAlloc of 4 blocks, opened on the third block, title_memory_freed(p, 0), VirtualFree.

The rest window is 1 h. A 120 s receive timeout counts as a deadlock.

Build Runs Standing asks per run Stale rest after unmap Stale rest after free (len 0) Address reused by the next mapping, and stale there
PR merge 6 152k–195k 0 / 1600 each 0 / 1600 each 291–587 reused, 0 stale
main (same test, local lock stub) 3 160k–173k 1600 / 1600 1600 / 1600 283–404 reused, all stale

There was no deadlock or timeout in any run, and each run took 1.6–3.1 s. On main, every reused address took over the old block's rest entry. On the PR, none did.

Cost of the new len == 0 branch (title_memory_freed(p, 0), 300 calls, debug build). The allocation is built from N committed regions with reserved gaps between them:

Allocation main, opened empty / non-empty PR, opened empty / non-empty
1 region 645–738 / 673–783 µs 661–665 / 580–692 µs
256 regions 631–658 / 706–719 µs 601–670 / 912–949 µs

Two runs of each, debug build. This measures the non-blocking note above that a zero-length free can now query allocation bounds. Most of the about 650 µs per call is spent elsewhere in title_memory_freed. Against main in the same condition (another block opened, 256 regions: 706–719 µs), the PR adds about +190–240 µs per call. At 1 region there is no measurable difference. The added time is a VirtualQuery walk (allocation_end) under the exclusive GUARDS lock (reading). resolve_end caches its result, so when the views or memory-classes path earlier in the function has already resolved the end, the PR adds no second walk (reading, not measured).

Reading (not measured)

  • Lock order: opened is a leaf mutex. forget_opened, rests and Guards::opened only take it under GUARDS (write, or shared with port #6) and take no other lock inside it, so the new calls add no inversion.
  • In title_memory_freed, the is_empty() check and forget_opened lock opened separately. Both run under the GUARDS write lock, and the fault path also needs GUARDS to insert, so nothing can slip in between.
  • forget_opened rounds the range out to whole blocks, and BLOCK = PAGE = 64 KiB here. A decommit or free of len != 0 that is not 64 KiB-aligned also drops the rest entry of a live block at either end. The cost of that is an earlier re-guard (one more fault), not a lost write.

Not checked: an in-game run (one is posted above); a hardware-adapter watch:: loop (the loops above are WARP only); LEONIDA_GUARD_REST in a release build, where rest() is not the test value.

GPUs tested: one NVIDIA desktop card + WARP.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353186066 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7353186066). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T17:19:36Z. --- Ran natively on Windows 11, head `c9c6b103d` merged into current `main` (`3c106eb2f`, clean merge). This adds a WARP `watch::` loop (the bar set above), a concurrent unmap/free stress test, and a measurement of the `len == 0` cost noted above. **Measured on the merge** | Check | Result | |---|---| | `clears_opened_rest_state` (2 PR tests) | 2 passed | | Full `cargo test -p leonida-gpu --lib --locked` | 698 passed, 0 failed, 59 ignored | | `cargo clippy -p leonida-gpu --all-targets --locked` | only the existing `unused_mut` in `host.rs` | | `watch::` only, `--features diagnostics`, `LEONIDA_D3D12_WARP=1`, parallel, 150 fresh-process runs each, PR and `main` side by side | PR: **0 / 150** runs failed; `main`: **1 / 150** (`watch::tests::what_is_taken_again_is_what_was_written`, `watch.rs:5933`). Builds and the stress test below were running on the machine at the same time. 1 vs 0 does not separate the two builds on its own | **Throwaway stress test (not pushed): unmap/free next to a standing asking** One thread holds the standing-ask lock and loops `ask_once` → `wrote` → `ask_once_end` over a write-watched region of its own. At the same time, 4 threads each run 400 rounds of: - `two_views`, then guard and fault on every other round; - `opened(two)`, then `title_memory_unmapping(two)` and `drop_views`; - `VirtualAlloc` of 4 blocks, `opened` on the third block, `title_memory_freed(p, 0)`, `VirtualFree`. The rest window is 1 h. A 120 s receive timeout counts as a deadlock. | Build | Runs | Standing asks per run | Stale rest after unmap | Stale rest after free (len 0) | Address reused by the next mapping, and stale there | |---|---|---|---|---|---| | PR merge | 6 | 152k–195k | 0 / 1600 each | 0 / 1600 each | 291–587 reused, 0 stale | | `main` (same test, local lock stub) | 3 | 160k–173k | 1600 / 1600 | 1600 / 1600 | 283–404 reused, **all stale** | There was no deadlock or timeout in any run, and each run took 1.6–3.1 s. On `main`, every reused address took over the old block's rest entry. On the PR, none did. **Cost of the new `len == 0` branch** (`title_memory_freed(p, 0)`, 300 calls, debug build). The allocation is built from N committed regions with reserved gaps between them: | Allocation | `main`, `opened` empty / non-empty | PR, `opened` empty / non-empty | |---|---|---| | 1 region | 645–738 / 673–783 µs | 661–665 / 580–692 µs | | 256 regions | 631–658 / 706–719 µs | 601–670 / **912–949 µs** | Two runs of each, debug build. This measures the non-blocking note above that a zero-length free can now query allocation bounds. Most of the about 650 µs per call is spent elsewhere in `title_memory_freed`. Against `main` in the same condition (another block opened, 256 regions: 706–719 µs), the PR adds about +190–240 µs per call. At 1 region there is no measurable difference. The added time is a `VirtualQuery` walk (`allocation_end`) under the exclusive `GUARDS` lock (reading). `resolve_end` caches its result, so when the views or memory-classes path earlier in the function has already resolved the end, the PR adds no second walk (reading, not measured). **Reading (not measured)** - Lock order: `opened` is a leaf mutex. `forget_opened`, `rests` and `Guards::opened` only take it under `GUARDS` (write, or shared with port #6) and take no other lock inside it, so the new calls add no inversion. - In `title_memory_freed`, the `is_empty()` check and `forget_opened` lock `opened` separately. Both run under the `GUARDS` write lock, and the fault path also needs `GUARDS` to insert, so nothing can slip in between. - `forget_opened` rounds the range out to whole blocks, and `BLOCK` = `PAGE` = 64 KiB here. A decommit or free of `len != 0` that is not 64 KiB-aligned also drops the rest entry of a live block at either end. The cost of that is an earlier re-guard (one more fault), not a lost write. Not checked: an in-game run (one is posted above); a hardware-adapter `watch::` loop (the loops above are WARP only); `LEONIDA_GUARD_REST` in a release build, where `rest()` is not the test value. GPUs tested: one NVIDIA desktop card + WARP. AI-assisted: yes (Claude Code).
MoonEyes commented 2026-12-02 18:19:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:19:10Z.


Verification of #2896 (third party, code review on Linux; not built: Windows-only leonida-gpu)

  • Head verified: c9c6b103da3bf78d42ae7cafd835162a85b31723 (2 files: watch.rs +110, host.rs +2/-3).
  • Merge base 1e3e316c5. git merge-tree --write-tree origin/main pr/2896 against main 45dc41f95 is clean
    (340 commits behind). CI on the head: 6/6 success.
  • python -I scripts/check_no_game_data.py on both files: exit 0.
  • The in-game gate is covered: lixonik's run on c9c6b103d merged onto bf7886746.

Review

  • Root cause: title_memory_changed and title_memory_freed cleared every per-block record except
    Guards::opened, so a new mapping at a reused address inherited the old block's rest entry.
    forget_opened (watch.rs:2504-2521) is now called from both (:4339-4343, :4430). This is the right
    place, next to the other per-block clears. Kal0s-design's stress test (1600/1600 stale on main, 0 on the PR)
    confirms it.
  • forget_opened picks per-key remove or retain by range length against map size, which keeps it bounded.
    opened is a leaf mutex taken under GUARDS, so I found no new lock-order inversion.
  • Cost (non-blocking, measured by Kal0s-design): with len == 0 and a non-empty opened (normal in game),
    title_memory_freed now calls allocation_end, a VirtualQuery walk, while holding the exclusive
    GUARDS lock (watch.rs:4341-4343). That measured +190-240 µs per call on a 256-region allocation. #3113
    shows that such walks can be much longer on the title's pools. Two cheaper options: resolve the end before
    taking guards(), or reuse the end that the views or memory-classes path already cached.
  • Tests: the two new tests (:5812-5888) assert both the cleared block and an unrelated kept block, so they
    catch a blanket opened.clear(). TEST_STANDING_ASK_LOCK (:1133-1137) serializes the standing-ask tests
    that raced on JOURNAL. This is the second topic of the pull request (test-only), and it is named in the
    claim.

Process

  • Disclosure reads "Antigravity (plus separate read-only reviewer subagent)". It does not name the models
    (CONTRIBUTING.md asks for the specific models, the reviewer's included).

Verdict: ready (not built here). Moving the len == 0 walk out from under GUARDS is a recommended follow-up,
and the model names should go in the body.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354361271 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7354361271). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:19:10Z. --- **Verification of #2896 (third party, code review on Linux; not built: Windows-only `leonida-gpu`)** - Head verified: `c9c6b103da3bf78d42ae7cafd835162a85b31723` (2 files: `watch.rs` +110, `host.rs` +2/-3). - Merge base `1e3e316c5`. `git merge-tree --write-tree origin/main pr/2896` against `main` `45dc41f95` is clean (340 commits behind). CI on the head: 6/6 success. - `python -I scripts/check_no_game_data.py` on both files: exit 0. - The in-game gate is covered: lixonik's run on `c9c6b103d` merged onto `bf7886746`. **Review** - Root cause: `title_memory_changed` and `title_memory_freed` cleared every per-block record except `Guards::opened`, so a new mapping at a reused address inherited the old block's rest entry. `forget_opened` (`watch.rs:2504-2521`) is now called from both (`:4339-4343`, `:4430`). This is the right place, next to the other per-block clears. Kal0s-design's stress test (1600/1600 stale on `main`, 0 on the PR) confirms it. - `forget_opened` picks per-key `remove` or `retain` by range length against map size, which keeps it bounded. `opened` is a leaf mutex taken under `GUARDS`, so I found no new lock-order inversion. - Cost (non-blocking, measured by Kal0s-design): with `len == 0` and a non-empty `opened` (normal in game), `title_memory_freed` now calls `allocation_end`, a `VirtualQuery` walk, while holding the exclusive `GUARDS` lock (`watch.rs:4341-4343`). That measured +190-240 µs per call on a 256-region allocation. #3113 shows that such walks can be much longer on the title's pools. Two cheaper options: resolve the end before taking `guards()`, or reuse the end that the views or memory-classes path already cached. - Tests: the two new tests (`:5812-5888`) assert both the cleared block and an unrelated kept block, so they catch a blanket `opened.clear()`. `TEST_STANDING_ASK_LOCK` (`:1133-1137`) serializes the standing-ask tests that raced on `JOURNAL`. This is the second topic of the pull request (test-only), and it is named in the claim. **Process** - Disclosure reads "Antigravity (plus separate read-only reviewer subagent)". It does not name the models (CONTRIBUTING.md asks for the specific models, the reviewer's included). **Verdict: ready** (not built here). Moving the `len == 0` walk out from under `GUARDS` is a recommended follow-up, and the model names should go in the body. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
MoonEyes commented 2026-12-02 18:21:28 +00:00 (Migrated from github.com)

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


RUN (in game, batch of seventeen render-path pull requests), each head merged with git merge --no-ff onto main 3c106eb2f, in one build: #3111 15b579756, #2948 5284c6eae, #2698 1f188c4f7, #2946 44bf554fe, #3001 d924cbb65, #2832 0c861595a, #2915 58e8535cf, #2822 d359a2f85, #2896 c9c6b103d, #2983 8278ef1b9, #3115 ba5121192, #2945 d2c08c14f, #2975 74512d658, #2951 26da88e8e, #2800 b6ebcedd4, #2893 7c7e99b48, #3113 fa1460b6b (and #3097 0d7a451ab, merged since). RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world.

What Result
Device lost / device removed 0
Exceptions, panics, hang watchdog, GPU stall, title suspended 0
Process alive at the end yes, stopped by the time limit
Rendered fps, last 240 s (43 samples) median 14.6, mean 12.7
Rendered fps, last 120 s median 13.7
Time under 5 fps in the world 13 % (short drops, lowest sample 0.3 fps)

The drops under 5 fps line up with shaders being translated while walking (about 500 translations in the last 330 s): this batch changes the shader translation, so the shader cache built by earlier runs did not apply and the pipeline precompile alone took about 45 minutes. The batch-5 run on the same machine and route had no sample under 5 fps (median 16.4). I read this as cold-cache stutter, not as a regression of a single pull request, but this run cannot tell them apart.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.

Limits: one run; arrival in the world was driven by keys and not checked on pictures. A first attempt of this batch is not counted: the run script gave up waiting for the game window after 40 minutes of precompile.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354437270 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7354437270). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:21:28Z. --- RUN (in game, batch of seventeen render-path pull requests), each head merged with `git merge --no-ff` onto main `3c106eb2f`, in one build: #3111 `15b579756`, #2948 `5284c6eae`, #2698 `1f188c4f7`, #2946 `44bf554fe`, #3001 `d924cbb65`, #2832 `0c861595a`, #2915 `58e8535cf`, #2822 `d359a2f85`, #2896 `c9c6b103d`, #2983 `8278ef1b9`, #3115 `ba5121192`, #2945 `d2c08c14f`, #2975 `74512d658`, #2951 `26da88e8e`, #2800 `b6ebcedd4`, #2893 `7c7e99b48`, #3113 `fa1460b6b` (and #3097 `0d7a451ab`, merged since). RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (43 samples) | median 14.6, mean 12.7 | | Rendered fps, last 120 s | median 13.7 | | Time under 5 fps in the world | 13 % (short drops, lowest sample 0.3 fps) | The drops under 5 fps line up with shaders being translated while walking (about 500 translations in the last 330 s): this batch changes the shader translation, so the shader cache built by earlier runs did not apply and the pipeline precompile alone took about 45 minutes. The batch-5 run on the same machine and route had no sample under 5 fps (median 16.4). I read this as cold-cache stutter, not as a regression of a single pull request, but this run cannot tell them apart. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; arrival in the world was driven by keys and not checked on pictures. A first attempt of this batch is not counted: the run script gave up waiting for the game window after 40 minutes of precompile. AI-assisted (Claude Code).
fiestorra commented 2026-12-03 04:55:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T04:55:08Z.


VERIFY-2896 — su diff contra main dice «210 files, −33 184»; su cambio propio son 114 líneas en dos ficheros

La misma advertencia de medida que en #2930, y aquí es peor: la interfaz mostrará que este PR borra 33 184 líneas, y no borra ninguna de ellas — es deriva de su base.

Medido con merge-base..head:

d3d12/crates/leonida-gpu/src/host.rs    |   4 +-
d3d12/crates/leonida-gpu/src/watch.rs   | 113 +++++++++++++++++++++++-
2 files changed, 114 insertions(+), 3 deletions(-)

Y la suite del crate en su head:

cargo test -p leonida-gpu --lib
  645 passed; 1 failed; 59 ignored
  FAILED: views_are_made_beside_the_heap_and_copied_in   ← la de la iGPU

645 contra 715 de main — su base es vieja, y por eso el número es más bajo; la única falla es la conocida.

El cambio: limpiar el estado de «watch rest» en unmap/free y serializar los tests de standing-ask — y el watch.rs +113 incluye los tests, que es la parte que hace que este sea verificable en CI sin el título.

Lo que no verifiqué: el unmap de verdad — necesita el juego mapeando y desmapeando recursos, y lo que la suite cubre es la contabilidad del estado.

Y lo que sí puedo decir como revisor sin el título: el host.rs de cuatro líneas es el que cambia el comportamiento, y watch.rs es donde está el estado y su prueba — con la proporción 4/113, el autor está comprando un cambio de cuatro líneas con un test de cien. Buena señal.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7368181423 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7368181423). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T04:55:08Z. --- ## VERIFY-2896 — su diff contra `main` dice «210 files, −33 184»; su cambio propio son **114 líneas en dos ficheros** **La misma advertencia de medida que en `#2930`, y aquí es peor**: **la interfaz mostrará que este PR borra 33 184 líneas**, **y no borra ninguna de ellas** — **es deriva de su base.** **Medido con `merge-base..head`**: ``` d3d12/crates/leonida-gpu/src/host.rs | 4 +- d3d12/crates/leonida-gpu/src/watch.rs | 113 +++++++++++++++++++++++- 2 files changed, 114 insertions(+), 3 deletions(-) ``` **Y la suite del crate en su head**: ``` cargo test -p leonida-gpu --lib 645 passed; 1 failed; 59 ignored FAILED: views_are_made_beside_the_heap_and_copied_in ← la de la iGPU ``` **645 contra 715 de `main`** — **su base es vieja, y por eso el número es más bajo; la única falla es la conocida.** **El cambio**: **limpiar el estado de «watch rest» en `unmap`/`free` y serializar los tests de *standing-ask*** — **y el `watch.rs` +113 incluye los tests, que es la parte que hace que este sea verificable en CI sin el título.** **Lo que no verifiqué**: **el `unmap` de verdad** — **necesita el juego mapeando y desmapeando recursos**, **y lo que la suite cubre es la contabilidad del estado.** **Y lo que sí puedo decir como revisor sin el título**: **el `host.rs` de cuatro líneas es el que cambia el comportamiento, y `watch.rs` es donde está el estado y su prueba** — **con la proporción 4/113, el autor está comprando un cambio de cuatro líneas con un test de cien.** **Buena señal.**
MoonEyes commented 2026-12-03 17:26:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T17:26:32Z.


In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #2915, #2896, #2893 and #2889 merged into main 09273248c; this PR tested at its current head c9c6b103d. Series S 1080, DLSS FG 2x, play-nvidia.ps1 -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed, scripted walk, 330 s, screen kept on.

  • Result: PASS. No device lost, no crash, no unhandled exception; the run ended on its time limit.
  • Median over the last 240 s: 15.8 fps (main alone today: 15.8-17.5); 25.1 frames per 1000 over 100 ms, above today's usual 16-20, from one run only.
  • Covered: a normal launch and walk with this PR's code in the build. It does not isolate this PR's own change from the three others in the batch.

AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7386514473 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2896#issuecomment-7386514473). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T17:26:32Z. --- In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #2915, #2896, #2893 and #2889 merged into main `09273248c`; this PR tested at its current head `c9c6b103d`. Series S 1080, DLSS FG 2x, `play-nvidia.ps1 -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed`, scripted walk, 330 s, screen kept on. - Result: **PASS**. No device lost, no crash, no unhandled exception; the run ended on its time limit. - Median over the last 240 s: 15.8 fps (main alone today: 15.8-17.5); 25.1 frames per 1000 over 100 ms, above today's usual 16-20, from one run only. - Covered: a normal launch and walk with this PR's code in the build. It does not isolate this PR's own change from the three others in the batch. AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.
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/2896:upstream-pr/2896'
git switch 'upstream-pr/2896'

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/2896'
git switch 'upstream-pr/2896'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2896'
git switch 'upstream-pr/2896'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2896'
git switch 'main'
git merge --squash 'upstream-pr/2896'
git switch 'main'
git merge --ff-only 'upstream-pr/2896'
git switch 'main'
git merge 'upstream-pr/2896'
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
ProjectLeonida/mandy!2896
No description provided.