d3d12: render targets laid out linearly go back into title memory (black photos) #2915

Open
kurrutako wants to merge 2 commits from upstream-pr/2915 into main
kurrutako commented 2026-12-01 17:57:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kurrutako on 2026-12-01T17:57:21Z.


Claimed in the coordination issue as: D3D12-LINEAR-TARGETS-BACK (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7320122810)

What and why

A title lays a render target out linearly in its memory (layout 1, or 0x100 | the linear swizzle mode) when its CPU reads what is drawn there, for example a photo it encodes to an image file from that memory. On the D3D12 runtime the host texture was the target's only picture: nothing copied it back, so the memory under it stayed zero and such photos were saved black.

This PR:

  • adds resource::linear_target (linear_target_desc for the description): a 2D, single-sample texture with the render-target flag in a linear layout;
  • makes texback::wanted also take such targets, so the existing copy-back path (texback) returns them to title memory when the list closes;
  • marks a bound render target written in draw.rs (list.texture_written), so the copy-back sees draws into it;
  • adds LEONIDA_TARGET_BACK_LINEAR=0 to turn it off (as before).

Targets in the library's own tiled layouts, MSAA targets and textures without the target flag are unchanged.

Tested

Played on Windows 11, RTX 5070 12 GB, NVIDIA 621.01. D3D12 runtime, diag build, Series X profile.

Build Photos taken in game
Before (same base, without this change) Saved black (every file the same small size)
With this change Saved with the picture
  • cargo test -p leonida-gpu --lib: 634 passed (new test resource::tests::only_linear_render_targets_go_back).
  • cargo clippy -p leonida-gpu --all-targets -- -D warnings: nothing in the changed lines (the four lints it reports are in main already: host.rs, pipeline/host.rs, pipeline/known.rs).
  • python -I scripts/check_no_game_data.py on the three files: clean.
  • Not measured: the frame-time cost of the copy-back (it runs only for such targets). Not tried: Series S, other GPUs.

GPUs tested: NVIDIA GeForce RTX 5070 12 GB, driver 621.01, Windows 11

AI-assisted: yes (Claude Code)

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)

AI-assisted (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5591404063 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915). Originally posted by [kurrutako](https://github.com/kurrutako) on 2026-12-01T17:57:21Z. --- Claimed in the coordination issue as: D3D12-LINEAR-TARGETS-BACK (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7320122810) ### What and why A title lays a render target out linearly in its memory (layout 1, or `0x100 |` the linear swizzle mode) when its CPU reads what is drawn there, for example a photo it encodes to an image file from that memory. On the D3D12 runtime the host texture was the target's only picture: nothing copied it back, so the memory under it stayed zero and such photos were saved black. This PR: - adds `resource::linear_target` (`linear_target_desc` for the description): a 2D, single-sample texture with the render-target flag in a linear layout; - makes `texback::wanted` also take such targets, so the existing copy-back path (`texback`) returns them to title memory when the list closes; - marks a bound render target written in `draw.rs` (`list.texture_written`), so the copy-back sees draws into it; - adds `LEONIDA_TARGET_BACK_LINEAR=0` to turn it off (as before). Targets in the library's own tiled layouts, MSAA targets and textures without the target flag are unchanged. ### Tested Played on Windows 11, RTX 5070 12 GB, NVIDIA 621.01. D3D12 runtime, diag build, Series X profile. | Build | Photos taken in game | |---|---| | Before (same base, without this change) | Saved black (every file the same small size) | | With this change | Saved with the picture | - `cargo test -p leonida-gpu --lib`: 634 passed (new test `resource::tests::only_linear_render_targets_go_back`). - `cargo clippy -p leonida-gpu --all-targets -- -D warnings`: nothing in the changed lines (the four lints it reports are in `main` already: `host.rs`, `pipeline/host.rs`, `pipeline/known.rs`). - `python -I scripts/check_no_game_data.py` on the three files: clean. - Not measured: the frame-time cost of the copy-back (it runs only for such targets). Not tried: Series S, other GPUs. GPUs tested: NVIDIA GeForce RTX 5070 12 GB, driver 621.01, Windows 11 AI-assisted: yes (Claude Code) ### 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) AI-assisted (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
merzleckeier commented 2026-12-01 18:17:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T18:17:31Z.


Independent GPU readback of synthetic linear render targets at 8c8ae9b4 + 7fbdf851. I built the same 64×16 RGBA8 fixture on each tree. It registers the render-target state, performs a real D3D12 clear, calls HostList::texture_written, closes and submits the list, and checks CPU backing after synchronous landing (LEONIDA_TEXBACK_ASYNC=0).

With the PR’s default setting, both linear layouts (0x1 and 0x100) returned all 1,024 red RGBA pixels on both Radeon RADV (Mesa 26.3.1) and GeForce RTX 4070 SUPER (620.73.04), using Wine 11.22 / VKD3D-Proton 3.1.0. Main and the PR with LEONIDA_TARGET_BACK_LINEAR=0 both retained zero-filled CPU backing. Layout 0x0 retained zero-filled backing in every run. The existing texture-back test selection passed all eight on main and all nine on the PR, including the new eligibility test.

The fixture covers selection and the production close, copy, and landing path after explicit write registration. MEASURED with synthetic textures. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7320703055 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7320703055). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T18:17:31Z. --- Independent GPU readback of synthetic linear render targets at `8c8ae9b4` + `7fbdf851`. I built the same 64×16 RGBA8 fixture on each tree. It registers the render-target state, performs a real D3D12 clear, calls `HostList::texture_written`, closes and submits the list, and checks CPU backing after synchronous landing (`LEONIDA_TEXBACK_ASYNC=0`). With the PR’s default setting, both linear layouts (`0x1` and `0x100`) returned all 1,024 red RGBA pixels on both Radeon RADV (Mesa 26.3.1) and GeForce RTX 4070 SUPER (620.73.04), using Wine 11.22 / VKD3D-Proton 3.1.0. Main and the PR with `LEONIDA_TARGET_BACK_LINEAR=0` both retained zero-filled CPU backing. Layout `0x0` retained zero-filled backing in every run. The existing texture-back test selection passed all eight on main and all nine on the PR, including the new eligibility test. The fixture covers selection and the production close, copy, and landing path after explicit write registration. MEASURED with synthetic textures. AI-assisted (Codex).
KelboLive commented 2026-12-01 18:46:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T18:46:07Z.

Review: COMMENTED


Tested 8c8ae9b4: 634 lib tests pass including the new predicate test, forcing the RENDER_TARGET guard makes it fail, clippy keeps only the four pre-existing warnings, and merge-tree against current main is clean. The hook is right: targets are !fills (resource.rs:1884-1888), so the host copy is the only picture, and close-time registration (draw.rs:3063 → host.rs:8878, :9295) runs after the list's resolves with one back_wanted entry per owner, so there is no double copy.

Two scope issues:

  1. linear_target_desc accepts mip_levels > 1 / depth_or_array_size > 1 (resource.rs:3959), while texture_written marks every subresource (host.rs:9265, texback.rs:164) and non-copy tickets write the whole allocation (texback.rs:496-500). For a mip chain or array, that copies back mips/slices no draw touched, from a host copy that was never uploaded (targets are !fills). Please restrict it to the RTV's subresource, or at least single-mip/single-slice.
  2. A linear target written only by ResolveSubresource is still uncovered. texture_copied is gated on title_written (texture.rs:1290-1294), which is false when the target flag is set, so an MSAA→linear-photo resolve stays black. Is the measured photo path a direct draw? A synthetic resolve fixture would settle it — and would also cover the case where an earlier list's whole-target copy-back lands pre-resolve pixels.

Minor: texback.rs:71 is over rustfmt width.

The in-tree test only checks the predicate plumbing — not wanted(), the toggle, or the copy/land path — so the end-to-end claim still rests on the author's and the independent commenter's runs. No conflict with current main; resource.rs overlaps #2908/#2765/#2658 only outside these hunks.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6137756983 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#pullrequestreview-6137756983). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T18:46:07Z. **Review:** COMMENTED --- Tested `8c8ae9b4`: 634 lib tests pass including the new predicate test, forcing the `RENDER_TARGET` guard makes it fail, clippy keeps only the four pre-existing warnings, and `merge-tree` against current main is clean. The hook is right: targets are `!fills` (`resource.rs:1884-1888`), so the host copy is the only picture, and close-time registration (`draw.rs:3063` → `host.rs:8878`, `:9295`) runs after the list's resolves with one `back_wanted` entry per owner, so there is no double copy. Two scope issues: 1. **`linear_target_desc` accepts `mip_levels > 1` / `depth_or_array_size > 1`** (`resource.rs:3959`), while `texture_written` marks every subresource (`host.rs:9265`, `texback.rs:164`) and non-copy tickets write the whole allocation (`texback.rs:496-500`). For a mip chain or array, that copies back mips/slices no draw touched, from a host copy that was never uploaded (targets are `!fills`). Please restrict it to the RTV's subresource, or at least single-mip/single-slice. 2. **A linear target written only by `ResolveSubresource` is still uncovered.** `texture_copied` is gated on `title_written` (`texture.rs:1290-1294`), which is false when the target flag is set, so an MSAA→linear-photo resolve stays black. Is the measured photo path a direct draw? A synthetic resolve fixture would settle it — and would also cover the case where an earlier list's whole-target copy-back lands pre-resolve pixels. Minor: `texback.rs:71` is over rustfmt width. The in-tree test only checks the predicate plumbing — not `wanted()`, the toggle, or the copy/land path — so the end-to-end claim still rests on the author's and the independent commenter's runs. No conflict with current main; `resource.rs` overlaps #2908/#2765/#2658 only outside these hunks.
merzleckeier commented 2026-12-01 19:26:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T19:26:03Z.


Asynchronous linear target readback with a held writer at 8c8ae9b4 on 60f7dcd9. I cleared a synthetic 64×16 RGBA8 D3D12 render target to red, explicitly registered the write with HostList::texture_written, and submitted through execute_sync_internal. The test held the production texture read-backs worker immediately before the CPU write. On both an RTX 4070 SUPER and Radeon RADV (Wine 11.22 / VKD3D-Proton 3.1.0), submission returned while the worker was held and CPU backing was still zero. After release both linear layouts (0x1 and 0x100) returned all 1,024 red pixels. Synchronous mode returned the same pixels on the submitting thread.

Main and the PR with LEONIDA_TARGET_BACK_LINEAR=0 both retained zero backing for these targets. Nonlinear 0x0 stayed zero in all eight hardware runs. Focused existing tests passed 8/8 on main and 9/9 on the PR per GPU. The later main update 93ffc482 changes the launcher and its test in this merged tree.

This covers explicitly registered single-subresource targets. The multi-subresource and resolve-only cases raised in review were outside this fixture. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7322809759 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7322809759). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T19:26:03Z. --- Asynchronous linear target readback with a held writer at `8c8ae9b4` on `60f7dcd9`. I cleared a synthetic 64×16 RGBA8 D3D12 render target to red, explicitly registered the write with `HostList::texture_written`, and submitted through `execute_sync_internal`. The test held the production `texture read-backs` worker immediately before the CPU write. On both an RTX 4070 SUPER and Radeon RADV (Wine 11.22 / VKD3D-Proton 3.1.0), submission returned while the worker was held and CPU backing was still zero. After release both linear layouts (`0x1` and `0x100`) returned all 1,024 red pixels. Synchronous mode returned the same pixels on the submitting thread. Main and the PR with `LEONIDA_TARGET_BACK_LINEAR=0` both retained zero backing for these targets. Nonlinear `0x0` stayed zero in all eight hardware runs. Focused existing tests passed 8/8 on main and 9/9 on the PR per GPU. The later main update `93ffc482` changes the launcher and its test in this merged tree. This covers explicitly registered single-subresource targets. The multi-subresource and resolve-only cases raised in review were outside this fixture. AI-assisted (Codex).
merzleckeier commented 2026-12-01 19:37:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T19:37:50Z.


Two linear-target edge cases reproduced on hardware at 8c8ae9b4 on 93ffc482, with synchronous landing. I compared main, the PR with linear readback on, and the same PR with LEONIDA_TARGET_BACK_LINEAR=0 on an RTX 4070 SUPER (620.73.4) and Radeon RADV (26.3.1), using Wine 11.22 / VKD3D-Proton 3.1.0.

  • Resolve-only target. The console ResolveSubresource entry resolved a green 4× MSAA source into a linear single-sample target. An independent host readback found 1,024/1,024 green pixels in each of 24 resolves (both layouts, both GPUs, all three arms, with and without a separate earlier red clear). CPU backing had zero green pixels in all 24. With the PR on and a previously registered red clear, it retained all 1,024 red pixels. Fresh backing and the other controls retained zero-filled pixels.
  • Two mips × two slices. I initialized every CPU subresource yellow and the host subresources blue, cleared only mip 0/slice 0 to red, and explicitly registered the write. With the PR on, the selected 1,024 pixels became red and the untouched subresources’ 256, 1,024, and 256 pixels all changed from CPU yellow to host blue. The main and disabled controls retained all four yellow sentinels. Both layout codes (0x1, 0x100) gave the same result.

MEASURED with synthetic textures. The array fixture explicitly registers the write and the resolve fixture uses the console resolve entry directly. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7323129074 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7323129074). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T19:37:50Z. --- Two linear-target edge cases reproduced on hardware at `8c8ae9b4` on `93ffc482`, with synchronous landing. I compared main, the PR with linear readback on, and the same PR with `LEONIDA_TARGET_BACK_LINEAR=0` on an RTX 4070 SUPER (620.73.4) and Radeon RADV (26.3.1), using Wine 11.22 / VKD3D-Proton 3.1.0. - **Resolve-only target.** The console `ResolveSubresource` entry resolved a green 4× MSAA source into a linear single-sample target. An independent host readback found **1,024/1,024 green pixels** in each of 24 resolves (both layouts, both GPUs, all three arms, with and without a separate earlier red clear). CPU backing had **zero green pixels** in all 24. With the PR on and a previously registered red clear, it retained all 1,024 red pixels. Fresh backing and the other controls retained zero-filled pixels. - **Two mips × two slices.** I initialized every CPU subresource yellow and the host subresources blue, cleared only mip 0/slice 0 to red, and explicitly registered the write. With the PR on, the selected 1,024 pixels became red and the untouched subresources’ **256, 1,024, and 256** pixels all changed from CPU yellow to host blue. The main and disabled controls retained all four yellow sentinels. Both layout codes (`0x1`, `0x100`) gave the same result. MEASURED with synthetic textures. The array fixture explicitly registers the write and the resolve fixture uses the console resolve entry directly. AI-assisted (Codex).
kurrutako commented 2026-12-01 19:51:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kurrutako on 2026-12-01T19:51:01Z.


Thanks @KelboLive, and @merzleckeier for the hardware runs (the two-mip/two-slice one shows exactly the problem in point 1). Pushed 58e8535c:

  1. One subresource only. linear_target_desc now also requires mip_levels == 1 and depth_or_array_size == 1, so a mip chain or an array is never copied back from host subresources no draw touched. The test covers both cases.
  2. Resolve-only targets. resolve (list.rs) now also calls texture_copied(dst, Some(dst_sub)) for a linear target when targets_back() is on, as it already did for textures the title fills. The measured photo path is a direct draw: the draw.rs hook is what made the in-game photos come out. This covers the resolve case too.
  3. texback.rs:71 is wrapped to rustfmt width.

cargo test -p leonida-gpu --lib: 634 passed. clippy reports only the pre-existing warnings. check_no_game_data.py on the changed files is clean, and the branch merges cleanly with current main. Not re-run in game after this push. The resolve change is covered only by the reasoning above, not by a fixture of mine.

AI-assisted (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7323552258 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7323552258). Originally posted by [kurrutako](https://github.com/kurrutako) on 2026-12-01T19:51:01Z. --- Thanks @KelboLive, and @merzleckeier for the hardware runs (the two-mip/two-slice one shows exactly the problem in point 1). Pushed `58e8535c`: 1. **One subresource only.** `linear_target_desc` now also requires `mip_levels == 1` and `depth_or_array_size == 1`, so a mip chain or an array is never copied back from host subresources no draw touched. The test covers both cases. 2. **Resolve-only targets.** `resolve` (`list.rs`) now also calls `texture_copied(dst, Some(dst_sub))` for a linear target when `targets_back()` is on, as it already did for textures the title fills. The measured photo path is a direct draw: the `draw.rs` hook is what made the in-game photos come out. This covers the resolve case too. 3. `texback.rs:71` is wrapped to rustfmt width. `cargo test -p leonida-gpu --lib`: 634 passed. clippy reports only the pre-existing warnings. `check_no_game_data.py` on the changed files is clean, and the branch merges cleanly with current `main`. Not re-run in game after this push. The resolve change is covered only by the reasoning above, not by a fixture of mine. AI-assisted (Claude Code)
merzleckeier commented 2026-12-01 20:00:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T20:00:59Z.


Hardware recheck of the single-subresource and resolve update at 58e8535c on 99a29d10. Compared main, prior head 8c8ae9b4, and the updated head on RTX 4070 SUPER and Radeon RADV (Wine 11.22 / VKD3D-Proton 3.1.0).

  • Resolve-only: the console call resolved a green 4× MSAA source. With both readback switches enabled, the new head returned all 1,024 green pixels to CPU memory in every layout/preload case on both GPUs (8 synchronous resolves). Main and the prior head retained old CPU pixels. Separately disabling either LEONIDA_TARGET_BACK_LINEAR or LEONIDA_COPY_BACK still left the GPU resolve intact and suppressed CPU landing.
  • Subresource coverage: after an explicitly registered clear of mip 0/slice 0, the new head preserved every CPU sentinel for each of the 2-mip, 2-slice, and 2-mip × 2-slice descriptors in both linear layouts. The prior head overwrote CPU pixels in all three shapes.
  • Async: an exact-filter test on each GPU held the real CPU writer before landing. In all 8 cases the GPU buffer had all 1,024 green pixels while CPU backing still held the earlier zeros or red pixels. Each landed all 1,024 green pixels after release.

All 10 synchronous matrix runs passed both diagnostics. Existing focused tests passed 8 on main and 9 on each PR head per GPU. MEASURED with synthetic textures and an instrumented async writer. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7323879361 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7323879361). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T20:00:59Z. --- Hardware recheck of the single-subresource and resolve update at `58e8535c` on `99a29d10`. Compared main, prior head `8c8ae9b4`, and the updated head on RTX 4070 SUPER and Radeon RADV (Wine 11.22 / VKD3D-Proton 3.1.0). - **Resolve-only:** the console call resolved a green 4× MSAA source. With both readback switches enabled, the new head returned all 1,024 green pixels to CPU memory in every layout/preload case on both GPUs (8 synchronous resolves). Main and the prior head retained old CPU pixels. Separately disabling either `LEONIDA_TARGET_BACK_LINEAR` or `LEONIDA_COPY_BACK` still left the GPU resolve intact and suppressed CPU landing. - **Subresource coverage:** after an explicitly registered clear of mip 0/slice 0, the new head preserved every CPU sentinel for each of the 2-mip, 2-slice, and 2-mip × 2-slice descriptors in both linear layouts. The prior head overwrote CPU pixels in all three shapes. - **Async:** an exact-filter test on each GPU held the real CPU writer before landing. In all 8 cases the GPU buffer had all 1,024 green pixels while CPU backing still held the earlier zeros or red pixels. Each landed all 1,024 green pixels after release. All 10 synchronous matrix runs passed both diagnostics. Existing focused tests passed 8 on main and 9 on each PR head per GPU. MEASURED with synthetic textures and an instrumented async writer. AI-assisted (Codex).
EdenBendheim commented 2026-12-02 00:07:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-02T00:07:50Z.


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

  • Tested: PR head 58e8535cf merged cleanly onto main 913b88b90 (diagnostics,mimalloc, exe_sha16: 1ebc71ceabfb0417).
  • 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 all changed files.
  • Unit red/green (cargo test -p leonida-gpu --locked -- only_linear_render_targets_go_back --test-threads=1):
    • Baseline 913b88b90 with PR test overlaid: compile failure (linear_target_desc missing).
    • Merged PR (default and --features diagnostics): 1 passed, 0 failed in both configurations.
  • Retail 300 s in-game dynamic-stress gate (scripts/game-gate.ps1, Series X 1080–1440p, -NoFrameGen, upgraded 8-leg sprint/wide-turn/jump gate_driver + LEONIDA_GAME_ACTIONS_RUN="150:time 23"):
    • Verdict: PASS (reasons=[], warnings=[], exit=clean, stop=target, cache_saved=true, GATE CONTROL fired with moved=2.54 m, max from_control_m=9.2 m, time 23 confirmed PASS).
    • Metrics (world_s=304.2s, world+60s, 4,808 presents, 6,537 median draws): 20.03 FPS median, 15.54 FPS p5, 64.37 ms p95 frame time, 0.430 s longest present gap, 0 missed pipeline waits, 31,218 MB max private memory, 250 MB min commit left, 12,033 MB max VRAM (0 s over budget).
  • Scope note: This confirms stability and zero regressions over 300 s of live night/sprint gameplay (and descriptor eligibility in unit tests); taking an actual in-game camera photo wasn't scripted in the automated 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:7330176384 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7330176384). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-12-02T00:07:50Z. --- Independent native Windows 11 + RTX 3090 verification (**`VERIFY-2915-RTX3090`**, claimed in #2570): **PASS** - **Tested:** PR head `58e8535cf` merged cleanly onto `main` `913b88b90` (`diagnostics,mimalloc`, `exe_sha16`: `1ebc71ceabfb0417`). - **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 all changed files. - **Unit red/green (`cargo test -p leonida-gpu --locked -- only_linear_render_targets_go_back --test-threads=1`):** - Baseline `913b88b90` with PR test overlaid: compile failure (`linear_target_desc` missing). - Merged PR (default and `--features diagnostics`): **1 passed, 0 failed** in both configurations. - **Retail 300 s in-game dynamic-stress gate (`scripts/game-gate.ps1`, Series X 1080–1440p, `-NoFrameGen`, upgraded 8-leg sprint/wide-turn/jump `gate_driver` + `LEONIDA_GAME_ACTIONS_RUN="150:time 23"`):** - **Verdict:** **`PASS`** (`reasons=[]`, `warnings=[]`, `exit=clean`, `stop=target`, `cache_saved=true`, `GATE CONTROL` fired with `moved=2.54 m`, max `from_control_m=9.2 m`, `time 23` confirmed PASS). - **Metrics (`world_s=304.2s`, `world+60s`, 4,808 presents, 6,537 median draws):** `20.03 FPS` median, `15.54 FPS` p5, `64.37 ms` p95 frame time, `0.430 s` longest present gap, `0` missed pipeline waits, `31,218 MB` max private memory, `250 MB` min commit left, `12,033 MB` max VRAM (`0 s` over budget). - **Scope note:** This confirms stability and zero regressions over 300 s of live night/sprint gameplay (and descriptor eligibility in unit tests); taking an actual in-game camera photo wasn't scripted in the automated 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:17 +00:00 (Migrated from github.com)

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


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:7345463493 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7345463493). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:31:17Z. --- 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).
Kal0s-design commented 2026-12-02 13:55:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T13:55:30Z.


Ran natively on Windows 11, head 58e8535cf merged into current main (128648cfe, clean merge). Earlier runs here were under Wine or were the in-game gate, so this one covers formats, row pitch and the end of a mapping on a native driver, with a throwaway test (not committed).

cargo test -p leonida-gpu --lib --locked: 692 passed, 0 failed. only_linear_render_targets_go_back passes. clippy on the merge reports one lint (host.rs:7633, unused mut), and main alone reports the same one, so nothing comes from this PR.

Fixture. A title texture is created at an address inside committed memory, placed so it ends exactly at the end of the committed region with a no-access page right after it. Title memory is filled with 0xCD first. The host copy is filled with a different byte pattern per texel through CopyTextureRegion. Then ensure_state(RENDER_TARGET), texture_written, close, execute_sync_internal, with LEONIDA_TEXBACK_ASYNC=0. I compared every texel at Layout::offset and checked that bytes outside the texels (row padding, and memory before and after the texture) still hold 0xCD. Layouts 0x100 and 1 gave identical results everywhere. Every case below ran on the NVIDIA card and on WARP. On main I ran the same fixture, where texture_written doesn't take these targets.

Formats that match the host copy: all correct.

Format (bytes per texel) Sizes PR: texels correct PR: padding / outside changed main
R8_UNORM 61 (1) 1x1, 33x7, 300x5, 1100x2 all 0 memory untouched
RGBA8 28 (4) 1x1, 33x7, 64x16, 100x5, 330x2, 1920x4 all 0 untouched
R10G10B10A2 24, R11G11B10 26 (4) 33x7 all 0 untouched
RGBA16F 10 (8) 33x7, 64x16, 1000x3, 1100x2 all 0 untouched
RGBA32F 2 (16) 1x1, 17x3, 33x7, 64x16, 1100x2 all 0 untouched

The console's linear row pitch matched the copyable-footprint pitch in every case (both rounded up to 256 bytes), so the tiler never had to deal with a pitch mismatch. Writing the last byte of a texture that ends right at a no-access page did not fault. With LEONIDA_TARGET_BACK_LINEAR=0 (NVIDIA card, 33x7 and 64x16 sizes), every texel stayed 0xCD.

Finding 1: targets in a stand-in format get raw host bytes. linear_target doesn't check stands_in. When the host copy uses a wider stand-in format (target_format), texback::write tiles the host rows using the console's element size with no conversion. Each console texel then gets the next N raw bytes of the host row: console texel 1 holds bytes 4..7 of host texel 0, so the left half of every host row ends up across the whole console row.

Format (console bytes) NVIDIA card: host copy NVIDIA card: title memory WARP: host copy WARP: title memory
R9G9B9E5 67 (4) RGBA16F (8 B) raw half-float bytes, shifted as above 67 (native) correct
B5G5R5A1 86 (2) RGBA8 (4 B) raw RGBA8 bytes, shifted 86 (native) correct
B4G4R4A4 115 (2) RGBA8 (4 B) raw RGBA8 bytes, shifted 115 (native) correct

On main this memory was untouched. With the PR it gets those bytes, but only on hosts that use the stand-in. Adding && !stands_in(this) to linear_target, or converting before tiling, would avoid it. I don't know whether the title ever makes a linear target in one of these formats.

Finding 2: a draw that covers part of a linear target overwrites the rest from the host copy. Host and title memory both started as above. I copied only a 32x16 box into the left half of a 64x16 target, then registered the write:

Format PR: left half (written) PR: right half (CPU-written 0xCD before) main: right half
RGBA8 28 512/512 correct 0/512 kept, now 00 00 00 00 (the fresh host copy) 512/512 kept
RGBA16F 10 512/512 correct 0/512 kept, now zeros 512/512 kept

Same on both GPUs. Targets are !fills, so anything the title's CPU wrote into the target's memory never reaches the host copy, and a non-copy ticket rewrites the whole subresource. This is the in-subresource case of the mip/slice issue fixed in 58e8535c. It doesn't matter for a full-screen photo, but it would for a target the CPU pre-fills and the GPU draws only part of. I'm noting it as a limit of scope, not asking for a change.

Not checked: real draws or resolves (the fixture writes the host copy by a copy), asynchronous landing, a CPU write made between submission and landing, the cost of calling texture_written for every bound target on every draw, block-compressed formats (they cannot be render targets), and anything in game.

GPUs tested: one NVIDIA desktop card + WARP.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7347687750 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7347687750). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T13:55:30Z. --- Ran natively on Windows 11, head `58e8535cf` merged into current `main` (`128648cfe`, clean merge). Earlier runs here were under Wine or were the in-game gate, so this one covers formats, row pitch and the end of a mapping on a native driver, with a throwaway test (not committed). `cargo test -p leonida-gpu --lib --locked`: 692 passed, 0 failed. `only_linear_render_targets_go_back` passes. clippy on the merge reports one lint (`host.rs:7633`, unused `mut`), and `main` alone reports the same one, so nothing comes from this PR. **Fixture.** A title texture is created at an address inside committed memory, placed so it ends exactly at the end of the committed region with a no-access page right after it. Title memory is filled with `0xCD` first. The host copy is filled with a different byte pattern per texel through `CopyTextureRegion`. Then `ensure_state(RENDER_TARGET)`, `texture_written`, close, `execute_sync_internal`, with `LEONIDA_TEXBACK_ASYNC=0`. I compared every texel at `Layout::offset` and checked that bytes outside the texels (row padding, and memory before and after the texture) still hold `0xCD`. Layouts `0x100` and `1` gave identical results everywhere. Every case below ran on the NVIDIA card and on WARP. On `main` I ran the same fixture, where `texture_written` doesn't take these targets. **Formats that match the host copy: all correct.** | Format (bytes per texel) | Sizes | PR: texels correct | PR: padding / outside changed | `main` | |---|---|---|---|---| | R8_UNORM 61 (1) | 1x1, 33x7, 300x5, 1100x2 | all | 0 | memory untouched | | RGBA8 28 (4) | 1x1, 33x7, 64x16, 100x5, 330x2, 1920x4 | all | 0 | untouched | | R10G10B10A2 24, R11G11B10 26 (4) | 33x7 | all | 0 | untouched | | RGBA16F 10 (8) | 33x7, 64x16, 1000x3, 1100x2 | all | 0 | untouched | | RGBA32F 2 (16) | 1x1, 17x3, 33x7, 64x16, 1100x2 | all | 0 | untouched | The console's linear row pitch matched the copyable-footprint pitch in every case (both rounded up to 256 bytes), so the tiler never had to deal with a pitch mismatch. Writing the last byte of a texture that ends right at a no-access page did not fault. With `LEONIDA_TARGET_BACK_LINEAR=0` (NVIDIA card, 33x7 and 64x16 sizes), every texel stayed `0xCD`. **Finding 1: targets in a stand-in format get raw host bytes.** `linear_target` doesn't check `stands_in`. When the host copy uses a wider stand-in format (`target_format`), `texback::write` tiles the host rows using the console's element size with no conversion. Each console texel then gets the next N raw bytes of the host row: console texel 1 holds bytes 4..7 of host texel 0, so the left half of every host row ends up across the whole console row. | Format (console bytes) | NVIDIA card: host copy | NVIDIA card: title memory | WARP: host copy | WARP: title memory | |---|---|---|---|---| | R9G9B9E5 67 (4) | RGBA16F (8 B) | raw half-float bytes, shifted as above | 67 (native) | correct | | B5G5R5A1 86 (2) | RGBA8 (4 B) | raw RGBA8 bytes, shifted | 86 (native) | correct | | B4G4R4A4 115 (2) | RGBA8 (4 B) | raw RGBA8 bytes, shifted | 115 (native) | correct | On `main` this memory was untouched. With the PR it gets those bytes, but only on hosts that use the stand-in. Adding `&& !stands_in(this)` to `linear_target`, or converting before tiling, would avoid it. I don't know whether the title ever makes a linear target in one of these formats. **Finding 2: a draw that covers part of a linear target overwrites the rest from the host copy.** Host and title memory both started as above. I copied only a 32x16 box into the left half of a 64x16 target, then registered the write: | Format | PR: left half (written) | PR: right half (CPU-written `0xCD` before) | `main`: right half | |---|---|---|---| | RGBA8 28 | 512/512 correct | 0/512 kept, now `00 00 00 00` (the fresh host copy) | 512/512 kept | | RGBA16F 10 | 512/512 correct | 0/512 kept, now zeros | 512/512 kept | Same on both GPUs. Targets are `!fills`, so anything the title's CPU wrote into the target's memory never reaches the host copy, and a non-copy ticket rewrites the whole subresource. This is the in-subresource case of the mip/slice issue fixed in `58e8535c`. It doesn't matter for a full-screen photo, but it would for a target the CPU pre-fills and the GPU draws only part of. I'm noting it as a limit of scope, not asking for a change. Not checked: real draws or resolves (the fixture writes the host copy by a copy), asynchronous landing, a CPU write made between submission and landing, the cost of calling `texture_written` for every bound target on every draw, block-compressed formats (they cannot be render targets), and anything in game. GPUs tested: one NVIDIA desktop card + WARP. AI-assisted: yes (Claude Code).
MoonEyes commented 2026-12-02 18:21:24 +00:00 (Migrated from github.com)

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


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:7354435552 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7354435552). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:21:24Z. --- 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).
MoonEyes commented 2026-12-02 18:29:29 +00:00 (Migrated from github.com)

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


Verification triage of #2915

Head 58e8535cf is already verified on this exact head: EdenBendheim (VERIFY-2915-RTX3090) and Kal0s-design (native Windows 11). CI passes (6/6) and the PR merges cleanly. No new run here (Windows-only). Verdict: ready (already verified on this head).

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


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354674981 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7354674981). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:29:29Z. --- **Verification triage of #2915** Head `58e8535cf` is already verified on this exact head: EdenBendheim (VERIFY-2915-RTX3090) and Kal0s-design (native Windows 11). CI passes (6/6) and the PR merges cleanly. No new run here (Windows-only). **Verdict: ready (already verified on this head).** AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
fiestorra commented 2026-12-03 04:19:33 +00:00 (Migrated from github.com)

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


VERIFY-2915 — aplica limpio, uno de sus cuatro ficheros ya está en main, y la suite no se rompe

Método del AGENTS.md: cherry-pick del commit sobre origin/main —

git cherry-pick (sobre 516c9eaab)
  exit 0 · 3 files changed, 62 insertions(+), 3 deletions(-)

cargo test -p leonida-gpu --lib
  716 passed; 1 failed; 59 ignored

Y el 1 es la iGPU. Pero el detalle que vale la pena: el PR tiene 4 ficheros y el cherry-pick tocó 3 —

en el PR:                 draw.rs, list.rs, resource.rs, texback.rs
lo que aplicó:            draw.rs, resource.rs, texback.rs
ya estaba en main:        list.rs

O sea que el cambio de list.rs llegó a main por otra vía (es el fichero del with_capacity que revisé en #2952 esta noche, y probablemente el mismo commit de origen). El cherry-pick aplica el resto sin conflicto y descarta lo que ya está, que es exactamente lo que debe hacer.

Lo que el PR hace, por su título: los render targets con disposición lineal vuelven a la memoria del título — el caso de la foto que sale negra porque el destino se quedó en un recurso propio, y resource.rs +58 es donde vive la nueva disposición.

Lo que no verifiqué: la foto negra — necesita el título y su modo foto; los 716 verdes dicen que el cambio no rompe ninguna de las pruebas existentes, ni más ni menos.

Y la consecuencia para el merge: cuando alguien lo rebase, list.rs no aparecerá en el diff, y eso es correcto — un revisor que espere cuatro ficheros y vea tres debería saber por qué antes de sospechar de la PR.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7367513628 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7367513628). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T04:19:33Z. --- ## VERIFY-2915 — aplica limpio, **uno de sus cuatro ficheros ya está en `main`**, y la suite no se rompe **Método del `AGENTS.md`: cherry-pick del commit sobre `origin/main`** — ``` git cherry-pick (sobre 516c9eaab) exit 0 · 3 files changed, 62 insertions(+), 3 deletions(-) cargo test -p leonida-gpu --lib 716 passed; 1 failed; 59 ignored ``` **Y el 1 es la iGPU.** **Pero el detalle que vale la pena**: **el PR tiene 4 ficheros y el cherry-pick tocó 3** — ``` en el PR: draw.rs, list.rs, resource.rs, texback.rs lo que aplicó: draw.rs, resource.rs, texback.rs ya estaba en main: list.rs ``` **O sea que el cambio de `list.rs` llegó a `main` por otra vía** (**es el fichero del `with_capacity` que revisé en `#2952` esta noche**, **y probablemente el mismo commit de origen**). **El cherry-pick aplica el resto sin conflicto y descarta lo que ya está, que es exactamente lo que debe hacer.** **Lo que el PR hace, por su título**: **los *render targets* con disposición lineal vuelven a la memoria del título** — **el caso de la foto que sale negra porque el destino se quedó en un recurso propio**, **y `resource.rs` +58 es donde vive la nueva disposición.** **Lo que no verifiqué**: **la foto negra** — **necesita el título y su modo foto**; **los 716 verdes dicen que el cambio no rompe ninguna de las pruebas existentes, ni más ni menos.** **Y la consecuencia para el merge**: **cuando alguien lo rebase, `list.rs` no aparecerá en el diff**, **y eso es correcto** — **un revisor que espere cuatro ficheros y vea tres debería saber por qué antes de sospechar de la PR.**
MoonEyes commented 2026-12-03 17:26:31 +00:00 (Migrated from github.com)

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


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 58e8535cf. 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:7386513545 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2915#issuecomment-7386513545). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T17:26:31Z. --- 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 `58e8535cf`. 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/2915:upstream-pr/2915'
git switch 'upstream-pr/2915'

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