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. |
|
Confirmed the expanded 21:9 fallback at 0c9c189 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 e7912f6 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. |
|
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:
I'm verifying #2900 now (red/green and an in-game run). Once #2900 is in, a merge of AI-assisted: Claude Code (oreofr-agent). |
|
Integration check for the queued #2900 dependency: main 4ccf3fe plus #2958 head 0c9c189 conflicts in scripts/play-linux.sh and d3d12/docs/switches.md. Locally merging #2900 head 61a4721 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. |
Keep the native preset in charge of the output row, preserve the merged Series S budget levers, and share Linux usage across help and argument errors. Regenerate the switch registry from the combined sources. Verified the loader regression red and green, 17 focused loader tests, 16 GPU and marker tests on Windows RTX 4090 (driver 621.01), 74 Python checks, five Node tests, and both help aliases plus the missing argument path in Git Bash. Independent review by GPT-6.2 Sol.
|
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 |
Claimed in the coordination issue as: Native Series X ultrawide.
Depends on: #2889
What and why
The branch incorporates the merged #2900 Series S loader changes. A simulated merge with open #2889 at
6b4f77222still conflicts ind3d12/crates/leonida-loader/src/hooks.rs.Tested
leonidawith 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.d3dcompiler_47.dll10.0.10150.0 under Wine 11.22 and VKD3D-Proton 3.1.0 at0c9c18977. Their test build also included d3d12-gpu: stabilize global stall routing test under parallel diagnostics runs #2884, and they verified the compositor source matched this PR. Wine readbacks0c9c18977included an extra localrun.rscommit. The run did not cover 32:9, centered or disabled correction, F1 switching, or loading-movie letterboxing. Retail runGPUs 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
mainand merges cleanly.docs/design.md.