Repository navigation
Conversation
Expose 3440x1440, 3840x1080 and 5120x1440 through the launchers and F1 menu. Keep render height independent of output and apply the retail HUD, memory and directional-shadow changes through the loader and presenter. Port the Victory changes through 6944be606 on 4ffd627ce. Use Foxhound PR readmet3xt-lab/foxhound#281 and its opt-in HUD follow-up cf95b5e3f as references for the PresentX adaptation.
|
Found a fractional-DPI edge case in the web launcher's monitor fallback at launcher/index.html:486–489 on 858fdd6. 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. |
|
The new HUD readback fails on both adapters with the bundled Microsoft compiler. I tested The stock Changing only the wide pixel shader target to There is also a separate CI failure after #2934. Synthetic inputs only. No game run. MEASURED with OpenAI Codex and independent raw-log verification. |
|
Checked the centered-HUD shader on native Windows at 858fdd6, 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:
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. |
Regenerate the switch reference for the drift check added in ProjectLeonida#2934. Validated four launcher cases, all 20 switch-documentation checks, and both synthetic D3D12 readbacks on Windows with an RTX 4090 (driver 621.01). Independent review used GPT-6.2 Sol.
|
Confirmed the fractional-DPI fix at e7912f6. At 5120×1440 and 175%, the earlier head emitted only 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
left a comment
There was a problem hiding this comment.
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:
- The switch registry check fails.
python -I tools/d3d12_switches.py --check d3d12/docs/switches.mdexits 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-onlyLEONIDA_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. world_marker::fit_spriteis a no-op. It computesscale() * canvas_scale(world_marker.rs:235-237) withscale() = 16H/(9W)(:88-97) andcanvas_scale = W*2160/(H*3840), which is exactly 1.0 for every supported preset, andfit_at(..., 1.0)returns the original viewport — so labels are never narrowed into the centered 16:9 band. Usescale()(already3840/layout_width) and add afit_spriteunit test; the existing pure test callsfit_at(..., 0.5)directly, so it cannot see this.Match monitoris default-on, not opt-in.play-nvidia.ps1:642-645forcesLEONIDA_ASPECT_RATIO=autofor every Series X start, which is a real behaviour change for existing users. It also doesn't classify2560×1080(common 21:9) or3840×1600as wide (aspect.rs:77requireswidth >= 3440), soMatch monitorreturnsNonethere, and on5120×2160it silently downshifts to3440×1440. Either extendclassifyand warn/test those sizes, or make it explicitly opt-in like the other wide switches.- 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.
Select the supported fixed preset for more 21:9 panel sizes, remove the unreachable HUD split path, and document the output and memory overrides. Verified 16 focused Rust tests including both synthetic D3D12 readbacks on Windows with an RTX 4090 (driver 621.01), 5 Node tests, and 56 Python launcher and switch checks. Independent review used GPT-6.2 Sol.
|
The current head passes the centered HUD readback with the Microsoft compiler that previously failed. I reran With the same DLL in a standalone 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. |
|
Retail run on a real 21:9 monitor, at the PR head 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. What was seen in game (about 4 min in the world, story save):
Numbers (window-title fps sampled every second, 232 samples, first run of this build):
Not checked: 32:9, AI-assisted (Claude Code). Results are from my own run; no game data attached. |
Claimed in the coordination issue as: Native Series X ultrawide.
Depends on: #2889, #2900
What and why
Simulated merges with #2889 and #2900 reported content conflicts in the loader output planner (
d3d12/crates/leonida-loader/src/hooks.rs).Tested
leonidawith the pinned Rust toolchain on Windows. The earlier red/green run found eight launcher tests that failed on the base and passed with this PR.LEONIDA_DISPLAY_PROFILE_TEST_IMAGEunder test-only switches.GPUs tested: NVIDIA GeForce RTX 4090, driver 621.01, Windows, for synthetic compositor readbacks.
Retail gameplay, in-game HUD and map appearance, and stability with the 7200/8000 MiB render-target heap and 1600 MiB scene-pool budgets remain unverified on this branch. 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
mainand merges cleanly.docs/design.md.