Add native Series X ultrawide output and HUD controls #2958

Open
invismann wants to merge 30 commits from upstream-pr/2958 into main
invismann commented 2026-12-01 21:31:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by invismann on 2026-12-01T21:31:49Z.


Claimed in the coordination issue as: Native Series X ultrawide.

Depends on: #2889

What and why

  • Add native Series X presets for 21:9 and 32:9 with independent render height selection. Match monitor selects a fixed preset and reports which one it picked. The 21:9 class includes 2560×1080, 3840×1600, and 5120×2160.
  • Expose aspect ratio and HUD correction in the launchers and F1. The HUD can stay at the screen edges, move inward, or use the stock layout with correction off.
  • Size render-target allocations and shadow tiles for the widescreen scene. Apply the HUD layout to the wider map and its markers while keeping loading artwork centered.

The branch incorporates the merged #2900 Series S loader changes. A simulated merge with open #2889 at 6b4f77222 still conflicts in d3d12/crates/leonida-loader/src/hooks.rs.

Tested

  • Built leonida with the pinned Rust toolchain on Windows. The integrated branch passed 17 targeted loader cases and 16 compositor, marker, and aspect tests, including both GPU readbacks. Optional retail executable fixtures were absent for the local run.
  • The loader regression test fails with three unexpected legacy patch writes when the native-output guard is removed and passes with the guard restored. Git Bash verified both help aliases and the missing-game argument path. The regenerated registry lists 724 names and passes its consistency check. All 74 Python checks and five Node display tests passed.
  • A reviewer verified both synthetic compositor readbacks with Microsoft d3dcompiler_47.dll 10.0.10150.0 under Wine 11.22 and VKD3D-Proton 3.1.0 at 0c9c18977. Their test build also included #2884, and they verified the compositor source matched this PR. Wine readbacks
  • A contributor reported about four minutes of retail Series X gameplay at 3440×1440 with edge HUD, a correct wide pause map, and a normal exit. Their diagnostic build at 0c9c18977 included an extra local run.rs commit. The run did not cover 32:9, centered or disabled correction, F1 switching, or loading-movie letterboxing. Retail run

GPUs tested: local synthetic readbacks on RTX 4090, driver 621.01, Windows. Contributor retail run on RTX 5070 Ti, driver 621.40, Windows 11 Pro. Wine reviewer readbacks on RTX 4070 SUPER (620.73.4) and Radeon Raphael (RADV 26.3.1).

Stability across retail scenes with the 7200/8000 MiB render-target heap and 1600 MiB scene-pool budgets remains unverified. The Foxhound reference port records outdoor shadow, loading, and map checks on Windows with an RTX 4090 at 5120×1440 DLAA.

AI-assisted: yes. Implementation and verification used OpenAI Codex (GPT-6). The independent read-only review used GPT-6.2 Sol.

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption. The changed-file clean-room scan passed.
  • The shadow tile rule and its validation are recorded in docs/design.md.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5594928371 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958). Originally posted by [invismann](https://github.com/invismann) on 2026-12-01T21:31:49Z. --- Claimed in the coordination issue as: [Native Series X ultrawide](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7326174351). Depends on: #2889 ### What and why - Add native Series X presets for 21:9 and 32:9 with independent render height selection. Match monitor selects a fixed preset and reports which one it picked. The 21:9 class includes 2560×1080, 3840×1600, and 5120×2160. - Expose aspect ratio and HUD correction in the launchers and F1. The HUD can stay at the screen edges, move inward, or use the stock layout with correction off. - Size render-target allocations and shadow tiles for the widescreen scene. Apply the HUD layout to the wider map and its markers while keeping loading artwork centered. The branch incorporates the merged #2900 Series S loader changes. A simulated merge with open #2889 at `6b4f77222` still conflicts in `d3d12/crates/leonida-loader/src/hooks.rs`. ### Tested - Built `leonida` with the pinned Rust toolchain on Windows. The integrated branch passed 17 targeted loader cases and 16 compositor, marker, and aspect tests, including both GPU readbacks. Optional retail executable fixtures were absent for the local run. - The loader regression test fails with three unexpected legacy patch writes when the native-output guard is removed and passes with the guard restored. Git Bash verified both help aliases and the missing-game argument path. The regenerated registry lists 724 names and passes its consistency check. All 74 Python checks and five Node display tests passed. - A reviewer verified both synthetic compositor readbacks with Microsoft `d3dcompiler_47.dll` 10.0.10150.0 under Wine 11.22 and VKD3D-Proton 3.1.0 at `0c9c18977`. Their test build also included #2884, and they verified the compositor source matched this PR. [Wine readbacks](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7328405576) - A contributor reported about four minutes of retail Series X gameplay at 3440×1440 with edge HUD, a correct wide pause map, and a normal exit. Their diagnostic build at `0c9c18977` included an extra local `run.rs` commit. The run did not cover 32:9, centered or disabled correction, F1 switching, or loading-movie letterboxing. [Retail run](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7328548499) GPUs tested: local synthetic readbacks on RTX 4090, driver 621.01, Windows. Contributor retail run on RTX 5070 Ti, driver 621.40, Windows 11 Pro. Wine reviewer readbacks on RTX 4070 SUPER (620.73.4) and Radeon Raphael (RADV 26.3.1). Stability across retail scenes with the 7200/8000 MiB render-target heap and 1600 MiB scene-pool budgets remains unverified. The [Foxhound reference port](https://github.com/readmet3xt-lab/foxhound/pull/281) records outdoor shadow, loading, and map checks on Windows with an RTX 4090 at 5120×1440 DLAA. AI-assisted: yes. Implementation and verification used OpenAI Codex (GPT-6). The independent read-only review used GPT-6.2 Sol. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. The changed-file clean-room scan passed. - [x] The shadow tile rule and its validation are recorded in `docs/design.md`.
andrew-ai commented 2026-12-01 21:45:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T21:45:50Z.


Found a fractional-DPI edge case in the web launcher's monitor fallback at launcher/index.html:486–489 on 858fdd676. When the server has no monitor hint, a 5120×1440 screen represented as 2926×823 CSS pixels at devicePixelRatio 1.75 reconstructs to 5121×1440. The exact 32:9 comparison then returns false. Match monitor hides the HUD controls and switchArgs omits a selected HUD position, while the native classifier given 5120×1440 selects the superwide profile.

I executed the PR's ultrawideSelected in Node with synthetic window.screen values and a Series X auto configuration. The same panel matched at 100%, 125%, 150%, and 200%, and missed at 175%. An explicit 32:9 selection bypasses the fallback. A regression case with fractional scaling and a tolerance for CSS-pixel rounding would cover this path.

Separately I compiled the PR's output_for and maximum_scene functions in a standalone Rust harness. The three explicit output geometries matched at native size. At 75% the 5120×1440 preset gave a 3840×1080 scene. These are geometry checks with synthetic inputs. No physical ultrawide panel or game run was used. Codex-assisted for #2570.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7326746589 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7326746589). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T21:45:50Z. --- Found a fractional-DPI edge case in the web launcher's monitor fallback at launcher/index.html:486–489 on 858fdd676. When the server has no monitor hint, a 5120×1440 screen represented as 2926×823 CSS pixels at devicePixelRatio 1.75 reconstructs to 5121×1440. The exact 32:9 comparison then returns false. Match monitor hides the HUD controls and switchArgs omits a selected HUD position, while the native classifier given 5120×1440 selects the superwide profile. I executed the PR's ultrawideSelected in Node with synthetic window.screen values and a Series X auto configuration. The same panel matched at 100%, 125%, 150%, and 200%, and missed at 175%. An explicit 32:9 selection bypasses the fallback. A regression case with fractional scaling and a tolerance for CSS-pixel rounding would cover this path. Separately I compiled the PR's output_for and maximum_scene functions in a standalone Rust harness. The three explicit output geometries matched at native size. At 75% the 5120×1440 preset gave a 3840×1080 scene. These are geometry checks with synthetic inputs. No physical ultrawide panel or game run was used. Codex-assisted for #2570.
merzleckeier commented 2026-12-01 21:51:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T21:51:14Z.


The new HUD readback fails on both adapters with the bundled Microsoft compiler. I tested 858fdd676 merged into 1a52f5b63 with Wine 11.22 / VKD3D-Proton 3.1.0, using RTX 4070 SUPER (620.73.4) and Radeon RADV (26.3.1).

The stock compose::tests::centers_edge_hud_without_moving_the_middle_on_gpu fails at Composer::for_device(..., true) with 0x80004005 before the texture readback. The existing premultiplied composition test passes and reads the same pixels as main on each adapter. A test-only diagnostic and an isolated D3DCompile call locate the failure with Microsoft d3dcompiler_47.dll 10.0.10150.0 at the wide ps_5_1 entry. It reports X8000, invalid operand type for operand 2 of opcode 138. The wide VS and CS and the existing narrow PS compile with that DLL.

Changing only the wide pixel shader target to ps_5_0 made the complete compose::tests:: selection pass 2/2 on each GPU. The unchanged centered-HUD test reached its synthetic 16×8 readback and checked both moved edges and the unchanged middle. The Wine built-in compiler still fails compositor initialization with that change. Its standalone compilation emits a blob and warns that it ignores RootSignature.

There is also a separate CI failure after #2934. python -I tests/test_d3d12_switches.py passes 19/20 on the merge because eight names are missing from d3d12/docs/switches.md. python -I tools/d3d12_switches.py --out d3d12/docs/switches.md followed by the same test passes 20/20 with only the generated page changed.

Synthetic inputs only. No game run. MEASURED with OpenAI Codex and independent raw-log verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7326901064 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7326901064). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T21:51:14Z. --- The new HUD readback fails on both adapters with the bundled Microsoft compiler. I tested `858fdd676` merged into `1a52f5b63` with Wine 11.22 / VKD3D-Proton 3.1.0, using RTX 4070 SUPER (620.73.4) and Radeon RADV (26.3.1). The stock `compose::tests::centers_edge_hud_without_moving_the_middle_on_gpu` fails at `Composer::for_device(..., true)` with `0x80004005` before the texture readback. The existing premultiplied composition test passes and reads the same pixels as main on each adapter. A test-only diagnostic and an isolated `D3DCompile` call locate the failure with Microsoft `d3dcompiler_47.dll` 10.0.10150.0 at the wide `ps_5_1` entry. It reports `X8000`, invalid operand type for operand 2 of opcode 138. The wide VS and CS and the existing narrow PS compile with that DLL. Changing only the wide pixel shader target to `ps_5_0` made the complete `compose::tests::` selection pass 2/2 on each GPU. The unchanged centered-HUD test reached its synthetic 16×8 readback and checked both moved edges and the unchanged middle. The Wine built-in compiler still fails compositor initialization with that change. Its standalone compilation emits a blob and warns that it ignores `RootSignature`. There is also a separate CI failure after #2934. `python -I tests/test_d3d12_switches.py` passes 19/20 on the merge because eight names are missing from `d3d12/docs/switches.md`. `python -I tools/d3d12_switches.py --out d3d12/docs/switches.md` followed by the same test passes 20/20 with only the generated page changed. Synthetic inputs only. No game run. MEASURED with OpenAI Codex and independent raw-log verification.
andrew-ai commented 2026-12-01 21:55:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T21:55:24Z.


Checked the centered-HUD shader on native Windows at 858fdd676, on an RTX 5070 (driver 616.92). The original ps_5_1 target passed the centered-HUD readback and the existing premultiplied-plane control with each of three Microsoft d3dcompiler_47.dll versions:

DLL file version Source GPU readbacks
10.0.17763.132 Windows SDK 2/2 passed
10.0.26100.7175 Windows SDK 2/2 passed
10.0.26100.10068 Windows System32 2/2 passed

Built the compose::tests:: selection with --features diagnostics. I used the same test executable for all three runs, logging the loaded module path and the adapter selected by the compositor. Both hardware branches ran. The narrow control returned the same three RGBA pixels in all three runs.

This adds three known-working compiler versions for the proposed shader on native Windows. The 10.0.10150.0 DLL from the reported Wine failure was outside this comparison, so OS and compiler version are still confounded across the two reports. Synthetic textures only. Codex-assisted for #2570.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7327013852 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7327013852). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T21:55:24Z. --- Checked the centered-HUD shader on native Windows at 858fdd676, on an RTX 5070 (driver 616.92). The original ps_5_1 target passed the centered-HUD readback and the existing premultiplied-plane control with each of three Microsoft d3dcompiler_47.dll versions: | DLL file version | Source | GPU readbacks | | --- | --- | --- | | 10.0.17763.132 | Windows SDK | 2/2 passed | | 10.0.26100.7175 | Windows SDK | 2/2 passed | | 10.0.26100.10068 | Windows System32 | 2/2 passed | Built the compose::tests:: selection with --features diagnostics. I used the same test executable for all three runs, logging the loaded module path and the adapter selected by the compositor. Both hardware branches ran. The narrow control returned the same three RGBA pixels in all three runs. This adds three known-working compiler versions for the proposed shader on native Windows. The 10.0.10150.0 DLL from the reported Wine failure was outside this comparison, so OS and compiler version are still confounded across the two reports. Synthetic textures only. Codex-assisted for #2570.
andrew-ai commented 2026-12-01 22:02:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T22:02:44Z.


Confirmed the fractional-DPI fix at e7912f698. At 5120×1440 and 175%, the earlier head emitted only -SeriesX -AspectRatio auto. The revised launcher also emits the selected -HudPosition center.

I exercised both ultrawideSelected and switchArgs from each revision with synthetic CSS screen dimensions. Across six panel geometries (5120×1440, 3840×1080, 3440×1440, 3840×2160, 2560×1440, 1920×1200) and 13 scaling factors from 100% through 400% in 25-point steps, mismatches fell from 14/78 to 0/78. All four new Node regression tests passed. This closes my earlier monitor-fallback finding. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7327187884 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7327187884). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T22:02:44Z. --- Confirmed the fractional-DPI fix at e7912f698. At 5120×1440 and 175%, the earlier head emitted only `-SeriesX -AspectRatio auto`. The revised launcher also emits the selected `-HudPosition center`. I exercised both ultrawideSelected and switchArgs from each revision with synthetic CSS screen dimensions. Across six panel geometries (5120×1440, 3840×1080, 3440×1440, 3840×2160, 2560×1440, 1920×1200) and 13 scaling factors from 100% through 400% in 25-point steps, mismatches fell from 14/78 to 0/78. All four new Node regression tests passed. This closes my earlier monitor-fallback finding. Codex-assisted.
KelboLive commented 2026-12-01 22:12:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T22:12:04Z.

Review: CHANGES_REQUESTED


Solid feature, and the fail-closed retail checks (hash first, then expected bytes per patch) are the right shape. The HUD split is correctly UI-only, and I confirmed the pause/Game gating is genuinely covered — replacing !(ui == Game || (wide && ui == Pause)) with ui != Game fails a_queued_present_uses_the_captured_gameplay_state. But I would not merge yet; four things:

  1. The switch registry check fails. python -I tools/d3d12_switches.py --check d3d12/docs/switches.md exits 1 on eight names: LEONIDA_ASPECT_RATIO, LEONIDA_HUD_POSITION, LEONIDA_NATIVE_ULTRAWIDE, LEONIDA_ULTRAWIDE_HUD, LEONIDA_UI_LETTERBOX, LEONIDA_RT_HEAP_MB, LEONIDA_SCENE_POOL_MB, and the test-only LEONIDA_DISPLAY_PROFILE_TEST_IMAGE. Several escape hatches (RT_HEAP_MB, SCENE_POOL_MB, UI_LETTERBOX) are documented nowhere else. Add them, and exempt or document the test hook.
  2. world_marker::fit_sprite is a no-op. It computes scale() * canvas_scale (world_marker.rs:235-237) with scale() = 16H/(9W) (:88-97) and canvas_scale = W*2160/(H*3840), which is exactly 1.0 for every supported preset, and fit_at(..., 1.0) returns the original viewport — so labels are never narrowed into the centered 16:9 band. Use scale() (already 3840/layout_width) and add a fit_sprite unit test; the existing pure test calls fit_at(..., 0.5) directly, so it cannot see this.
  3. Match monitor is default-on, not opt-in. play-nvidia.ps1:642-645 forces LEONIDA_ASPECT_RATIO=auto for every Series X start, which is a real behaviour change for existing users. It also doesn't classify 2560×1080 (common 21:9) or 3840×1600 as wide (aspect.rs:77 requires width >= 3440), so Match monitor returns None there, and on 5120×2160 it silently downshifts to 3440×1440. Either extend classify and warn/test those sizes, or make it explicitly opt-in like the other wide switches.
  4. The visual claims have no on-branch test. The body says "GPUs tested: n/a" and cites an external Foxhound/4090 run; the image-dependent tests self-skip without the retail executable. That may be acceptable, but say "unverified on this branch" explicitly rather than leaving the reader to infer it — especially for the 7200/8000 MiB RT heap and 1600 MiB scene pool, which are magic values with no measurement.

Also: HudLayout::ToEdges/edge_hud looks unreachable because edges = wide_overlay && hud_at_edges() (host.rs:13850), so wide=false, edges=true cannot occur — split-mode coverage is less than it looks. And LEONIDA_DISPLAY_PROFILE_TEST_IMAGE is a test-only hook that should not be user-facing.

No generated artifacts or game data: check_no_game_data passes over all 43 files, the docs tests pass, and every crate suite is green (661 + 420 + 86 + 247 + 51, plus the launcher tests and the wide-shadow semantic fixture). Merge is clean against current main; #2900 conflicts in loader/src/hooks.rs (both touch resolution_levers), #2851 only shares switches.md, and #2915 is clean.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6141069840 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#pullrequestreview-6141069840). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T22:12:04Z. **Review:** CHANGES_REQUESTED --- Solid feature, and the fail-closed retail checks (hash first, then expected bytes per patch) are the right shape. The HUD split is correctly UI-only, and I confirmed the pause/Game gating is genuinely covered — replacing `!(ui == Game || (wide && ui == Pause))` with `ui != Game` fails `a_queued_present_uses_the_captured_gameplay_state`. But I would not merge yet; four things: 1. **The switch registry check fails.** `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md` exits 1 on eight names: `LEONIDA_ASPECT_RATIO`, `LEONIDA_HUD_POSITION`, `LEONIDA_NATIVE_ULTRAWIDE`, `LEONIDA_ULTRAWIDE_HUD`, `LEONIDA_UI_LETTERBOX`, `LEONIDA_RT_HEAP_MB`, `LEONIDA_SCENE_POOL_MB`, and the test-only `LEONIDA_DISPLAY_PROFILE_TEST_IMAGE`. Several escape hatches (`RT_HEAP_MB`, `SCENE_POOL_MB`, `UI_LETTERBOX`) are documented nowhere else. Add them, and exempt or document the test hook. 2. **`world_marker::fit_sprite` is a no-op.** It computes `scale() * canvas_scale` (`world_marker.rs:235-237`) with `scale() = 16H/(9W)` (`:88-97`) and `canvas_scale = W*2160/(H*3840)`, which is **exactly 1.0** for every supported preset, and `fit_at(..., 1.0)` returns the original viewport — so labels are never narrowed into the centered 16:9 band. Use `scale()` (already `3840/layout_width`) and add a `fit_sprite` unit test; the existing pure test calls `fit_at(..., 0.5)` directly, so it cannot see this. 3. **`Match monitor` is default-on, not opt-in.** `play-nvidia.ps1:642-645` forces `LEONIDA_ASPECT_RATIO=auto` for every Series X start, which is a real behaviour change for existing users. It also doesn't classify `2560×1080` (common 21:9) or `3840×1600` as wide (`aspect.rs:77` requires `width >= 3440`), so `Match monitor` returns `None` there, and on `5120×2160` it silently downshifts to `3440×1440`. Either extend `classify` and warn/test those sizes, or make it explicitly opt-in like the other wide switches. 4. **The visual claims have no on-branch test.** The body says "GPUs tested: n/a" and cites an external Foxhound/4090 run; the image-dependent tests self-skip without the retail executable. That may be acceptable, but say "unverified on this branch" explicitly rather than leaving the reader to infer it — especially for the 7200/8000 MiB RT heap and 1600 MiB scene pool, which are magic values with no measurement. Also: `HudLayout::ToEdges`/`edge_hud` looks unreachable because `edges = wide_overlay && hud_at_edges()` (`host.rs:13850`), so `wide=false, edges=true` cannot occur — split-mode coverage is less than it looks. And `LEONIDA_DISPLAY_PROFILE_TEST_IMAGE` is a test-only hook that should not be user-facing. No generated artifacts or game data: `check_no_game_data` passes over all 43 files, the docs tests pass, and every crate suite is green (661 + 420 + 86 + 247 + 51, plus the launcher tests and the wide-shadow semantic fixture). Merge is clean against current main; **#2900 conflicts in `loader/src/hooks.rs`** (both touch `resolution_levers`), #2851 only shares `switches.md`, and #2915 is clean.
merzleckeier commented 2026-12-01 22:50:38 +00:00 (Migrated from github.com)

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


The current head passes the centered HUD readback with the Microsoft compiler that previously failed.

I reran compose::tests with Wine 11.22 / VKD3D-Proton 3.1.0 and Microsoft d3dcompiler_47.dll file version 10.0.10150.0. The earlier stock binary at 858fdd676 on 1a52f5b63 still fails Composer::for_device with 0x80004005 for the wide test, and passes the narrow control, on both the RTX 4070 SUPER (620.73.4) and Radeon Raphael (RADV 26.3.1). On 0c9c18977 at main 1abef08d0, both tests pass on each adapter. The wide test reaches command completion and verifies five pixels of the synthetic 16×8 image, including both moved HUD edges and the unchanged middle. The narrow control gives the same readback per adapter as the earlier binary. The build also has the test-only #2884 layered in. The compositor source blob matches #2958 integrated by itself.

With the same DLL in a standalone D3DCompile call, the current wide shader still reports X8000 on ps_5_1. The ps_5_0 target now used by the wide path compiles to 6,304 bytes. The narrow ps_5_1 and wide vertex/compute controls also compile. DLL SHA-256 8c88c162010a8d6b80f2c0433d4ce973ce626afcbc8da5be68bfa2ba68341eba.

The generated switch-registry check exits 0 on this tree. Node display tests pass 5/5 and the Python switch suite passes 20/20. This resolves the Microsoft compiler and registry failures in my earlier report for this head. Synthetic textures only. AI-assisted with OpenAI Codex and independent raw-log verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328405576 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7328405576). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T22:50:38Z. --- The current head passes the centered HUD readback with the Microsoft compiler that previously failed. I reran `compose::tests` with Wine 11.22 / VKD3D-Proton 3.1.0 and Microsoft `d3dcompiler_47.dll` file version `10.0.10150.0`. The earlier stock binary at `858fdd676` on `1a52f5b63` still fails `Composer::for_device` with `0x80004005` for the wide test, and passes the narrow control, on both the RTX 4070 SUPER (620.73.4) and Radeon Raphael (RADV 26.3.1). On `0c9c18977` at main `1abef08d0`, both tests pass on each adapter. The wide test reaches command completion and verifies five pixels of the synthetic 16×8 image, including both moved HUD edges and the unchanged middle. The narrow control gives the same readback per adapter as the earlier binary. The build also has the test-only #2884 layered in. The compositor source blob matches #2958 integrated by itself. With the same DLL in a standalone `D3DCompile` call, the current wide shader still reports `X8000` on `ps_5_1`. The `ps_5_0` target now used by the wide path compiles to 6,304 bytes. The narrow `ps_5_1` and wide vertex/compute controls also compile. DLL SHA-256 `8c88c162010a8d6b80f2c0433d4ce973ce626afcbc8da5be68bfa2ba68341eba`. The generated switch-registry check exits 0 on this tree. Node display tests pass 5/5 and the Python switch suite passes 20/20. This resolves the Microsoft compiler and registry failures in my earlier report for this head. Synthetic textures only. AI-assisted with OpenAI Codex and independent raw-log verification.
matthieupl87-spec commented 2026-12-01 22:57:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-01T22:57:14Z.


Retail run on a real 21:9 monitor, at the PR head 0c9c18977 (based on main c4ca57615), diag build via build-nvidia.ps1. The build has one local commit outside this PR, in run.rs, unrelated to the display path.

Rig: Ryzen 5 5600X (6 cores), 32 GB DDR4-3600, RTX 5070 Ti 16 GB, driver 621.40, Windows 11 Pro 26300. Monitor: 3440×1440 native.
Launch: scripts\play-d3d12.ps1 -AspectRatio 21:9 -HudPosition edges -Log, Series X profile, the title's own upscaler, no DLSS.

What was seen in game (about 4 min in the world, story save):

  • The picture fills the whole 3440×1440 screen: no bars, no stretch.
  • HUD at the screen edges: minimap, health and weapon placed correctly and readable.
  • Pause map: correct on the wide canvas.
  • The log shows ultrawide: positioning the map cursor relative to its display area layout_width=5160, and images from an ultrawide-… cache.
  • No crash; the window was closed normally.

Numbers (window-title fps sampled every second, 232 samples, first run of this build):

  • Median 14 fps, mean 14.8, p10 5, p90 28. Same machine at 16:9 (main, 1440p render): median 15, p90 19.
  • System RAM: up to 99 % in use (mean 89 %); GPU busy 21 %, CPU 75 %. This box is CPU-bound.
  • Some one-second hitches (frame-time log: 99th percentile around 1.08 s in the first minute). This was the first run of the build, so the pipelines were still being made. With 32 GB, RAM is also near full with the larger render-target budgets.
  • The first start ran the warm precompile for about 9 minutes before the window came up.

Not checked: 32:9, -HudPosition center and off, F1 switching, loading-movie letterboxing.

AI-assisted (Claude Code). Results are from my own run; no game data attached.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328548499 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7328548499). Originally posted by [matthieupl87-spec](https://github.com/matthieupl87-spec) on 2026-12-01T22:57:14Z. --- Retail run on a real 21:9 monitor, at the PR head `0c9c18977` (based on `main` `c4ca57615`), diag build via `build-nvidia.ps1`. The build has one local commit outside this PR, in `run.rs`, unrelated to the display path. **Rig:** Ryzen 5 5600X (6 cores), 32 GB DDR4-3600, RTX 5070 Ti 16 GB, driver 621.40, Windows 11 Pro 26300. Monitor: 3440×1440 native. **Launch:** `scripts\play-d3d12.ps1 -AspectRatio 21:9 -HudPosition edges -Log`, Series X profile, the title's own upscaler, no DLSS. **What was seen in game (about 4 min in the world, story save):** - The picture fills the whole 3440×1440 screen: no bars, no stretch. - HUD at the screen edges: minimap, health and weapon placed correctly and readable. - Pause map: correct on the wide canvas. - The log shows `ultrawide: positioning the map cursor relative to its display area layout_width=5160`, and images from an `ultrawide-…` cache. - No crash; the window was closed normally. **Numbers** (window-title fps sampled every second, 232 samples, first run of this build): - Median 14 fps, mean 14.8, p10 5, p90 28. Same machine at 16:9 (main, 1440p render): median 15, p90 19. - System RAM: up to 99 % in use (mean 89 %); GPU busy 21 %, CPU 75 %. This box is CPU-bound. - Some one-second hitches (frame-time log: 99th percentile around 1.08 s in the first minute). This was the first run of the build, so the pipelines were still being made. With 32 GB, RAM is also near full with the larger render-target budgets. - The first start ran the `warm` precompile for about 9 minutes before the window came up. Not checked: 32:9, `-HudPosition center` and `off`, F1 switching, loading-movie letterboxing. AI-assisted (Claude Code). Results are from my own run; no game data attached.
andrew-ai commented 2026-12-02 00:16:52 +00:00 (Migrated from github.com)

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


Confirmed the expanded 21:9 fallback at 0c9c18977 with the launcher's ultrawideSelected and switchArgs functions. With no monitor information from the backend, I simulated rounded CSS screen dimensions at 13 Windows scaling factors (100–400% in 25-point steps). At e7912f698 neither 2560x1080 nor 3840x1600 emitted the selected centered HUD argument at any scale (26 omissions). At the current head all 26 emitted -HudPosition center. Four 16:9/16:10 controls omitted it at all 52 combinations. The earlier six-panel matrix still passed all 78 combinations.

This checks auto-detection and generated launcher arguments with synthetic screen geometry. I did not render on these panels. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7330358797 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7330358797). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-02T00:16:52Z. --- Confirmed the expanded 21:9 fallback at 0c9c18977 with the launcher's ultrawideSelected and switchArgs functions. With no monitor information from the backend, I simulated rounded CSS screen dimensions at 13 Windows scaling factors (100–400% in 25-point steps). At e7912f698 neither 2560x1080 nor 3840x1600 emitted the selected centered HUD argument at any scale (26 omissions). At the current head all 26 emitted -HudPosition center. Four 16:9/16:10 controls omitted it at all 52 combinations. The earlier six-panel matrix still passed all 78 combinations. This checks auto-detection and generated launcher arguments with synthetic screen geometry. I did not render on these panels. Codex-assisted.
OreoFR commented 2026-12-02 00:57:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T00:57:31Z.


Thanks for this, and for the ultrawide runs people have posted. Where it stands for a merge, so it doesn't wait without anyone saying why:

  • it now conflicts with main (GitHub shows CONFLICTING), so no CI has run on the current head;
  • KelboLive's review asks for changes that are still open;
  • it depends on #2889 (two CI checks failing at the moment) and #2900 (green CI, no verdict yet), and the description notes a conflict with #2900 in d3d12/crates/leonida-loader/src/hooks.rs.

I'm verifying #2900 now (red/green and an in-game run). Once #2900 is in, a merge of main into this branch, KelboLive's points and a green CI would make it ready for a verdict.

AI-assisted: Claude Code (oreofr-agent).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7331150460 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7331150460). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T00:57:31Z. --- Thanks for this, and for the ultrawide runs people have posted. Where it stands for a merge, so it doesn't wait without anyone saying why: - it now conflicts with `main` (GitHub shows CONFLICTING), so no CI has run on the current head; - KelboLive's review asks for changes that are still open; - it depends on #2889 (two CI checks failing at the moment) and #2900 (green CI, no verdict yet), and the description notes a conflict with #2900 in `d3d12/crates/leonida-loader/src/hooks.rs`. I'm verifying #2900 now (red/green and an in-game run). Once #2900 is in, a merge of `main` into this branch, KelboLive's points and a green CI would make it ready for a verdict. AI-assisted: Claude Code (oreofr-agent).
andrew-ai commented 2026-12-02 01:13:02 +00:00 (Migrated from github.com)

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


Integration check for the queued #2900 dependency: main 4ccf3fed8 plus #2958 head 0c9c18977 conflicts in scripts/play-linux.sh and d3d12/docs/switches.md. Locally merging #2900 head 61a47216c into that main first adds d3d12/crates/leonida-loader/src/hooks.rs as a third conflict. In play-linux.sh, keeping the new shared usage function and its stderr call is sufficient if the usage line also lists all switches handled by the PR. The conflicting literal on the PR side omits --ultrawide, even though the parser accepts it. I tested the combined usage line with --series-x, --aspect-ratio, --ultrawide and --hud-position under Git Bash: -h and --help printed them to stdout and exited 0, while no arguments printed them to stderr and exited 2. This was a local launcher resolution only; the other conflicts still need integration. Codex-assisted.

Documentation follow-up on the same merged tree: I regenerated d3d12/docs/switches.md twice, once with each side of the two hooks.rs conflict hunks. Both generated pages contained 724 names and were byte-identical. The generator passed --check in both cases, and all 20 tests in test_d3d12_switches.py passed on the second tree. The docs conflict can be resolved by running python -I tools/d3d12_switches.py --out d3d12/docs/switches.md after resolving the sources. This experiment does not select a runtime resolution for hooks.rs.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7331446222 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7331446222). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-02T01:13:02Z. --- Integration check for the queued #2900 dependency: main 4ccf3fed8 plus #2958 head 0c9c18977 conflicts in scripts/play-linux.sh and d3d12/docs/switches.md. Locally merging #2900 head 61a47216c into that main first adds d3d12/crates/leonida-loader/src/hooks.rs as a third conflict. In play-linux.sh, keeping the new shared usage function and its stderr call is sufficient if the usage line also lists all switches handled by the PR. The conflicting literal on the PR side omits --ultrawide, even though the parser accepts it. I tested the combined usage line with --series-x, --aspect-ratio, --ultrawide and --hud-position under Git Bash: -h and --help printed them to stdout and exited 0, while no arguments printed them to stderr and exited 2. This was a local launcher resolution only; the other conflicts still need integration. Codex-assisted. Documentation follow-up on the same merged tree: I regenerated d3d12/docs/switches.md twice, once with each side of the two hooks.rs conflict hunks. Both generated pages contained 724 names and were byte-identical. The generator passed --check in both cases, and all 20 tests in test_d3d12_switches.py passed on the second tree. The docs conflict can be resolved by running python -I tools/d3d12_switches.py --out d3d12/docs/switches.md after resolving the sources. This experiment does not select a runtime resolution for hooks.rs.
invismann commented 2026-12-02 04:31:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by invismann on 2026-12-02T04:31:28Z.


Thanks for the review. The switch registry passes, marker labels now scale around their anchors with regression coverage, and Match monitor recognizes the additional 21:9 panel sizes and reports the preset it selects. I also removed the unreachable HUD path and updated the test disclosure with the 3440×1440 retail report and its limits. Could you re-review a79d72baf?

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7334994304 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7334994304). Originally posted by [invismann](https://github.com/invismann) on 2026-12-02T04:31:28Z. --- Thanks for the review. The switch registry passes, marker labels now scale around their anchors with regression coverage, and Match monitor recognizes the additional 21:9 panel sizes and reports the preset it selects. I also removed the unreachable HUD path and updated the test disclosure with the 3440×1440 retail report and its limits. Could you re-review `a79d72baf`?
MoonEyes commented 2026-12-02 12:32:44 +00:00 (Migrated from github.com)

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


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:7345498917 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7345498917). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:32:44Z. --- 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 14:18:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T14:18:47Z.


Ran natively on Windows 11, head 0dfd6bf2f merged into current main (d0bf821fa). The merge is clean, with no conflicts. The branch has since moved to 41533135d, which only merges main 69cd4106c; compose.rs and main.rs are unchanged by it, so the findings below should carry over, but I have not rerun on it. #2889 is still open and was not included. I used the repo toolchain with --locked.

Suites on the merge

Command Result
cargo test -p leonida-gpu --features diagnostics --lib 791 passed, 0 failed, 59 ignored
cargo test -p leonida-gpu --lib 709 passed, 59 ignored
cargo test -p leonida-hle --lib 250 passed, 2 ignored
cargo test -p leonida-loader 92 + 2 + 1 passed
cargo test -p leonida-shader --lib 431 passed, 6 ignored
cargo test -p leonida 52 + 2 + 2 + 1 passed
tests/test_leonida_launcher.py, test_launcher_serve.py, test_d3d12_switches.py 28, 11, 20 OK
tests/test_play_linux.py 2 skipped (POSIX only)
run_semantic_tests.py -p 'test_wide_shadow*.py' 1/1 OK
node --test tests/test_launcher_display.cjs 5/5
cargo clippy (gpu, hle, loader, shader, leonida; --all-targets, with and without diagnostics) one warning on a line this PR adds (below); the rest are in files or lines it does not touch

The clippy warning on a PR line is collapsible_if at apps/leonida/src/main.rs:207, the Shaders | Warm | Translate block.

The fractional-DPI fallback, the ps_5_0 target, the switch registry, fit_sprite and the 3440x1440 retail run are already covered above, so I left them out.

New: the compositor's GPU readbacks under the debug layer (native Windows, current head)

I ran compose::tests::centers_edge_hud_without_moving_the_middle_on_gpu and composes_scaled_premultiplied_plane_on_gpu with LEONIDA_D3D12_DEBUG=1, once on WARP and once on the hardware adapter. Both readbacks pass on both. The host drains the info queue into the log during submission, so I captured those D3D12: lines with a tracing subscriber:

Test WARP Hardware
premultiplied plane (narrow path) 0 errors (4 x id 820 "no clear value", from the test's clears) same
centered edge HUD (wide path) 1 confirmed error (id 527) plus 3 state-validation messages same 4

The four messages on the wide path, with addresses trimmed. My capture cut the three Set...RootDescriptorTable lines before their id and severity, so I can confirm the severity only for the barrier line. The same wording on the #2801 run was id 538, severity ERROR.

SetComputeRootDescriptorTable: Resource state (0x80: PIXEL_SHADER_RESOURCE) ... is invalid for use as a NON_PIXEL_SHADER_RESOURCE ...
ResourceBarrier: Before state (0x8: UNORDERED_ACCESS) ... does not match with the current resource state (0x40: NON_PIXEL_SHADER_RESOURCE) (assumed at first use)  id=527 severity=1
SetGraphicsRootDescriptorTable: Resource state (0x80: PIXEL_SHADER_RESOURCE) ... is invalid for use as a NON_PIXEL_SHADER_RESOURCE ...   (x2)

There is also a warning: CreateCommittedResource: Ignoring InitialState D3D12_RESOURCE_STATE_UNORDERED_ACCESS. Buffers are effectively created in state D3D12_RESOURCE_STATE_COMMON (id 1328).

This is how I read them from compose.rs; I have not tried a fix.

  • The SetCompute and SetGraphics errors. The wide root signature is DescriptorTable(SRV(t0, numDescriptors=4), UAV(u0)), with no visibility and no range flags. The validation is therefore DATA_STATIC_WHILE_SET_AT_EXECUTE for all four SRVs, at both the compute and the graphics bind. Only the overlay is moved to PIXEL_SHADER_RESOURCE | NON_PIXEL_SHADER_RESOURCE. The scene and the markers stay at PIXEL_SHADER_RESOURCE, both in the test and at the real call site in host.rs (pre.push(transition(texture, state, PIXEL_SHADER_RESOURCE))). So a debug run with the edge HUD should log these at least on the first composed present. I saw one frame only, so I can't say how often they repeat.
  • The barrier error. The splits buffer is created with InitialState UNORDERED_ACCESS, which a buffer ignores. It is also bound in the same table both as t3 (SRV) and as u0 (UAV) for the compute dispatch. So the first UNORDERED_ACCESS -> PIXEL_SHADER_RESOURCE barrier names a before-state the debug layer does not track.
  • Possible fixes. One option is flags=DATA_VOLATILE on the SRV range. Another is to move the scene and markers to both read states. A third is a separate table for the compute pass. In any case, create splits in COMMON and let the first barrier start from the right state.

On these two drivers none of this changes the pixels: the readbacks pass, with 5 checked pixels on the wide path. The narrow path gives no errors on the same run.

New: values at the edges, using the PR's own functions with synthetic input

NativeAspect::output_for and classify (Match monitor, no mode list):

Monitor Class Auto output
3200x1350, 3439x1440, 3441x1440 (and 2560x1080, 3440x1440, 3840x1600, 5120x2160, 6880x2880 by the same formula) 21:9 3440x1440
3840x1080 32:9 3840x1080
5120x1440, 7680x2160 32:9 5120x1440
5120x1600, 3840x1200 (32:10), 2520x1080, 2560x1079, 2560x1440, 3840x2160 none stock

An explicit 32:9 on a 1080p 16:9 monitor gives 5120x1440. On a 3440x1440 monitor whose mode list includes 3840x1080, it gives 3840x1080. On the sizes I compared, the Python monitor_is_ultrawide agrees with classify. The two expressions are also the same formula.

Invalid values are handled differently by the three Rust-side switches:

Env value Result
LEONIDA_ASPECT_RATIO=AUTO, Auto, 21x9, 64:27 run fails: LEONIDA_ASPECT_RATIO wants auto, 16:9, 21:9, or 32:9
LEONIDA_ASPECT_RATIO= (set, empty) run fails with the same error
LEONIDA_ASPECT_RATIO=" 21:9 " accepted (trimmed)
LEONIDA_NATIVE_ULTRAWIDE= / OFF / 0 off
LEONIDA_NATIVE_ULTRAWIDE=3440X1440 accepted
LEONIDA_HUD_POSITION=off off
LEONIDA_HUD_POSITION=OFF, Off, Center, centre, none, 0, "", " off" edges, with no warning

Two of these are worth a small change.

  • LEONIDA_ASPECT_RATIO set but empty is fatal. Profile::requested uses var_os, so the empty string reaches NativeAspect::parse and fails. LEONIDA_NATIVE_ULTRAWIDE= means off. The same call runs for leonida shaders, warm and translate (main.rs:207), so a stray empty variable stops those commands too. The scripts never produce it. play-nvidia.ps1 lower-cases the value and turns an empty one into auto on Series X, and play-linux.sh accepts only the exact values and exports auto when nothing is set. So this only affects a hand-set environment, such as export LEONIDA_ASPECT_RATIO= on Linux.
  • An unrecognised LEONIDA_HUD_POSITION silently gives the strongest correction. hud_position_for is exact and case-sensitive, and everything it does not recognise falls to edges. play-nvidia.ps1 lower-cases it (play-d3d12.ps1 passes it on to that script as typed), play-linux.sh rejects anything but the exact values, and the Python launcher drops unknown values to "", so again only a hand-set or hand-edited value is affected. A trim plus a case-insensitive match would make it behave like LEONIDA_NATIVE_ULTRAWIDE.

heap_budget (Budgets::resolve, check_available_commit, ultrawide_preset):

  • Bounds are enforced as documented. LEONIDA_RT_HEAP_MB=2199 is rejected and 2200 accepted; 24576 is accepted and 24577 rejected. LEONIDA_SCENE_POOL_MB=710 is rejected, 711 and 4095 are accepted, and 4096 is rejected. -1, 8000MB, 1e4 and a 20-digit value are rejected with a clear message. 0 turns the automatic value off.
  • The automatic preset applies only above 2560x1440 rendered pixels. For 3440x1440 that means render scale 0.9 and above (0.8 falls back to stock budgets). For 5120x1440 it means 0.75 and above.
  • The commit needed by the automatic budgets is 19,203 MiB for 3440x1440 and 3840x1080, and 20,003 MiB for 5120x1440. Below that the run stops with "Pick an upscaling mode such as DLSS Quality or increase the Windows page file". docs/ultrawide.md already says to lower the render scale or grow the page file, but it gives no figure. The numbers above might help there, since the retail report above was at 99% RAM on a 32 GB machine.
  • Wide shadow tiles turn on above a 4096-pixel scene width. For 5120x1440 that means scale 0.9 and above; at 0.8 (4096) they stay off.

Launcher plumbing

  • play-linux.sh, run under Git Bash with a missing game path so that nothing starts:
    • --aspect-ratio AUTO, a missing value and --hud-position Center exit 2 with the usage hint.
    • --aspect-ratio 21:9 without --series-x, --ultrawide 3440x1440 alone, and LEONIDA_NATIVE_ULTRAWIDE=5120x1440 or LEONIDA_ASPECT_RATIO=21:9 in the environment on a Series S start exit 2 with "Native ultrawide requires --series-x".
    • Valid Series X combinations reach the game-file check (exit 1).
  • In tools/leonida_launcher.py, normalise drops AUTO, " 21:9 ", 32:10, CENTER, Off and the like to "", which means "follow the F1 settings". switch_args leaves out -HudPosition with an explicit 16:9, and on Series S emits only -SeriesS. The Windows and Linux play_command lists keep a game path with spaces and parentheses as a single argument.
  • In the .ps1 files I only read the code. play-nvidia.ps1 lower-cases -HudPosition and the aspect before aspect-output, and play-d3d12.ps1 forwards both to it unchanged. The $again restart line escapes single quotes. & $leonida aspect-output is safe with spaces in the path.

Not checked: a run of the title (no game launch), 32:9 on a real panel, F1 switching, loading-movie letterboxing, and the loader patches against the retail executable (the fixtures self-skip without it). I also did not check behaviour with #2889 merged.

GPUs tested: one NVIDIA desktop card + WARP.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348335678 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7348335678). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T14:18:47Z. --- Ran natively on Windows 11, head `0dfd6bf2f` merged into current `main` (`d0bf821fa`). The merge is clean, with no conflicts. The branch has since moved to `41533135d`, which only merges `main` `69cd4106c`; `compose.rs` and `main.rs` are unchanged by it, so the findings below should carry over, but I have not rerun on it. #2889 is still open and was not included. I used the repo toolchain with `--locked`. **Suites on the merge** | Command | Result | |---|---| | `cargo test -p leonida-gpu --features diagnostics --lib` | 791 passed, 0 failed, 59 ignored | | `cargo test -p leonida-gpu --lib` | 709 passed, 59 ignored | | `cargo test -p leonida-hle --lib` | 250 passed, 2 ignored | | `cargo test -p leonida-loader` | 92 + 2 + 1 passed | | `cargo test -p leonida-shader --lib` | 431 passed, 6 ignored | | `cargo test -p leonida` | 52 + 2 + 2 + 1 passed | | `tests/test_leonida_launcher.py`, `test_launcher_serve.py`, `test_d3d12_switches.py` | 28, 11, 20 OK | | `tests/test_play_linux.py` | 2 skipped (POSIX only) | | `run_semantic_tests.py -p 'test_wide_shadow*.py'` | 1/1 OK | | `node --test tests/test_launcher_display.cjs` | 5/5 | | `cargo clippy` (gpu, hle, loader, shader, leonida; `--all-targets`, with and without `diagnostics`) | one warning on a line this PR adds (below); the rest are in files or lines it does not touch | The clippy warning on a PR line is `collapsible_if` at `apps/leonida/src/main.rs:207`, the `Shaders | Warm | Translate` block. The fractional-DPI fallback, the `ps_5_0` target, the switch registry, `fit_sprite` and the 3440x1440 retail run are already covered above, so I left them out. **New: the compositor's GPU readbacks under the debug layer (native Windows, current head)** I ran `compose::tests::centers_edge_hud_without_moving_the_middle_on_gpu` and `composes_scaled_premultiplied_plane_on_gpu` with `LEONIDA_D3D12_DEBUG=1`, once on WARP and once on the hardware adapter. Both readbacks pass on both. The host drains the info queue into the log during submission, so I captured those `D3D12:` lines with a tracing subscriber: | Test | WARP | Hardware | |---|---|---| | premultiplied plane (narrow path) | 0 errors (4 x id 820 "no clear value", from the test's clears) | same | | centered edge HUD (wide path) | 1 confirmed error (id 527) plus 3 state-validation messages | same 4 | The four messages on the wide path, with addresses trimmed. My capture cut the three `Set...RootDescriptorTable` lines before their id and severity, so I can confirm the severity only for the barrier line. The same wording on the #2801 run was id 538, severity ERROR. ``` SetComputeRootDescriptorTable: Resource state (0x80: PIXEL_SHADER_RESOURCE) ... is invalid for use as a NON_PIXEL_SHADER_RESOURCE ... ResourceBarrier: Before state (0x8: UNORDERED_ACCESS) ... does not match with the current resource state (0x40: NON_PIXEL_SHADER_RESOURCE) (assumed at first use) id=527 severity=1 SetGraphicsRootDescriptorTable: Resource state (0x80: PIXEL_SHADER_RESOURCE) ... is invalid for use as a NON_PIXEL_SHADER_RESOURCE ... (x2) ``` There is also a warning: `CreateCommittedResource: Ignoring InitialState D3D12_RESOURCE_STATE_UNORDERED_ACCESS. Buffers are effectively created in state D3D12_RESOURCE_STATE_COMMON` (id 1328). This is how I read them from `compose.rs`; I have not tried a fix. - **The `SetCompute` and `SetGraphics` errors.** The wide root signature is `DescriptorTable(SRV(t0, numDescriptors=4), UAV(u0))`, with no visibility and no range flags. The validation is therefore `DATA_STATIC_WHILE_SET_AT_EXECUTE` for all four SRVs, at both the compute and the graphics bind. Only the overlay is moved to `PIXEL_SHADER_RESOURCE | NON_PIXEL_SHADER_RESOURCE`. The scene and the markers stay at `PIXEL_SHADER_RESOURCE`, both in the test and at the real call site in `host.rs` (`pre.push(transition(texture, state, PIXEL_SHADER_RESOURCE))`). So a debug run with the edge HUD should log these at least on the first composed present. I saw one frame only, so I can't say how often they repeat. - **The barrier error.** The `splits` buffer is created with `InitialState` `UNORDERED_ACCESS`, which a buffer ignores. It is also bound in the same table both as `t3` (SRV) and as `u0` (UAV) for the compute dispatch. So the first `UNORDERED_ACCESS -> PIXEL_SHADER_RESOURCE` barrier names a before-state the debug layer does not track. - **Possible fixes.** One option is `flags=DATA_VOLATILE` on the SRV range. Another is to move the scene and markers to both read states. A third is a separate table for the compute pass. In any case, create `splits` in `COMMON` and let the first barrier start from the right state. On these two drivers none of this changes the pixels: the readbacks pass, with 5 checked pixels on the wide path. The narrow path gives no errors on the same run. **New: values at the edges, using the PR's own functions with synthetic input** `NativeAspect::output_for` and `classify` (Match monitor, no mode list): | Monitor | Class | Auto output | |---|---|---| | 3200x1350, 3439x1440, 3441x1440 (and 2560x1080, 3440x1440, 3840x1600, 5120x2160, 6880x2880 by the same formula) | 21:9 | 3440x1440 | | 3840x1080 | 32:9 | 3840x1080 | | 5120x1440, 7680x2160 | 32:9 | 5120x1440 | | 5120x1600, 3840x1200 (32:10), 2520x1080, 2560x1079, 2560x1440, 3840x2160 | none | stock | An explicit `32:9` on a 1080p 16:9 monitor gives 5120x1440. On a 3440x1440 monitor whose mode list includes 3840x1080, it gives 3840x1080. On the sizes I compared, the Python `monitor_is_ultrawide` agrees with `classify`. The two expressions are also the same formula. Invalid values are handled differently by the three Rust-side switches: | Env value | Result | |---|---| | `LEONIDA_ASPECT_RATIO=AUTO`, `Auto`, `21x9`, `64:27` | run fails: `LEONIDA_ASPECT_RATIO wants auto, 16:9, 21:9, or 32:9` | | `LEONIDA_ASPECT_RATIO=` (set, empty) | **run fails** with the same error | | `LEONIDA_ASPECT_RATIO=" 21:9 "` | accepted (trimmed) | | `LEONIDA_NATIVE_ULTRAWIDE=` / `OFF` / `0` | off | | `LEONIDA_NATIVE_ULTRAWIDE=3440X1440` | accepted | | `LEONIDA_HUD_POSITION=off` | off | | `LEONIDA_HUD_POSITION=OFF`, `Off`, `Center`, `centre`, `none`, `0`, `""`, `" off"` | **`edges`**, with no warning | Two of these are worth a small change. - **`LEONIDA_ASPECT_RATIO` set but empty is fatal.** `Profile::requested` uses `var_os`, so the empty string reaches `NativeAspect::parse` and fails. `LEONIDA_NATIVE_ULTRAWIDE=` means off. The same call runs for `leonida shaders`, `warm` and `translate` (`main.rs:207`), so a stray empty variable stops those commands too. The scripts never produce it. `play-nvidia.ps1` lower-cases the value and turns an empty one into `auto` on Series X, and `play-linux.sh` accepts only the exact values and exports `auto` when nothing is set. So this only affects a hand-set environment, such as `export LEONIDA_ASPECT_RATIO=` on Linux. - **An unrecognised `LEONIDA_HUD_POSITION` silently gives the strongest correction.** `hud_position_for` is exact and case-sensitive, and everything it does not recognise falls to `edges`. `play-nvidia.ps1` lower-cases it (`play-d3d12.ps1` passes it on to that script as typed), `play-linux.sh` rejects anything but the exact values, and the Python launcher drops unknown values to `""`, so again only a hand-set or hand-edited value is affected. A trim plus a case-insensitive match would make it behave like `LEONIDA_NATIVE_ULTRAWIDE`. `heap_budget` (`Budgets::resolve`, `check_available_commit`, `ultrawide_preset`): - Bounds are enforced as documented. `LEONIDA_RT_HEAP_MB=2199` is rejected and `2200` accepted; `24576` is accepted and `24577` rejected. `LEONIDA_SCENE_POOL_MB=710` is rejected, `711` and `4095` are accepted, and `4096` is rejected. `-1`, `8000MB`, `1e4` and a 20-digit value are rejected with a clear message. `0` turns the automatic value off. - The automatic preset applies only above 2560x1440 rendered pixels. For 3440x1440 that means render scale 0.9 and above (0.8 falls back to stock budgets). For 5120x1440 it means 0.75 and above. - The commit needed by the automatic budgets is 19,203 MiB for 3440x1440 and 3840x1080, and 20,003 MiB for 5120x1440. Below that the run stops with "Pick an upscaling mode such as DLSS Quality or increase the Windows page file". `docs/ultrawide.md` already says to lower the render scale or grow the page file, but it gives no figure. The numbers above might help there, since the retail report above was at 99% RAM on a 32 GB machine. - Wide shadow tiles turn on above a 4096-pixel scene width. For 5120x1440 that means scale 0.9 and above; at 0.8 (4096) they stay off. **Launcher plumbing** - `play-linux.sh`, run under Git Bash with a missing game path so that nothing starts: - `--aspect-ratio AUTO`, a missing value and `--hud-position Center` exit 2 with the usage hint. - `--aspect-ratio 21:9` without `--series-x`, `--ultrawide 3440x1440` alone, and `LEONIDA_NATIVE_ULTRAWIDE=5120x1440` or `LEONIDA_ASPECT_RATIO=21:9` in the environment on a Series S start exit 2 with "Native ultrawide requires --series-x". - Valid Series X combinations reach the game-file check (exit 1). - In `tools/leonida_launcher.py`, `normalise` drops `AUTO`, `" 21:9 "`, `32:10`, `CENTER`, `Off` and the like to `""`, which means "follow the F1 settings". `switch_args` leaves out `-HudPosition` with an explicit `16:9`, and on Series S emits only `-SeriesS`. The Windows and Linux `play_command` lists keep a game path with spaces and parentheses as a single argument. - In the `.ps1` files I only read the code. `play-nvidia.ps1` lower-cases `-HudPosition` and the aspect before `aspect-output`, and `play-d3d12.ps1` forwards both to it unchanged. The `$again` restart line escapes single quotes. `& $leonida aspect-output` is safe with spaces in the path. Not checked: a run of the title (no game launch), 32:9 on a real panel, F1 switching, loading-movie letterboxing, and the loader patches against the retail executable (the fixtures self-skip without it). I also did not check behaviour with #2889 merged. GPUs tested: one NVIDIA desktop card + WARP. AI-assisted: yes (Claude Code).
invismann commented 2026-12-02 16:08:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by invismann on 2026-12-02T16:08:52Z.


Following up on the in-game test request. I tested PR head c6da7b78504f1c64ba93af20225d6c8455b3aa98 with upstream main at 83046a713f555db1a8f6d47d2c5746a48409568c merged in, and ran that same upstream commit alone for comparison.

GPU and OS were NVIDIA GeForce RTX 4090, driver 621.01, and Windows 11 Pro build 26300.10075. All runs used copies of the same save and the Series X profile at 1440p with DLSS and frame generation off and startup precompilation skipped. The 32:9 run used edge HUD placement.

Build and output Time in world Median rendered FPS Crashes / device losses Gate
Upstream 83046a713 · 16:9 · 2560×1440 301.4 s 41.58 0 / 0 Pass
PR c6da7b785 · 16:9 · 2560×1440 304.8 s and 302.6 s 41.64 0 / 0 across both Pass
PR c6da7b785 · 32:9 · 5120×1440 300.8 s 30.55 0 / 0 Pass

The 16:9 figures use repeats after excluding each build’s first run. The PR’s 41.64 FPS is the median of the two remaining run medians, 39.69 and 43.59 FPS. Upstream’s 41.58 FPS is from its one remaining repeat.

Upstream has advanced since the tested merge. The results above are for the exact commits listed.

AI-assisted test automation and report (Codex, GPT-6).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7351510210 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7351510210). Originally posted by [invismann](https://github.com/invismann) on 2026-12-02T16:08:52Z. --- Following up on the [in-game test request](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7345498917). I tested PR head `c6da7b78504f1c64ba93af20225d6c8455b3aa98` with upstream `main` at `83046a713f555db1a8f6d47d2c5746a48409568c` merged in, and ran that same upstream commit alone for comparison. GPU and OS were NVIDIA GeForce RTX 4090, driver 621.01, and Windows 11 Pro build 26300.10075. All runs used copies of the same save and the Series X profile at 1440p with DLSS and frame generation off and startup precompilation skipped. The 32:9 run used edge HUD placement. | Build and output | Time in world | Median rendered FPS | Crashes / device losses | Gate | | --- | ---: | ---: | ---: | --- | | Upstream `83046a713` · 16:9 · 2560×1440 | 301.4 s | 41.58 | 0 / 0 | Pass | | PR `c6da7b785` · 16:9 · 2560×1440 | 304.8 s and 302.6 s | 41.64 | 0 / 0 across both | Pass | | PR `c6da7b785` · 32:9 · 5120×1440 | 300.8 s | 30.55 | 0 / 0 | Pass | The 16:9 figures use repeats after excluding each build’s first run. The PR’s 41.64 FPS is the median of the two remaining run medians, 39.69 and 43.59 FPS. Upstream’s 41.58 FPS is from its one remaining repeat. Upstream has advanced since the tested merge. The results above are for the exact commits listed. AI-assisted test automation and report (Codex, GPT-6).
MoonEyes commented 2026-12-02 18:12:28 +00:00 (Migrated from github.com)

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


Checked #2958 at its newest head on Linux: every Python, Node, translator and docs check it touches passes. The Rust side is not built here (Windows-only). The in-game run is for an older head, but this PR's own Rust code has not changed since that head.

Head 5e083b4488 (pushed 2 December 18:34)
Base contains main 45dc41f95c (0 commits behind), so the head is the merge; the needs rebase label is stale
Size 46 files, +4,785 / -261

Ran (Linux, Python 3.13.18, Node 22, on an export of the head with its own git init)

python -I tests/test_leonida_launcher.py                     OK
python -I tests/test_launcher_serve.py                       OK
python -I tests/test_play_linux.py                           OK
python -I tests/test_win_launchers.py                        OK (skipped=9)
python -I tests/test_d3d12_switches.py                       OK
python -m unittest discover -s tests/semantic -p 'test_wide_shadow*.py'   OK
node --test tests/test_launcher_display.cjs                  pass 6, fail 0
python -m unittest discover -s tests -p 'test_docs_*.py'     OK
python -I scripts/check_no_game_data.py <every tracked file> exit 0

State of the review threads (read, not re-measured)

  • Kal0s-design's debug-layer findings on the wide HUD compositor (SetCompute/GraphicsRootDescriptorTable state errors and the UNORDERED_ACCESS barrier on the splits buffer, measured at 0dfd6bf2f) are answered by ab0c99be ("Fix D3D12 state validation in the ultrawide HUD compositor"). Nobody has posted a rerun of the two compose::tests GPU readbacks with LEONIDA_D3D12_DEBUG=1 since; that is the cheapest way to close it.
  • Kal0s-design's clippy::collapsible_if at d3d12/apps/leonida/src/main.rs:207 (a line this PR adds): not checked here.
  • In-game: invismann's gate run (RTX 4090, 16:9 and 32:9, 300 s or more, 0 crashes) is for c6da7b785, which already contains the compositor fix ab0c99be and f51bb691. Since then the only commit of the PR's own is af93cb81 (launcher settings and F1 choices); the rest are merges of main. git diff c6da7b785 5e083b4488 -- d3d12/crates d3d12/apps shows only main's fg.rs, host.rs and bitcode/opt.rs changes. So the run covers the PR's Rust code as it is now. MoonEyes' rule says a changed head needs a new run; a maintainer can decide whether a launcher-only delta counts.

Scope. This is ultrawide output, the HUD compositor, the wide-shadow translator rule, three launchers and docs in one PR. It is claimed as one item and the parts depend on each other, but it is hard to review and keeps conflicting with main (22 commits on the branch, several of them merges). Do not add anything more to it.

Verdict: ready, pending a maintainer's call on whether the c6da7b785 in-game run still counts, and a posted debug-layer rerun of the two compose::tests readbacks. No new defects found in the parts I could run.

AI-assisted: Claude Opus 5.5 (Claude Code), verification only.

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


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354123483 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7354123483). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:12:28Z. --- **Checked #2958 at its newest head on Linux: every Python, Node, translator and docs check it touches passes. The Rust side is not built here (Windows-only). The in-game run is for an older head, but this PR's own Rust code has not changed since that head.** | | | |---|---| | Head | `5e083b4488` (pushed 2 December 18:34) | | Base | contains `main` `45dc41f95c` (0 commits behind), so the head is the merge; the `needs rebase` label is stale | | Size | 46 files, +4,785 / -261 | **Ran (Linux, Python 3.13.18, Node 22, on an export of the head with its own `git init`)** ``` python -I tests/test_leonida_launcher.py OK python -I tests/test_launcher_serve.py OK python -I tests/test_play_linux.py OK python -I tests/test_win_launchers.py OK (skipped=9) python -I tests/test_d3d12_switches.py OK python -m unittest discover -s tests/semantic -p 'test_wide_shadow*.py' OK node --test tests/test_launcher_display.cjs pass 6, fail 0 python -m unittest discover -s tests -p 'test_docs_*.py' OK python -I scripts/check_no_game_data.py <every tracked file> exit 0 ``` **State of the review threads (read, not re-measured)** - Kal0s-design's debug-layer findings on the wide HUD compositor (`SetCompute/GraphicsRootDescriptorTable` state errors and the `UNORDERED_ACCESS` barrier on the `splits` buffer, measured at `0dfd6bf2f`) are answered by `ab0c99be` ("Fix D3D12 state validation in the ultrawide HUD compositor"). Nobody has posted a rerun of the two `compose::tests` GPU readbacks with `LEONIDA_D3D12_DEBUG=1` since; that is the cheapest way to close it. - Kal0s-design's `clippy::collapsible_if` at `d3d12/apps/leonida/src/main.rs:207` (a line this PR adds): not checked here. - In-game: invismann's gate run (RTX 4090, 16:9 and 32:9, 300 s or more, 0 crashes) is for `c6da7b785`, which already contains the compositor fix `ab0c99be` and `f51bb691`. Since then the only commit of the PR's own is `af93cb81` (launcher settings and F1 choices); the rest are merges of `main`. `git diff c6da7b785 5e083b4488 -- d3d12/crates d3d12/apps` shows only `main`'s `fg.rs`, `host.rs` and `bitcode/opt.rs` changes. So the run covers the PR's Rust code as it is now. MoonEyes' rule says a changed head needs a new run; a maintainer can decide whether a launcher-only delta counts. **Scope.** This is ultrawide output, the HUD compositor, the wide-shadow translator rule, three launchers and docs in one PR. It is claimed as one item and the parts depend on each other, but it is hard to review and keeps conflicting with `main` (22 commits on the branch, several of them merges). Do not add anything more to it. **Verdict: ready**, pending a maintainer's call on whether the `c6da7b785` in-game run still counts, and a posted debug-layer rerun of the two `compose::tests` readbacks. No new defects found in the parts I could run. AI-assisted: Claude Opus 5.5 (Claude Code), verification only. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
fiestorra commented 2026-12-03 05:59:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T05:59:15Z.


VERIFY-2958 — y aquí hay algo que no había visto en ninguna de las 200: test_leonida_launcher.py con 32 tests en vez de 144

La PR más grande de la cola después de #221: 46 ficheros, +4 789/−266, «native Series X ultrawide output and HUD controls» — launcher, play.ps1, play-d3d12.ps1, un test semántico nuevo y sus fixturas.

Y los tests que toca, corridos en su propio árbol:

tests/semantic/test_wide_shadow_tile_coords.py     1 passed
tests/test_launcher_serve.py                      13 passed
tests/test_leonida_launcher.py                    32 passed    ← no 144
tests/test_win_launchers.py                       13 passed + 6 subtests

Los 32 son el dato que importa: test_leonida_launcher.py tiene 144 tests en main y 32 en esta rama — su base es de antes de la reescritura del launcher, así que su copia del fichero es la vieja. Y eso no es un fallo del PR: es que la rama es de hace seis días y #3182 reescribió el launcher entero por debajo.

Lo que significa para quien quiera fusionarla: el diff de 46 ficheros incluye el leonida_launcher.py viejo, así que rebasarla no es aplicar un parche: es volver a escribir la parte del launcher sobre el nuevo. Es la única de las antiguas que necesita una persona y no un rebase.

Lo que verifiqué: los cinco tests que corren pasan (el .asm y el .cjs no son de pytest y no los ejecuté), y la discrepancia del 32/144 está medida, no supuesta.
Lo que no: el ultrawide nativo ni los controles del HUD — necesitan el título y una pantalla con esa relación de aspecto, y esta sesión no tiene escritorio.

Y una nota sobre el tamaño: 4 789 líneas y 46 ficheros es el 40 % de todo lo que hay en la cola vieja, y es la que más se va a resistir a un rebase. Si alguien quiere una recomendación: esta, primero, con su autor delante.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7369328620 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7369328620). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T05:59:15Z. --- ## VERIFY-2958 — y aquí hay algo que no había visto en ninguna de las 200: **`test_leonida_launcher.py` con 32 tests en vez de 144** **La PR más grande de la cola después de `#221`**: **46 ficheros, +4 789/−266**, **«native Series X ultrawide output and HUD controls»** — **launcher, `play.ps1`, `play-d3d12.ps1`, un test semántico nuevo y sus fixturas.** **Y los tests que toca, corridos en su propio árbol**: ``` tests/semantic/test_wide_shadow_tile_coords.py 1 passed tests/test_launcher_serve.py 13 passed tests/test_leonida_launcher.py 32 passed ← no 144 tests/test_win_launchers.py 13 passed + 6 subtests ``` **Los `32` son el dato que importa**: **`test_leonida_launcher.py` tiene 144 tests en `main` y 32 en esta rama** — **su base es de antes de la reescritura del launcher, así que su copia del fichero es la vieja.** **Y eso no es un fallo del PR: es que la rama es de hace seis días y `#3182` reescribió el launcher entero por debajo.** **Lo que significa para quien quiera fusionarla**: **el diff de 46 ficheros incluye el `leonida_launcher.py` viejo**, **así que rebasarla no es aplicar un parche: es volver a escribir la parte del launcher sobre el nuevo.** **Es la única de las antiguas que necesita una persona y no un `rebase`.** **Lo que verifiqué**: **los cinco tests que corren pasan** (**el `.asm` y el `.cjs` no son de pytest y no los ejecuté**), **y la discrepancia del 32/144 está medida, no supuesta.** **Lo que no**: **el ultrawide nativo ni los controles del HUD** — **necesitan el título y una pantalla con esa relación de aspecto, y esta sesión no tiene escritorio.** **Y una nota sobre el tamaño**: **4 789 líneas y 46 ficheros es el 40 % de todo lo que hay en la cola vieja**, **y es la que más se va a resistir a un rebase.** **Si alguien quiere una recomendación: esta, primero, con su autor delante.**
merzleckeier commented 2026-12-03 07:48:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T07:48:31Z.


Reviewed 85e2432e against main d9b618f1. The updated branch contains that base. The desktop launcher suite ran 153 tests (151 passed, 2 skipped), the web display suite passed all six, and the catalog check passed.

The existing card-mask test now needs a runnable aspect-output stub. test_card_mask_leaves_the_menus_nvidia_values_out_and_in_the_file creates an empty leonida.exe. The four Series X dry runs now actually invoke that file with aspect-output auto (d3d12/scripts/play-nvidia.ps1:719–728). Under Linux PowerShell 7.7.0 the test on main completes in under a second, while the same test from this head hits its 180 s timeout after emitting the result rows. Replacing just that empty file with an executable synthetic stub that returns the default output recorded all four calls and passed. With that fixture adjustment, the full file had 11 passes and six Windows-only skips.

I also paired this head with #3303 5942d059. The only merge conflict is the test block at the end of host/menu.rs. Preserving both sides of that block gave a Windows MSVC build with passing ultrawide-HUD and restart-command tests, plus 11 passing aspect tests under Wine. The execution test that requires Windows PowerShell skipped there. #3303 has already passed that test on hosted Windows. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7371453954 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7371453954). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T07:48:31Z. --- Reviewed `85e2432e` against `main` `d9b618f1`. The updated branch contains that base. The desktop launcher suite ran 153 tests (151 passed, 2 skipped), the web display suite passed all six, and the catalog check passed. **The existing card-mask test now needs a runnable `aspect-output` stub.** `test_card_mask_leaves_the_menus_nvidia_values_out_and_in_the_file` creates an empty `leonida.exe`. The four Series X dry runs now actually invoke that file with `aspect-output auto` (`d3d12/scripts/play-nvidia.ps1:719–728`). Under Linux PowerShell 7.7.0 the test on `main` completes in under a second, while the same test from this head hits its 180 s timeout after emitting the result rows. Replacing just that empty file with an executable synthetic stub that returns the default output recorded all four calls and passed. With that fixture adjustment, the full file had 11 passes and six Windows-only skips. I also paired this head with #3303 `5942d059`. The only merge conflict is the test block at the end of `host/menu.rs`. Preserving both sides of that block gave a Windows MSVC build with passing ultrawide-HUD and restart-command tests, plus 11 passing aspect tests under Wine. The execution test that requires Windows PowerShell skipped there. #3303 has already passed that test on hosted Windows. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-03 08:35:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T08:35:37Z.


RUN (in game, ultrawide on a 2560x1080 monitor, 8 GB card), head 85e2432e9 merged with git merge --no-ff onto main d9b618f10. RTX 4060 8 GB, driver 610.88, Windows 11, main monitor 2560x1080 (21:9). Series X profile (this pull request's native ultrawide needs it), -AspectRatio 21:9 -HudPosition edges -Fullscreen -Resolution 1080 -FrameGen 2 -PrecompileUsed, LEONIDA_CAPTURE on, 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 12.6, mean 12.7
Rendered fps, last 120 s median 12.6
Time under 5 fps in the world 3 %
Card memory of ours (the runtime's line) 5.6 to 5.7 GB in the world, no out-of-memory
Presented frames (captures, half size) 1720x720, ratio 2.39 (21:9 class)

What the captures show: an in-engine cutscene fills the whole 21:9 width without stretching, and the loading artwork stays centred with bars at its sides, as the description says it should.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) on an 8 GB card at 21:9, on the head above. If it changes its head, this run no longer covers it.

Limits: one run. The captured frames are a cutscene and a loading screen: the HUD at the edges, the wide pause map and its markers were not seen on pictures, so -HudPosition is not verified here. The presented size is the 21:9 preset (1720x720 at half size, so 3440x1440), scaled to the 2560x1080 monitor; whether a 2560x1080 preset would be picked by auto was not tried. 32:9, center, off, F1 switching and the loading-movie letterboxing were not exercised. The 7200/8000 MiB render-target budgets did not run the 8 GB card out of memory in 330 s; longer sessions were not tried.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7372478984 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7372478984). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T08:35:37Z. --- RUN (in game, ultrawide on a 2560x1080 monitor, 8 GB card), head `85e2432e9` merged with `git merge --no-ff` onto main `d9b618f10`. RTX 4060 8 GB, driver 610.88, Windows 11, main monitor 2560x1080 (21:9). Series X profile (this pull request's native ultrawide needs it), `-AspectRatio 21:9 -HudPosition edges -Fullscreen -Resolution 1080 -FrameGen 2 -PrecompileUsed`, `LEONIDA_CAPTURE` on, 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 12.6, mean 12.7 | | Rendered fps, last 120 s | median 12.6 | | Time under 5 fps in the world | 3 % | | Card memory of ours (the runtime's line) | 5.6 to 5.7 GB in the world, no out-of-memory | | Presented frames (captures, half size) | 1720x720, ratio 2.39 (21:9 class) | What the captures show: an in-engine cutscene fills the whole 21:9 width without stretching, and the loading artwork stays centred with bars at its sides, as the description says it should. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) on an 8 GB card at 21:9, on the head above. If it changes its head, this run no longer covers it. Limits: one run. The captured frames are a cutscene and a loading screen: the HUD at the edges, the wide pause map and its markers were not seen on pictures, so `-HudPosition` is not verified here. The presented size is the 21:9 preset (1720x720 at half size, so 3440x1440), scaled to the 2560x1080 monitor; whether a 2560x1080 preset would be picked by `auto` was not tried. 32:9, `center`, `off`, F1 switching and the loading-movie letterboxing were not exercised. The 7200/8000 MiB render-target budgets did not run the 8 GB card out of memory in 330 s; longer sessions were not tried. AI-assisted (Claude Code).
merzleckeier commented 2026-12-03 08:48:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T08:48:15Z.


I checked the compositor tests on 85e2432e against main d9b618f1 in a Windows MSVC diagnostics build under Wine 11.22, selecting the RTX 4070 SUPER and AMD Raphael separately. The six CPU-side compositor tests passed. On both adapters the stock premultiplied-plane test failed during composer creation with 0x80004005 on both main and the PR. The new edge-HUD readback stopped at the same stage. A separate probe confirmed that the D3D12 debug interface was unavailable in this setup (0x887A002D), so the native Windows debug-layer recheck is still open.

The combination with #3308 0940bc38 merges cleanly. The committed switch catalog matches a fresh generation byte for byte, and all 22 catalog tests passed on the combined tree.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7372764795 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2958#issuecomment-7372764795). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T08:48:15Z. --- I checked the compositor tests on `85e2432e` against `main` `d9b618f1` in a Windows MSVC diagnostics build under Wine 11.22, selecting the RTX 4070 SUPER and AMD Raphael separately. The six CPU-side compositor tests passed. On both adapters the stock premultiplied-plane test failed during composer creation with `0x80004005` on both `main` and the PR. The new edge-HUD readback stopped at the same stage. A separate probe confirmed that the D3D12 debug interface was unavailable in this setup (`0x887A002D`), so the native Windows debug-layer recheck is still open. The combination with #3308 `0940bc38` merges cleanly. The committed switch catalog matches a fresh generation byte for byte, and all 22 catalog tests passed on the combined tree. AI-assisted with OpenAI Codex.
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/2958:upstream-pr/2958'
git switch 'upstream-pr/2958'

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