d3d12: fix oversized HUD and menus at native 1440p #3124

Closed
Rulemore wants to merge 3 commits from upstream-pr/3124 into main
Rulemore commented 2026-12-02 12:35:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Rulemore on 2026-12-02T12:35:36Z.


Claimed in the coordination issue as D3D12-NATIVE1440-LEGACY-UI.

Replaces #3014, which was closed after hooks.rs diverged from main. Related output-planner work in #2889 and #2958 may need conflict resolution when combined. This patch can land independently.

What and why

On Series X at native 2560×1440, the game lays out 4K-authored HUD and menu elements on a 1440p stage, making them about 1.5 times too large. Restore the legacy 3840×2160 UI layout from DexNom/VIctory via VIctory-NVIDIA, while keeping render and output resolution at 2560×1440 for the native profile. The settings copy enables legacy UI and sets the layout and output sizes. The 94 MiB UI pool holds two 4K layout surfaces and two 1440p targets.

The loader checks the original settings-copy site and trampoline padding and stages all page permissions before writing the patch group. The port retains the current Series S budget handling, the optional FSR maximum-scale behavior, and the separate mode-table path for other output sizes. docs/ultrawide.md describes the two paths.

Tested

  • The native-1440p layout regression fails on upstream main and passes with this change.
  • cargo test --locked -p leonida-loader --lib passed all 96 tests on Windows, including verification against the supported 1.0.2.1 image and tests of the Series S budgets and FSR levers.
  • Targeted loader Clippy, generated switch documentation, changed-file clean-room scan, and git diff --check passed.
  • The original #3014 build reached the start screen at native 1440p, and the reporter confirmed the corrected in-game HUD scale. The updated branch was validated with loader tests.

GPUs tested in #3014: NVIDIA GeForce RTX 4070 SUPER, driver 617.14, Windows 11 build 26200. No GPU run on this revision.

AI-assisted: OpenAI Codex (GPT-6.2 Sol) for the update and GPT-6.2 Sol in a separate read-only review. Both review findings were addressed and rechecked.

Checklist

  • Based on upstream main (f45165e15).
  • One topic, native 1440p UI sizing.
  • Changed-file clean-room scan passed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5606496413 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124). Originally posted by [Rulemore](https://github.com/Rulemore) on 2026-12-02T12:35:36Z. --- Claimed in the coordination issue as [D3D12-NATIVE1440-LEGACY-UI](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7329633830). Replaces #3014, which was closed after `hooks.rs` diverged from `main`. Related output-planner work in #2889 and #2958 may need conflict resolution when combined. This patch can land independently. ### What and why On Series X at native 2560×1440, the game lays out 4K-authored HUD and menu elements on a 1440p stage, making them about 1.5 times too large. Restore the legacy 3840×2160 UI layout from DexNom/VIctory via VIctory-NVIDIA, while keeping render and output resolution at 2560×1440 for the native profile. The settings copy enables legacy UI and sets the layout and output sizes. The 94 MiB UI pool holds two 4K layout surfaces and two 1440p targets. The loader checks the original settings-copy site and trampoline padding and stages all page permissions before writing the patch group. The port retains the current Series S budget handling, the optional FSR maximum-scale behavior, and the separate mode-table path for other output sizes. `docs/ultrawide.md` describes the two paths. ### Tested - The native-1440p layout regression fails on upstream `main` and passes with this change. - `cargo test --locked -p leonida-loader --lib` passed all 96 tests on Windows, including verification against the supported 1.0.2.1 image and tests of the Series S budgets and FSR levers. - Targeted loader Clippy, generated switch documentation, changed-file clean-room scan, and `git diff --check` passed. - The original #3014 build reached the start screen at native 1440p, and the reporter confirmed the corrected in-game HUD scale. The updated branch was validated with loader tests. GPUs tested in #3014: NVIDIA GeForce RTX 4070 SUPER, driver 617.14, Windows 11 build 26200. No GPU run on this revision. AI-assisted: OpenAI Codex (GPT-6.2 Sol) for the update and GPT-6.2 Sol in a separate read-only review. Both review findings were addressed and rechecked. ### Checklist - [x] Based on upstream `main` (`f45165e15`). - [x] One topic, native 1440p UI sizing. - [x] Changed-file clean-room scan passed.
Kal0s-design commented 2026-12-02 12:55:45 +00:00 (Migrated from github.com)

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


Ran natively on Windows 11, head 64600ef0c merged into current main (23a51c494, newer than the f45165e15 base in the description; the merge was clean), debug build with overflow checks on.

Command (from d3d12/) Result
cargo test --locked -p leonida-loader --lib (debug) 96 passed, 0 failed
cargo test --locked -p leonida-loader --lib --release 96 passed, 0 failed
cargo clippy --locked -p leonida-loader --lib no warnings
cargo clippy --locked -p leonida-loader --lib --tests no warnings

I had no game image here, so the_resolution_places_are_in_the_retail_executable printed SKIP: LEONIDA_GAME_DIR is not set and counts as a pass. The settings-copy hash, the 59 0xcc bytes at 0x55ff285 and the reservation bytes are therefore checked only by your run against the 1.0.2.1 image.

What I added: the new apply_all tests mock VirtualProtect, so I ran the real apply_all on pages from VirtualAlloc, with VirtualQuery before and after (throwaway tests, not committed).

  • Six members (two on one RX page, a hashed 11-byte member, two on a read-only page) were all written. Untouched bytes between them stayed as they were. A second run returned 0 and changed nothing.
  • One case leaves a page RWX. A member that crosses a page boundary, where an earlier member of the same group sits on the first of those pages:
// three pages, all PAGE_EXECUTE_READ, filled with 0xcc
apply_all(base, &[patch(0x1100, 4), patch(0x1ffc, 8)])   // second one spans page 1 and page 2
page 0 page 1 page 2
main (23a51c494) 0x20 0x20 0x20
this PR 0x20 0x20 0x40 (PAGE_EXECUTE_READWRITE)

Both writes land and the function returns 2. The cause is that staging calls VirtualProtect on the first member, which turns page 1 RWX. The crossing member is staged next, and the old it gets back is the protection of its first page, now RWX. In the reverse restore that member puts pages 1 and 2 back to RWX, and the first member then puts only page 1 back to RX. On main each patch restores right after its own write, so the same layout ends RX on all three pages. The failure path (a later writable failing) restores the same way, so it has the same issue.

None of the groups in the tree today has a member that crosses a page. The native group is 0x247ad4a+5, 0x55ff285+59 and 0x1d70b98+11, and the experimental output and Series S groups don't cross either. So this is latent. The comment above the restore loop says reverse order handles shared pages, though, and that holds only for members inside one page. Staging per page would close it: collect the distinct pages of the group, VirtualProtect each page once, remember each page's own old value, and restore those.

Other checks:

  • The trampoline bytes decode as described: the original vmovdqu [rsi+0x638], ymm0, mov byte [rsi+0x638], 1, mov rax, 0x00000870_00000f00 stored at +0x63c, mov rax, 0x000005a0_00000a00 stored at +0x654, vzeroupper, then jmp. That's 57 bytes plus two 0xcc of padding. The jump into the cave from 0x1d70b98 lands on 0x55ff285, and the jump back at 0x55ff2b9 lands on 0x1d70ba3, the end of the 11-byte site. The three members don't overlap.
  • 94 MiB is exactly scanout_pool_bytes(3840, 2160) + scanout_pool_bytes(2560, 1440) (64 + 30 MiB) and is 2 MiB aligned. The test could compute it that way instead of hard-coding 94 << 20.

Not checked: the game; the bytes against the retail image (no image here); whether rax is free at 0x1d70ba3, since the cave overwrites it with no save/restore; and the 8-byte store at +0x654, which ends 4 bytes past the 32 bytes the original vmovdqu writes (+0x638..+0x658). Both need the disassembly around the site.

GPUs tested: n/a (CPU-only tests).
AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346094149 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7346094149). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T12:55:45Z. --- Ran natively on Windows 11, head `64600ef0c` merged into current `main` (`23a51c494`, newer than the `f45165e15` base in the description; the merge was clean), debug build with overflow checks on. | Command (from `d3d12/`) | Result | |---|---| | `cargo test --locked -p leonida-loader --lib` (debug) | 96 passed, 0 failed | | `cargo test --locked -p leonida-loader --lib --release` | 96 passed, 0 failed | | `cargo clippy --locked -p leonida-loader --lib` | no warnings | | `cargo clippy --locked -p leonida-loader --lib --tests` | no warnings | I had no game image here, so `the_resolution_places_are_in_the_retail_executable` printed `SKIP: LEONIDA_GAME_DIR is not set` and counts as a pass. The settings-copy hash, the 59 `0xcc` bytes at `0x55ff285` and the reservation bytes are therefore checked only by your run against the 1.0.2.1 image. What I added: the new `apply_all` tests mock `VirtualProtect`, so I ran the real `apply_all` on pages from `VirtualAlloc`, with `VirtualQuery` before and after (throwaway tests, not committed). - Six members (two on one RX page, a hashed 11-byte member, two on a read-only page) were all written. Untouched bytes between them stayed as they were. A second run returned 0 and changed nothing. - **One case leaves a page RWX.** A member that crosses a page boundary, where an earlier member of the same group sits on the first of those pages: ```rust // three pages, all PAGE_EXECUTE_READ, filled with 0xcc apply_all(base, &[patch(0x1100, 4), patch(0x1ffc, 8)]) // second one spans page 1 and page 2 ``` | | page 0 | page 1 | page 2 | |---|---|---|---| | `main` (`23a51c494`) | 0x20 | 0x20 | 0x20 | | this PR | 0x20 | 0x20 | **0x40** (PAGE_EXECUTE_READWRITE) | Both writes land and the function returns 2. The cause is that staging calls `VirtualProtect` on the first member, which turns page 1 RWX. The crossing member is staged next, and the `old` it gets back is the protection of its first page, now RWX. In the reverse restore that member puts pages 1 and 2 back to RWX, and the first member then puts only page 1 back to RX. On `main` each patch restores right after its own write, so the same layout ends RX on all three pages. The failure path (a later `writable` failing) restores the same way, so it has the same issue. None of the groups in the tree today has a member that crosses a page. The native group is `0x247ad4a`+5, `0x55ff285`+59 and `0x1d70b98`+11, and the experimental output and Series S groups don't cross either. So this is latent. The comment above the restore loop says reverse order handles shared pages, though, and that holds only for members inside one page. Staging per page would close it: collect the distinct pages of the group, `VirtualProtect` each page once, remember each page's own old value, and restore those. Other checks: - The trampoline bytes decode as described: the original `vmovdqu [rsi+0x638], ymm0`, `mov byte [rsi+0x638], 1`, `mov rax, 0x00000870_00000f00` stored at `+0x63c`, `mov rax, 0x000005a0_00000a00` stored at `+0x654`, `vzeroupper`, then `jmp`. That's 57 bytes plus two `0xcc` of padding. The jump into the cave from `0x1d70b98` lands on `0x55ff285`, and the jump back at `0x55ff2b9` lands on `0x1d70ba3`, the end of the 11-byte site. The three members don't overlap. - 94 MiB is exactly `scanout_pool_bytes(3840, 2160) + scanout_pool_bytes(2560, 1440)` (64 + 30 MiB) and is 2 MiB aligned. The test could compute it that way instead of hard-coding `94 << 20`. Not checked: the game; the bytes against the retail image (no image here); whether `rax` is free at `0x1d70ba3`, since the cave overwrites it with no save/restore; and the 8-byte store at `+0x654`, which ends 4 bytes past the 32 bytes the original `vmovdqu` writes (`+0x638`..`+0x658`). Both need the disassembly around the site. GPUs tested: n/a (CPU-only tests). AI-assisted: yes (Claude Code).
lixonik commented 2026-12-02 14:59:47 +00:00 (Migrated from github.com)

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


Verified PR #3124 (64600ef0c) merged cleanly onto main (acc350745) on Windows 10 x64 (Rust 1.98.1):

  • Clean-room check: python -I scripts/check_no_game_data.py PASS.
  • Unit tests: cargo test -p leonida-loader --lib --locked -- 96 passed, 0 failed (including hooks::tests::native_1440_keeps_the_legacy_ui_stage and hooks::tests::native_ui_trampoline_sets_layout_and_output_and_returns_after_the_copy).

Verdict: PASS (CPU/unit tests only; no game launch).

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7349514549 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7349514549). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T14:59:47Z. --- Verified PR #3124 (`64600ef0c`) merged cleanly onto `main` (`acc350745`) on Windows 10 x64 (Rust 1.98.1): - **Clean-room check:** `python -I scripts/check_no_game_data.py` PASS. - **Unit tests:** `cargo test -p leonida-loader --lib --locked` -- **96 passed, 0 failed** (including `hooks::tests::native_1440_keeps_the_legacy_ui_stage` and `hooks::tests::native_ui_trampoline_sets_layout_and_output_and_returns_after_the_copy`). Verdict: **PASS** (CPU/unit tests only; no game launch). AI-assisted: yes (Antigravity).
MoonEyes commented 2026-12-02 18:18:27 +00:00 (Migrated from github.com)

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


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

  • Head verified: 64600ef0c8403ec1f4816d7edf12da28bd309a3e (2 files: leonida-loader/src/hooks.rs +273/-36,
    docs/ultrawide.md).
  • Merge base f45165e15. git merge-tree --write-tree origin/main pr/3124 against main 45dc41f95 is clean
    (104 commits behind).
  • CI: no check runs on this head (fork workflows waiting for approval).
  • python -I scripts/check_no_game_data.py on both files: exit 0. The patch carries a BLAKE3 hash of the 11
    original bytes at SETTINGS_COPY, plus the re-emitted 8-byte vmovdqu and vzeroupper in the cave. That is
    the same "expected bytes" convention the other hook groups in hooks.rs already use. No game data beyond that.
  • Cross-PR: git merge-tree pr/3124 pr/2889 conflicts in hooks.rs. Both change output_patches. The body
    notes this.

Review

  • Cause: at native 2560x1440, shrinking the 3840x2160 mode row lays the 4K-authored UI onto a 1440p stage
    (1.5x too large). The fix keeps the mode row and Settings viewport stock. A trampoline at every settings copy
    (native_1440_patches, hooks.rs:181-224) sets the legacy-UI flag, a 3840x2160 UI size and a 2560x1440
    output, and the scanout pool grows to 94 MiB for both surface pairs. This is a root-cause fix for the UI scale.
  • Trampoline bytes: the site is 11 bytes (vmovdqu [rsi+0x638], ymm0 = 8, plus vzeroupper = 3). The cave
    replays both, so nothing of the original is lost. The jmp back is computed from code.len() before the 0xcc
    fill. The cave is checked as 59 bytes of 0xcc before it is written. I found no defects here.
  • Licence: the comment credits DexNom/VIctory via VIctory-NVIDIA native_1440p.rs (GPL-3.0-or-later), and the
    repository is GPL-3.0-or-later. That is compatible. Pin the source commit, as runtime/shims/xg_xs_THIRD_PARTY.md
    does for VIctory, so the provenance can be checked.
  • Second topic in the same PR: apply_all becomes an all-or-nothing transaction for every hook group
    (apply_all_with: overlap check, staged VirtualProtect, re-validation, rollback). It is well built and
    testable through injected closures, but it changes how render-scale, FSR and max-step groups apply. CONTRIBUTING
    asks for one topic per pull request. Either split it out or say in the body why the native profile needs it.
  • Logging regression: hooks.rs:591 replaces the warn! "experimental, the title's largest output mode is
    changed" with an info! for all sizes. Sizes other than 2560x1440 are still experimental (the doc comment
    says so), so keep the warning for them.
  • Tests: native_1440_keeps_the_legacy_ui_stage and the transaction tests ran natively for Kal0s-design
    (96 passed) and lixonik.

Process

  • Claim and AI disclosure (OpenAI Codex GPT-6.2 Sol, separate read-only reviewer) are present.

Verdict: defects (minor). Restore the experimental warning for non-1440 sizes, pin the VIctory source commit,
and split out or justify the apply_all transaction change. Coordinate the hooks.rs merge with #2889.

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


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354336708 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7354336708). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:18:27Z. --- **Verification of #3124 (third party, code review on Linux; not built: Windows-only `leonida-loader`)** - Head verified: `64600ef0c8403ec1f4816d7edf12da28bd309a3e` (2 files: `leonida-loader/src/hooks.rs` +273/-36, `docs/ultrawide.md`). - Merge base `f45165e15`. `git merge-tree --write-tree origin/main pr/3124` against `main` `45dc41f95` is clean (104 commits behind). - CI: no check runs on this head (fork workflows waiting for approval). - `python -I scripts/check_no_game_data.py` on both files: exit 0. The patch carries a BLAKE3 hash of the 11 original bytes at `SETTINGS_COPY`, plus the re-emitted 8-byte `vmovdqu` and `vzeroupper` in the cave. That is the same "expected bytes" convention the other hook groups in `hooks.rs` already use. No game data beyond that. - Cross-PR: `git merge-tree pr/3124 pr/2889` **conflicts** in `hooks.rs`. Both change `output_patches`. The body notes this. **Review** - Cause: at native 2560x1440, shrinking the 3840x2160 mode row lays the 4K-authored UI onto a 1440p stage (1.5x too large). The fix keeps the mode row and Settings viewport stock. A trampoline at every settings copy (`native_1440_patches`, `hooks.rs:181-224`) sets the legacy-UI flag, a 3840x2160 UI size and a 2560x1440 output, and the scanout pool grows to 94 MiB for both surface pairs. This is a root-cause fix for the UI scale. - Trampoline bytes: the site is 11 bytes (`vmovdqu [rsi+0x638], ymm0` = 8, plus `vzeroupper` = 3). The cave replays both, so nothing of the original is lost. The `jmp` back is computed from `code.len()` before the `0xcc` fill. The cave is checked as 59 bytes of `0xcc` before it is written. I found no defects here. - Licence: the comment credits DexNom/VIctory via VIctory-NVIDIA `native_1440p.rs` (GPL-3.0-or-later), and the repository is GPL-3.0-or-later. That is compatible. Pin the source commit, as `runtime/shims/xg_xs_THIRD_PARTY.md` does for VIctory, so the provenance can be checked. - Second topic in the same PR: `apply_all` becomes an all-or-nothing transaction for **every** hook group (`apply_all_with`: overlap check, staged `VirtualProtect`, re-validation, rollback). It is well built and testable through injected closures, but it changes how render-scale, FSR and max-step groups apply. CONTRIBUTING asks for one topic per pull request. Either split it out or say in the body why the native profile needs it. - Logging regression: `hooks.rs:591` replaces the `warn!` "experimental, the title's largest output mode is changed" with an `info!` for **all** sizes. Sizes other than 2560x1440 are still experimental (the doc comment says so), so keep the warning for them. - Tests: `native_1440_keeps_the_legacy_ui_stage` and the transaction tests ran natively for Kal0s-design (96 passed) and lixonik. **Process** - Claim and AI disclosure (OpenAI Codex GPT-6.2 Sol, separate read-only reviewer) are present. **Verdict: defects (minor).** Restore the experimental warning for non-1440 sizes, pin the VIctory source commit, and split out or justify the `apply_all` transaction change. Coordinate the `hooks.rs` merge with #2889. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
EdenBendheim commented 2026-12-02 21:01:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-02T21:01:27Z.


RUN (in-game RTX 3090 300 s stress gate, 14-PR combined batch) — PASS covering exact head 64600ef0c8403ec1f4816d7edf12da28bd309a3e (merged cleanly onto main b41763227; note PR currently shows a merge conflict against newer main).

  • Base & build: Merged cleanly via git merge --no-ff onto main b41763227 (diagnostics,dlss,mimalloc, exe_sha16 = c47eeb717f761d9d; changed-file clean-room scan exit 0; workspace test targets compiled).
  • Batch heads (14 PRs): #3200 d1a91afd1, #3198 80a627bb1, #3191 93b47ac9d, #3189 c182fc392, #3176 ae0075d9a, #3168 337388052, #3164 1065952da, #3146 ebc0253ff, #3124 64600ef0c, #3069 311d33a40, #3031 8df1bfce7, #3029 e49404808, #3054 ff53fd8b9, #3010 d645712a3.
  • Hardware & setup: Windows 11, Ryzen 9 5900X (32 GB RAM), NVIDIA GeForce RTX 3090 24 GB, driver 610.88, Series X profile, native 2560x1440, -NoFrameGen, scripts/game-gate.ps1 (301.3 s in world) with downtown street-level teleport + 8-leg dynamic sprint/turn/strafe stress mod (GATE CONTROL moved=2.51 m, max_from_ctrl=5,053.9 m).
Metric 14-PR Batch (c47eeb717f761d9d) main b41763227 baseline (cf499737bf684f6a)
Gate verdict / exit PASS (clean, 0 reasons, 0 warnings) PASS (clean, 0 reasons, 0 warnings)
World time 301.3 s (4,504 frames) 305.6 s
Device lost / crashes / missed pipeline waits 0 / 0 / 0 0 / 0 / 0
Rendered FPS (median) / p95 frame time 20.10 FPS / 69.76 ms 19.13 FPS / 74.01 ms

Verdict: PASS for the 300 s native 1440p stability gate on 64600ef0c (visual HUD sizing was not separately inspected in screenshots; once rebased onto current main, the new head will need a fresh run).

(AI-assisted verification: gemini-4-neon + gpt-6.2-astra.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7358677577 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7358677577). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-12-02T21:01:27Z. --- **RUN (in-game RTX 3090 300 s stress gate, 14-PR combined batch)** — **PASS** covering exact head `64600ef0c8403ec1f4816d7edf12da28bd309a3e` (merged cleanly onto `main` `b41763227`; note PR currently shows a merge conflict against newer `main`). - **Base & build:** Merged cleanly via `git merge --no-ff` onto `main` `b41763227` (`diagnostics,dlss,mimalloc`, `exe_sha16 = c47eeb717f761d9d`; changed-file clean-room scan exit `0`; workspace test targets compiled). - **Batch heads (`14` PRs):** `#3200` `d1a91afd1`, `#3198` `80a627bb1`, `#3191` `93b47ac9d`, `#3189` `c182fc392`, `#3176` `ae0075d9a`, `#3168` `337388052`, `#3164` `1065952da`, `#3146` `ebc0253ff`, `#3124` `64600ef0c`, `#3069` `311d33a40`, `#3031` `8df1bfce7`, `#3029` `e49404808`, `#3054` `ff53fd8b9`, `#3010` `d645712a3`. - **Hardware & setup:** Windows 11, Ryzen 9 5900X (32 GB RAM), NVIDIA GeForce RTX 3090 24 GB, driver `610.88`, Series X profile, native **`2560x1440`**, `-NoFrameGen`, `scripts/game-gate.ps1` (`301.3 s` in world) with downtown street-level teleport + 8-leg dynamic sprint/turn/strafe stress mod (`GATE CONTROL moved=2.51 m`, `max_from_ctrl=5,053.9 m`). | Metric | 14-PR Batch (`c47eeb717f761d9d`) | `main` `b41763227` baseline (`cf499737bf684f6a`) | |---|---:|---:| | Gate verdict / exit | **PASS** (`clean`, `0` reasons, `0` warnings) | **PASS** (`clean`, `0` reasons, `0` warnings) | | World time | `301.3 s` (`4,504` frames) | `305.6 s` | | Device lost / crashes / missed pipeline waits | `0` / `0` / `0` | `0` / `0` / `0` | | Rendered FPS (median) / p95 frame time | `20.10 FPS` / `69.76 ms` | `19.13 FPS` / `74.01 ms` | **Verdict:** **PASS** for the 300 s native 1440p stability gate on `64600ef0c` (visual HUD sizing was not separately inspected in screenshots; once rebased onto current `main`, the new head will need a fresh run). *(AI-assisted verification: `gemini-4-neon` + `gpt-6.2-astra`.)*
fiestorra commented 2026-12-02 23:21:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T23:21:57Z.


VERIFY-3124 — Windows nativo: la suite del loader pasa, y el guardián que queda es el que se queda

Own commit 64600ef0c — leonida-loader/src/hooks.rs (−13), docs/ultrawide.md (2 lines)

Ran

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

What the change is: it removes native_1440_patch_guards_match_the_supported_image — a test that only ran with LEONIDA_GAME_DIR set to the user's own image and returned silently when it was not — and clarifies one line of docs/ultrawide.md ("the old mode-row implementation of LEONIDA_OUTPUT_1440").

The thing I checked before nodding at a deletion: the guard does not disappear, it is deduplicated. hooks.rs:1001 keeps the env-gated retail check, and it prints SKIP: LEONIDA_GAME_DIR is not set instead of returning quietly — which is the difference between a test that did not run and a test that looks like it passed. That is the same distinction half of my reviews tonight have been about.

So: red not constructible — nothing here adds behaviour, and the check that remains is the same one, run through the profile it names. What a deletion like this costs is the thing to state plainly: the removed copy never ran in CI either (no LEONIDA_GAME_DIR there), so nothing that was being verified stopped being verified. What it did run on was an author's machine, twice, for the same answer.

What I could not test

  • The retail image check itself: LEONIDA_GAME_DIR is not set here, so the kept test printed its SKIP line — the only machine that can run it is one with the Xbox package.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7361902416 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7361902416). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T23:21:57Z. --- ## VERIFY-3124 — Windows nativo: la suite del `loader` pasa, y el guardián que queda es el que se queda | | | |---|---| | Own commit | `64600ef0c` — `leonida-loader/src/hooks.rs` (−13), `docs/ultrawide.md` (2 lines) | **Ran** ``` cargo test -p leonida-loader --lib 96 passed; 0 failed ``` **What the change is**: it **removes** `native_1440_patch_guards_match_the_supported_image` — a test that only ran with **`LEONIDA_GAME_DIR`** set to the user's own image and returned silently when it was not — and **clarifies one line** of `docs/ultrawide.md` (*"the old mode-row implementation of `LEONIDA_OUTPUT_1440`"*). **The thing I checked before nodding at a deletion**: **the guard does not disappear, it is deduplicated.** `hooks.rs:1001` keeps the env-gated retail check, and **it prints `SKIP: LEONIDA_GAME_DIR is not set` instead of returning quietly** — which is the difference between a test that did not run and a test that looks like it passed. **That is the same distinction half of my reviews tonight have been about.** **So: `red not constructible`** — nothing here adds behaviour, and the check that remains is the same one, run through the profile it names. **What a deletion like this costs is the thing to state plainly**: the removed copy never ran in CI either (no `LEONIDA_GAME_DIR` there), so nothing that was being verified stopped being verified. **What it did run on was an author's machine, twice, for the same answer.** ## What I could not test - **The retail image check itself**: `LEONIDA_GAME_DIR` is not set here, so the kept test printed its SKIP line — **the only machine that can run it is one with the Xbox package**. Written with an AI assistant.
fiestorra commented 2026-12-03 01:34:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:34:27Z.


Correction: this is not a small dedupe — it is three commits and 293 added lines, and my earlier review read only the top one

When I verified this pull request I read the commit git log --first-parent showed me (64600ef0c, "keep one retail guard test") and ran the loader's suite — 96 tests, green. The branch is three commits:

64600ef0c  Keep one retail guard test and clarify the historical output probe
825799404  docs: distinguish native 1440p legacy UI output
308ca9cfa  Fix oversized native 1440p HUD with legacy UI layout
d3d12/crates/leonida-loader/src/hooks.rs | 309 ++++++++++++++++++++++---
docs/ultrawide.md                        |  20 ++-
2 files changed, 293 insertions(+), 36 deletions(-)

So the file that conflicts with main is hooks.rs, and the conflict is not in the test I read — it is in the VirtualProtect/copy_nonoverlapping loop that makes a batch of patches writable or none of them, which is what the third commit reworks. git rebase origin/main stops there, and I am not resolving it: it is 293 lines of someone else's hooking code that I have not read, and a resolution I invented would be the least verified thing I could put in this queue.

What this corrects in my record: my verification covered the top commit and the loader's test suite, and I presented it as "the change" — for a three-commit branch that is the same mistake I flagged in #3128 an hour ago. The suite being green is still true (96 tests on the branch's head), but it is green for all three commits, not the one I described.

What the whole branch is for, from the messages: the native 1440p output with the legacy UI layout draws an oversized HUD (hooks.rs, docs/ultrawide.md), and the top commit tidies the retail guard test that proves it and clarifies the doc's historical probe. That is a real bug with a real fix, and it deserves a review of the 293 lines — which is what it has not had from me.

A note for the queue: of the seven pull requests that conflict after #3247, four are stacks (#3124 here, #3128, #3253 which I rebased, and #3115), and in three of them the conflict is in a commit that a reviewer would not reach by looking at the top. Depends on: in the description is the only thing that makes that visible from the outside, and none of the four says it.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364495814 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7364495814). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:34:27Z. --- ## Correction: this is not a small dedupe — it is three commits and 293 added lines, and my earlier review read only the top one **When I verified this pull request I read the commit `git log --first-parent` showed me (`64600ef0c`, "keep one retail guard test") and ran the loader's suite — 96 tests, green.** **The branch is three commits**: ``` 64600ef0c Keep one retail guard test and clarify the historical output probe 825799404 docs: distinguish native 1440p legacy UI output 308ca9cfa Fix oversized native 1440p HUD with legacy UI layout ``` ``` d3d12/crates/leonida-loader/src/hooks.rs | 309 ++++++++++++++++++++++--- docs/ultrawide.md | 20 ++- 2 files changed, 293 insertions(+), 36 deletions(-) ``` **So the file that conflicts with `main` is `hooks.rs`, and the conflict is not in the test I read** — it is in the **`VirtualProtect`/`copy_nonoverlapping` loop that makes a batch of patches writable or none of them**, **which is what the third commit reworks.** **`git rebase origin/main` stops there**, and **I am not resolving it**: **it is 293 lines of someone else's hooking code that I have not read, and a resolution I invented would be the least verified thing I could put in this queue.** **What this corrects in my record**: **my verification covered the top commit and the loader's test suite, and I presented it as "the change"** — **for a three-commit branch that is the same mistake I flagged in `#3128` an hour ago.** **The suite being green is still true** (96 tests on the branch's head), **but it is green for all three commits, not the one I described.** **What the whole branch is for, from the messages**: **the native 1440p output with the legacy UI layout draws an oversized HUD** (`hooks.rs`, `docs/ultrawide.md`), **and the top commit tidies the retail guard test that proves it and clarifies the doc's historical probe.** **That is a real bug with a real fix, and it deserves a review of the 293 lines** — **which is what it has not had from me.** **A note for the queue**: **of the seven pull requests that conflict after `#3247`, four are stacks** (`#3124` here, `#3128`, `#3253` which I rebased, and `#3115`), **and in three of them the conflict is in a commit that a reviewer would not reach by looking at the top.** **`Depends on:` in the description is the only thing that makes that visible from the outside**, **and none of the four says it.** Written with an AI assistant.
MoonEyes commented 2026-12-03 07:01:18 +00:00 (Migrated from github.com)

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


This pull request has a merge conflict with current main (d9b618f10), so it can't be run in game or merged as it is. Could you merge the latest main into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370501240 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7370501240). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T07:01:18Z. --- This pull request has a merge conflict with current `main` (`d9b618f10`), so it can't be run in game or merged as it is. Could you merge the latest `main` into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head. AI-assisted (Claude Code).
MoonEyes commented 2026-12-03 18:02:46 +00:00 (Migrated from github.com)

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


Thanks for the work on this. This pull request has a merge conflict with the current main and has had no new commit, comment or review for more than 5 hours, so I am closing it to keep the list of open pull requests manageable. This is not a judgement of the change. Whenever you like, merge the latest main into your branch, resolve the conflict, and reopen it (or open a new pull request that links this one). Please re-run the relevant tests on the new head; a reviewer will look at it when time allows, with no guarantee of timing or outcome.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7387509089 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3124#issuecomment-7387509089). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T18:02:46Z. --- Thanks for the work on this. This pull request has a merge conflict with the current `main` and has had no new commit, comment or review for more than 5 hours, so I am closing it to keep the list of open pull requests manageable. This is not a judgement of the change. Whenever you like, merge the latest `main` into your branch, resolve the conflict, and reopen it (or open a new pull request that links this one). Please re-run the relevant tests on the new head; a reviewer will look at it when time allows, with no guarantee of timing or outcome. --- _Generated by [Claude Code](https://claude.ai/code)_

Pull request closed

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!3124
No description provided.