loader/hooks: cap mode table rows larger than LEONIDA_OUTPUT (D3D12-LOADER-OUTPUT-1440-CAP) #2889

Open
djrolfes wants to merge 1 commit from upstream-pr/2889 into main
djrolfes commented 2026-12-01 15:36:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-12-01T15:36:53Z.


Claimed in the coordination issue as: D3D12-LOADER-OUTPUT-1440-CAP.

What and why

When LEONIDA_OUTPUT asks for an output size smaller than intermediate rows of the title's mode table (2560x1440, 1920x1080, 1664x936, documented in docs/ultrawide.md at .rdata 0x615c0c0..=0x615c100), also cap every lower mode-table row larger than (width, height) in d3d12/crates/leonida-loader/src/hooks.rs.

  • Why: output_patches(width, height) previously patched only the 3840x2160 mode row (OUTPUT_ROW = 0x615c100), the scanout pool reservation (SCANOUT_RESERVATION), and the Settings viewport (SETTINGS_VIEWPORT). Whenever LEONIDA_OUTPUT asked for a size smaller than 2560x1440 (down to parse_output's 1280x720 minimum, e.g. 1920x1080, 2560x1080, 1664x936, 1600x900, 1280x720), scanout_pool_bytes(width, height) shrank below the larger unpatched mode rows immediately preceding OUTPUT_ROW, allowing the title to pick a larger row and overflow the smaller scanout reservation.
  • Change:
    • Adds LOWER_OUTPUT_ROWS covering all three intermediate rows (OUTPUT_ROW - 0x10 = 0x615c0f0 for 2560x1440, OUTPUT_ROW - 0x20 = 0x615c0e0 for 1920x1080, OUTPUT_ROW - 0x30 = 0x615c0d0 for 1664x936; the 1280x720 row at OUTPUT_ROW - 0x40 is already parse_output's minimum).
    • Appends a capping OwnedPatch for every row where width < row_w || height < row_h. Outputs at or above 2560x1440 (2560x1440, 3440x1440, 3840x2160) emit the exact same 3 patches as before.
    • Updates the_resolution_places_are_in_the_retail_executable to check output_patches(1280, 720) so all 6 patches (the 3 base patches plus all 3 LOWER_OUTPUT_ROWS) are validated directly against the 1.0.2.1 executable when LEONIDA_GAME_DIR is set.
  • Overlap check: Completely disjoint from open PR #2756 (D3D12-SERIESX-FSR-MAX-SCALED, which touches render_scale_patches, not output_patches).
  • Evidence classification: READ IN CODE (d3d12/crates/leonida-loader/src/hooks.rs, docs/ultrawide.md) + fresh red→green unit tests + live retail-executable byte check (the_resolution_places_are_in_the_retail_executable) + MEASURED 300 s in-world game gate exercising LEONIDA_OUTPUT=1920x1080.

Tested

  • python3 -I scripts/check_no_game_data.py d3d12/crates/leonida-loader/src/hooks.rs → exit 0.
  • Freshly compiled (cargo clean -p leonida-loader --target x86_64-pc-windows-msvc) leonida-loader unit test binary (x86_64-pc-windows-msvc) and ran under Wine:
    • RED on origin/main (only the new test hooks::tests::output_below_table_rows_caps_every_larger_mode_row applied):
      running 1 test
      thread 'hooks::tests::output_below_table_rows_caps_every_larger_mode_row' panicked:
      assertion `left == right` failed
        left: 3
       right: 4
      test result: FAILED. 0 passed; 1 failed; 0 ignored
      
    • GREEN on PR head 6b4f77222 (rebased onto 3e7b34a52):
      • Retail executable validation (LEONIDA_GAME_DIR set, no SKIP:):
        test hooks::tests::the_resolution_places_are_in_the_retail_executable ... ok (all 6 output patches verified against 1.0.2.1 binary).
      • Full crate suite: test result: ok. 85 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out.
  • 300 s in-world game gate (MEASURED on exact PR head 6b4f77222, Series S + DLSS Quality 1280×720 → 1920×1080, LEONIDA_OUTPUT=1920x1080 exercising the 2560x1440 row cap live, Option A mods/gate_driver mode = roam loaded):
    • Verdict: PASS (310.78 s in-world after world entry at 62.62 s; also passed an earlier cold-cache 310.93 s run with 0 errors).
    • Frames & pacing: 3,319 frames after +60 s (3,427 total world presents), 15.89 median FPS (16.22 end median FPS), 111.28 ms p95 frame time, 4.677 s longest present gap (<= 10.0 s).
    • Memory & stability: 6,678 MiB peak VRAM (<= 7,400 MiB), 0 device losses (0x887A0005), 0 crashes, 0 panics, 0 faults before stop, 0 kernel NVRM: Xid errors.
    • Option A gate_driver note: mods/gate_driver loaded in mode = roam with 0 GATE FAIL; its 10 s menu-press cadence missed the brief world-entry probe window so the 310.78 s run stayed on the in-world camera cleanly at 15.89 FPS.

GPUs tested: NVIDIA GeForce RTX 3070 Ti 8 GB, driver 620.73.04, Arch Linux (Wine 11.22 + VKD3D-Proton 3.2.0).

AI-assisted: yes (authored by Gemini 4 Neon; independent fresh review pass by a separate Gemini 4 Neon agent requested capping < 1080p rows and validating all rows in the_resolution_places_are_in_the_retail_executable, addressed and approved in re-review).

Checklist

  • Based on current main (3e7b34a52) 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 (check_no_game_data.py clean on both source and PR description).
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — loader output-mode table patch)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5589002615 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-12-01T15:36:53Z. --- Claimed in the coordination issue as: [`D3D12-LOADER-OUTPUT-1440-CAP`](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7313472039). ### What and why When `LEONIDA_OUTPUT` asks for an output size smaller than intermediate rows of the title's mode table (`2560x1440`, `1920x1080`, `1664x936`, documented in `docs/ultrawide.md` at `.rdata` `0x615c0c0..=0x615c100`), also cap every lower mode-table row larger than `(width, height)` in `d3d12/crates/leonida-loader/src/hooks.rs`. - **Why:** `output_patches(width, height)` previously patched only the `3840x2160` mode row (`OUTPUT_ROW = 0x615c100`), the scanout pool reservation (`SCANOUT_RESERVATION`), and the Settings viewport (`SETTINGS_VIEWPORT`). Whenever `LEONIDA_OUTPUT` asked for a size smaller than `2560x1440` (down to `parse_output`'s `1280x720` minimum, e.g. `1920x1080`, `2560x1080`, `1664x936`, `1600x900`, `1280x720`), `scanout_pool_bytes(width, height)` shrank below the larger unpatched mode rows immediately preceding `OUTPUT_ROW`, allowing the title to pick a larger row and overflow the smaller scanout reservation. - **Change:** - Adds `LOWER_OUTPUT_ROWS` covering all three intermediate rows (`OUTPUT_ROW - 0x10 = 0x615c0f0` for `2560x1440`, `OUTPUT_ROW - 0x20 = 0x615c0e0` for `1920x1080`, `OUTPUT_ROW - 0x30 = 0x615c0d0` for `1664x936`; the `1280x720` row at `OUTPUT_ROW - 0x40` is already `parse_output`'s minimum). - Appends a capping `OwnedPatch` for every row where `width < row_w || height < row_h`. Outputs at or above `2560x1440` (`2560x1440`, `3440x1440`, `3840x2160`) emit the exact same 3 patches as before. - Updates `the_resolution_places_are_in_the_retail_executable` to check `output_patches(1280, 720)` so all 6 patches (the 3 base patches plus all 3 `LOWER_OUTPUT_ROWS`) are validated directly against the 1.0.2.1 executable when `LEONIDA_GAME_DIR` is set. - **Overlap check:** Completely disjoint from open PR `#2756` (`D3D12-SERIESX-FSR-MAX-SCALED`, which touches `render_scale_patches`, not `output_patches`). - **Evidence classification:** **READ IN CODE** (`d3d12/crates/leonida-loader/src/hooks.rs`, `docs/ultrawide.md`) + fresh red→green unit tests + live retail-executable byte check (`the_resolution_places_are_in_the_retail_executable`) + **MEASURED** 300 s in-world game gate exercising `LEONIDA_OUTPUT=1920x1080`. ### Tested - `python3 -I scripts/check_no_game_data.py d3d12/crates/leonida-loader/src/hooks.rs` → exit 0. - Freshly compiled (`cargo clean -p leonida-loader --target x86_64-pc-windows-msvc`) `leonida-loader` unit test binary (`x86_64-pc-windows-msvc`) and ran under Wine: - **RED on `origin/main`** (only the new test `hooks::tests::output_below_table_rows_caps_every_larger_mode_row` applied): ```text running 1 test thread 'hooks::tests::output_below_table_rows_caps_every_larger_mode_row' panicked: assertion `left == right` failed left: 3 right: 4 test result: FAILED. 0 passed; 1 failed; 0 ignored ``` - **GREEN on PR head `6b4f77222` (rebased onto `3e7b34a52`)**: - Retail executable validation (`LEONIDA_GAME_DIR` set, no `SKIP:`): `test hooks::tests::the_resolution_places_are_in_the_retail_executable ... ok` (all 6 output patches verified against 1.0.2.1 binary). - Full crate suite: `test result: ok. 85 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out`. - **300 s in-world game gate (MEASURED on exact PR head `6b4f77222`, Series S + DLSS Quality `1280×720 → 1920×1080`, `LEONIDA_OUTPUT=1920x1080` exercising the `2560x1440` row cap live, Option A `mods/gate_driver` `mode = roam` loaded):** - **Verdict:** **PASS** (`310.78 s` in-world after world entry at `62.62 s`; also passed an earlier cold-cache 310.93 s run with `0` errors). - **Frames & pacing:** `3,319` frames after +60 s (`3,427` total world presents), `15.89` median FPS (`16.22` end median FPS), `111.28 ms` p95 frame time, `4.677 s` longest present gap (`<= 10.0 s`). - **Memory & stability:** `6,678 MiB` peak VRAM (`<= 7,400 MiB`), `0` device losses (`0x887A0005`), `0` crashes, `0` panics, `0` faults before stop, `0` kernel `NVRM: Xid` errors. - **Option A `gate_driver` note:** `mods/gate_driver` loaded in `mode = roam` with `0` `GATE FAIL`; its 10 s menu-press cadence missed the brief world-entry probe window so the 310.78 s run stayed on the in-world camera cleanly at `15.89` FPS. GPUs tested: NVIDIA GeForce RTX 3070 Ti 8 GB, driver 620.73.04, Arch Linux (Wine 11.22 + VKD3D-Proton 3.2.0). AI-assisted: yes (authored by Gemini 4 Neon; independent fresh review pass by a separate Gemini 4 Neon agent requested capping `< 1080p` rows and validating all rows in `the_resolution_places_are_in_the_retail_executable`, addressed and approved in re-review). ### Checklist - [x] Based on current `main` (`3e7b34a52`) 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 (`check_no_game_data.py` clean on both source and PR description). - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a — loader output-mode table patch)
merzleckeier commented 2026-12-01 16:10:24 +00:00 (Migrated from github.com)

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


Readback of the complete synthetic output table after apply_all at 6b4f7722 + 0ff8a532f. The Win64 fixture uses the real patch planner and write routine on a private synthetic mapping under Wine 11.22.

Requested output Main: oversized table rows left Main + PR: oversized rows left
1600×900 3 0
3440×1080 1 0
1280×720 3 0

The refresh and flag fields stayed intact and the scanout reservation matched the requested size in all cases. Corrupting the expected bytes for the final planned write rejected the group before modifying any earlier entry. The same readback assertion fails on main and passes on the PR. This covers the table update and preflight; actual mode selection by the title was outside the fixture.

MEASURED with synthetic inputs. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317155997 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7317155997). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T16:10:24Z. --- Readback of the complete synthetic output table after apply_all at 6b4f7722 + 0ff8a532f. The Win64 fixture uses the real patch planner and write routine on a private synthetic mapping under Wine 11.22. | Requested output | Main: oversized table rows left | Main + PR: oversized rows left | | --- | ---: | ---: | | 1600×900 | 3 | 0 | | 3440×1080 | 1 | 0 | | 1280×720 | 3 | 0 | The refresh and flag fields stayed intact and the scanout reservation matched the requested size in all cases. Corrupting the expected bytes for the final planned write rejected the group before modifying any earlier entry. The same readback assertion fails on main and passes on the PR. This covers the table update and preflight; actual mode selection by the title was outside the fixture. MEASURED with synthetic inputs. AI-assisted (Codex).
Kal0s-design commented 2026-12-01 17:20:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-01T17:20:22Z.


Verified on native Windows 11 (MSVC target, rustc 1.98.1), since the runs in the description are under Wine.

Head 6b4f77222 merged with main d2a564b66 (clean merge):

  • cargo test -p leonida-loader --lib: 85 passed, 0 failed.
  • cargo clippy -p leonida-loader --all-targets: no warnings.
  • the_resolution_places_are_in_the_retail_executable prints SKIP: LEONIDA_GAME_DIR is not set here (no game files on this machine), so the retail byte check rests on the author's run.

The new test catches the change:

  • with the cap condition replaced by false (the main behaviour), output_below_table_rows_caps_every_larger_mode_row fails at hooks.rs:604, left: 3, right: 4;
  • with || turned into &&, it fails at hooks.rs:610 on the 2560x1080 case, left: 3, right: 4. So the ultrawide case with only one dimension below the row is covered too.

Not checked: the game itself, and what the title does with several identical rows after capping (for example 1280x720 turns the three rows above it into 1280x720 too).

GPUs tested: n/a (CPU unit tests only).

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319140360 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7319140360). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-01T17:20:22Z. --- Verified on native Windows 11 (MSVC target, rustc 1.98.1), since the runs in the description are under Wine. Head `6b4f77222` merged with `main` `d2a564b66` (clean merge): - `cargo test -p leonida-loader --lib`: 85 passed, 0 failed. - `cargo clippy -p leonida-loader --all-targets`: no warnings. - `the_resolution_places_are_in_the_retail_executable` prints `SKIP: LEONIDA_GAME_DIR is not set` here (no game files on this machine), so the retail byte check rests on the author's run. The new test catches the change: - with the cap condition replaced by `false` (the `main` behaviour), `output_below_table_rows_caps_every_larger_mode_row` fails at `hooks.rs:604`, `left: 3, right: 4`; - with `||` turned into `&&`, it fails at `hooks.rs:610` on the 2560x1080 case, `left: 3, right: 4`. So the ultrawide case with only one dimension below the row is covered too. Not checked: the game itself, and what the title does with several identical rows after capping (for example 1280x720 turns the three rows above it into 1280x720 too). GPUs tested: n/a (CPU unit tests only). AI-assisted: yes (Claude Code).
KelboLive commented 2026-12-01 17:34:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T17:34:06Z.

Review: COMMENTED


The logic is right: width < row_w || height < row_h (hooks.rs:171) is exactly "either dimension exceeds the request", and since scanout_pool_bytes is monotone in both dimensions, no selectable row can then need a bigger pool than the reservation. apply_all preflights the added rows before any write (:478-493), so a mismatched lower-row byte refuses the whole change as documented, and exact-limit rows are untouched. The <= mutation fails the new test at hooks.rs:604 (5 vs 4), so the boundary is covered; 85/85 lib tests, and the merges with #2890/#2891 are clean.

Two nits:

  • docs/ultrawide.md:130-132 still says LEONIDA_OUTPUT changes "the first three together" — it now changes up to six rows. Update it in this PR.
  • At 1280x720 the three lower rows all become 1280x720 (five identical modes), which is intended but not exercised: the live gate only covers 1920x1080. A 720p or 1600x900 smoke run, or a sentence that duplicate rows are expected, would close the remaining gap.

CI is red only on unrelated Python tool tests (files that moved after this PR's base); a rebase onto current main should clear it. Note the retail-bytes test passed vacuously here (LEONIDA_GAME_DIR unset), so the six byte sites are still only validated on a machine with the 1.0.2.1 executable.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6136549665 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#pullrequestreview-6136549665). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T17:34:06Z. **Review:** COMMENTED --- The logic is right: `width < row_w || height < row_h` (`hooks.rs:171`) is exactly "either dimension exceeds the request", and since `scanout_pool_bytes` is monotone in both dimensions, no selectable row can then need a bigger pool than the reservation. `apply_all` preflights the added rows before any write (`:478-493`), so a mismatched lower-row byte refuses the whole change as documented, and exact-limit rows are untouched. The `<=` mutation fails the new test at `hooks.rs:604` (5 vs 4), so the boundary is covered; 85/85 lib tests, and the merges with #2890/#2891 are clean. Two nits: - **`docs/ultrawide.md:130-132` still says `LEONIDA_OUTPUT` changes "the first three together"** — it now changes up to six rows. Update it in this PR. - At 1280x720 the three lower rows all become 1280x720 (five identical modes), which is intended but not exercised: the live gate only covers 1920x1080. A 720p or 1600x900 smoke run, or a sentence that duplicate rows are expected, would close the remaining gap. CI is red only on unrelated Python tool tests (files that moved after this PR's base); a rebase onto current main should clear it. Note the retail-bytes test passed vacuously here (`LEONIDA_GAME_DIR` unset), so the six byte sites are still only validated on a machine with the 1.0.2.1 executable.
andrew-ai commented 2026-12-02 00:59:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-02T00:59:56Z.


CI diagnosis for the dependency discussion on #2958. The failed Windows check and Linux Python job both annotated the same five Python files in run 46681212676. The base commit 0ff8a532f had its own failed push run (46678721362): both jobs already reported test_wave_diff.py, test_wave_trace.py, test_x64_recomp.py and test_x64_recomp_qemu_runner.py there. The fifth file, test_piecewise_parse.py, was only annotated on the PR run. The Linux log shows its code-object comparison failing for scripts/run_gpu_tests.py. I checked the actual CI merge commit 24d9f6499 against its first parent: only d3d12/crates/leonida-loader/src/hooks.rs changed, so the Python test and script are identical. This establishes four pre-existing failures; the fifth remains unexplained. A fresh CI run after updating the base would give a current verdict. Base run · PR run. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7331198168 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7331198168). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-02T00:59:56Z. --- CI diagnosis for the dependency discussion on #2958. The failed Windows check and Linux Python job both annotated the same five Python files in run 46681212676. The base commit 0ff8a532f had its own failed push run (46678721362): both jobs already reported test_wave_diff.py, test_wave_trace.py, test_x64_recomp.py and test_x64_recomp_qemu_runner.py there. The fifth file, test_piecewise_parse.py, was only annotated on the PR run. The Linux log shows its code-object comparison failing for scripts/run_gpu_tests.py. I checked the actual CI merge commit 24d9f6499 against its first parent: only d3d12/crates/leonida-loader/src/hooks.rs changed, so the Python test and script are identical. This establishes four pre-existing failures; the fifth remains unexplained. A fresh CI run after updating the base would give a current verdict. [Base run](https://github.com/ProjectLeonida/mandy/actions/runs/46678721362) · [PR run](https://github.com/ProjectLeonida/mandy/actions/runs/46681212676). Codex-assisted.
andrew-ai commented 2026-12-02 01:02:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-02T01:02:30Z.


Follow-up: I reproduced the fifth failure on the base alone (0ff8a532f), with Windows CPython 3.12.10 and PYTHONHASHSEED=0. For scripts/run_gpu_tests.py, the piece sizes 1, 40 and 300 all failed the code_facts comparison. An equal frozenset constant had a different repr iteration order. Normalizing only the frozenset representation made all three comparisons pass, including the bytecode and line-position fields. Both historical Linux CI runs used CPython 3.12.16. Main already contains the corresponding normalization in 9b7674d64. This accounts for the previously unexplained failure without the loader change. A new hosted run is still needed for current CI status. Codex-assisted.

Local integration check: PR head 6b4f77222 merged cleanly into main 5b03c688b (tree 29a8f1b82). I ran all five previously failing suites on Windows with CPython 3.12.10. The parser, wave diff, wave trace and QEMU-runner wrapper passed all 53 tests. The x64 recompiler suite passed 15, with 34 skipped because qemu-system-aarch64 was unavailable. Total: 68 passed, 34 skipped, zero failures. This is a local result; the hosted check still needs a fresh run.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7331246402 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7331246402). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-02T01:02:30Z. --- Follow-up: I reproduced the fifth failure on the base alone (0ff8a532f), with Windows CPython 3.12.10 and PYTHONHASHSEED=0. For scripts/run_gpu_tests.py, the piece sizes 1, 40 and 300 all failed the code_facts comparison. An equal frozenset constant had a different repr iteration order. Normalizing only the frozenset representation made all three comparisons pass, including the bytecode and line-position fields. Both historical Linux CI runs used CPython 3.12.16. Main already contains the corresponding normalization in 9b7674d64. This accounts for the previously unexplained failure without the loader change. A new hosted run is still needed for current CI status. Codex-assisted. Local integration check: PR head 6b4f77222 merged cleanly into main 5b03c688b (tree 29a8f1b82). I ran all five previously failing suites on Windows with CPython 3.12.10. The parser, wave diff, wave trace and QEMU-runner wrapper passed all 53 tests. The x64 recompiler suite passed 15, with 34 skipped because qemu-system-aarch64 was unavailable. Total: 68 passed, 34 skipped, zero failures. This is a local result; the hosted check still needs a fresh run.
MoonEyes commented 2026-12-02 12:30:19 +00:00 (Migrated from github.com)

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


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:7345439495 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7345439495). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:30:19Z. --- 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).
MoonEyes commented 2026-12-02 16:10:18 +00:00 (Migrated from github.com)

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


RUN (in game, batch of five render-path pull requests), each head merged with git merge --no-ff onto main 3c106eb2f, in one build: #2993 ddc10507d, #2889 bc390c26f, #2851 cf8f7be78, #2980 12c14a999, #2994 fccce4485. 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 (48 samples) median 17.2, mean 17.3
Rendered fps, last 120 s median 17.3

For reference, the same machine and route rendered 13.3 to 16.7 fps today on main with single pull requests or other batches. These fps are a check that nothing fell over, not a measurement of a gain.

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

Limits: one run; free system memory median 2.5 GB; arrival in the world was driven by keys and not checked on pictures.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7351547942 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7351547942). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T16:10:18Z. --- RUN (in game, batch of five render-path pull requests), each head merged with `git merge --no-ff` onto main `3c106eb2f`, in one build: #2993 `ddc10507d`, #2889 `bc390c26f`, #2851 `cf8f7be78`, #2980 `12c14a999`, #2994 `fccce4485`. 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 (48 samples) | median 17.2, mean 17.3 | | Rendered fps, last 120 s | median 17.3 | For reference, the same machine and route rendered 13.3 to 16.7 fps today on main with single pull requests or other batches. These fps are a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; free system memory median 2.5 GB; arrival in the world was driven by keys and not checked on pictures. AI-assisted (Claude Code).
MoonEyes commented 2026-12-02 18:28:41 +00:00 (Migrated from github.com)

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


Verification triage of #2889

Head bc390c26f is already verified: native Windows unit checks, and MoonEyes' in-game batch run on this exact head (2026-12-02 16:10). CI passes (6/6) and the PR merges cleanly with main 45dc41f95. 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:7354652153 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7354652153). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:28:41Z. --- **Verification triage of #2889** Head `bc390c26f` is already verified: native Windows unit checks, and MoonEyes' in-game batch run on this exact head (2026-12-02 16:10). CI passes (6/6) and the PR merges cleanly with `main` `45dc41f95`. 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 03:56:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T03:56:31Z.


VERIFY-2889 — leonida-loader en verde con el cambio, y el tope protege al registro de eventos

Un fichero, hooks.rs +64/−4, cinco días abierto:

cargo test -p leonida-loader --lib     91 passed; 0 failed

El cambio, por su título: recorta las filas de la tabla de modos que son más grandes que LEONIDA_OUTPUT — y eso importa porque la tabla de modos se escribe en el registro de eventos, y una fila gigante es una entrada de registro gigante (el límite de Windows para un mensaje es de decenas de miles de caracteres, y pasarse pierde la entrada o la trunca, no la falla).

Lo que verifiqué y lo que no: 91 tests del crate pasan, que es lo que un cambio en hooks.rs puede prometer sin Windows de verdad; no probé una fila de un megabyte entrando en el registro, porque eso necesita un proceso con su propio log y un límite alcanzado.

Y una nota sobre el nombre: LEONIDA_OUTPUT es la variable que el jugador puede poner para ver más salida, y el tope se aplica justo a lo que esa variable controla — o sea que subirla sube el tope, que es lo que uno espera, y no hay un límite escondido en el código.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7367096364 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2889#issuecomment-7367096364). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T03:56:31Z. --- ## VERIFY-2889 — `leonida-loader` en verde con el cambio, y el tope protege al registro de eventos **Un fichero, `hooks.rs` +64/−4, cinco días abierto**: ``` cargo test -p leonida-loader --lib 91 passed; 0 failed ``` **El cambio, por su título**: **recorta las filas de la tabla de modos que son más grandes que `LEONIDA_OUTPUT`** — **y eso importa porque la tabla de modos se escribe en el registro de eventos, y una fila gigante es una entrada de registro gigante** (el límite de Windows para un mensaje es de decenas de miles de caracteres, y pasarse **pierde la entrada o la trunca, no la falla**). **Lo que verifiqué y lo que no**: **91 tests del crate pasan**, **que es lo que un cambio en `hooks.rs` puede prometer sin Windows de verdad**; **no probé una fila de un megabyte entrando en el registro**, **porque eso necesita un proceso con su propio log y un límite alcanzado.** **Y una nota sobre el nombre**: **`LEONIDA_OUTPUT` es la variable que el jugador puede poner para ver más salida**, **y el tope se aplica justo a lo que esa variable controla** — **o sea que subirla sube el tope, que es lo que uno espera, y no hay un límite escondido en el código.**
MoonEyes commented 2026-12-03 17:26:36 +00:00 (Migrated from github.com)

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


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

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