Add native Series X ultrawide output and HUD controls #2958
Open
github-bot
wants to merge 30 commits from
github-bot/gh-2958 into main
AGit
pull from: github-bot/gh-2958
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2958
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2958"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@invismann on GitHub · 2026-12-01 21:31 UTC · original
invismann:feat/mandy-ultrawide→main· +4868 −305 · 50 files · 30 commits · openClaimed 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 #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.@andrew-ai on GitHub · 2026-12-01 21:45 UTC · original
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 on GitHub · 2026-12-01 21:51 UTC · original
The new HUD readback fails on both adapters with the bundled Microsoft compiler. I tested
858fdd676merged into1a52f5b63with 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_gpufails atComposer::for_device(..., true)with0x80004005before 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 isolatedD3DCompilecall locate the failure with Microsoftd3dcompiler_47.dll10.0.10150.0 at the wideps_5_1entry. It reportsX8000, 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_0made the completecompose::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 ignoresRootSignature.There is also a separate CI failure after #2934.
python -I tests/test_d3d12_switches.pypasses 19/20 on the merge because eight names are missing fromd3d12/docs/switches.md.python -I tools/d3d12_switches.py --out d3d12/docs/switches.mdfollowed 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 on GitHub · 2026-12-01 21:55 UTC · original
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: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.
c4ca576150' into feat/mandy-ultrawide 3c8c3b3125@andrew-ai on GitHub · 2026-12-01 22:02 UTC · original
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 on GitHub · 2026-12-01 22:12 UTC · original · requested changes
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))withui != Gamefailsa_queued_present_uses_the_captured_gameplay_state. But I would not merge yet; four things: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.Also:
HudLayout::ToEdges/edge_hudlooks unreachable becauseedges = wide_overlay && hud_at_edges()(host.rs:13850), sowide=false, edges=truecannot occur — split-mode coverage is less than it looks. AndLEONIDA_DISPLAY_PROFILE_TEST_IMAGEis a test-only hook that should not be user-facing.No generated artifacts or game data:
check_no_game_datapasses 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 inloader/src/hooks.rs(both touchresolution_levers), #2851 only sharesswitches.md, and #2915 is clean.1abef08d09' into feat/mandy-ultrawide 0c9c18977c@merzleckeier on GitHub · 2026-12-01 22:50 UTC · original
The current head passes the centered HUD readback with the Microsoft compiler that previously failed.
I reran
compose::testswith Wine 11.22 / VKD3D-Proton 3.1.0 and Microsoftd3dcompiler_47.dllfile version10.0.10150.0. The earlier stock binary at858fdd676on1a52f5b63still failsComposer::for_devicewith0x80004005for the wide test, and passes the narrow control, on both the RTX 4070 SUPER (620.73.4) and Radeon Raphael (RADV 26.3.1). On0c9c18977at main1abef08d0, 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
D3DCompilecall, the current wide shader still reportsX8000onps_5_1. Theps_5_0target now used by the wide path compiles to 6,304 bytes. The narrowps_5_1and wide vertex/compute controls also compile. DLL SHA-2568c88c162010a8d6b80f2c0433d4ce973ce626afcbc8da5be68bfa2ba68341eba.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 on GitHub · 2026-12-01 22:57 UTC · original
Retail run on a real 21:9 monitor, at the PR head
0c9c18977(based onmainc4ca57615), diag build viabuild-nvidia.ps1. The build has one local commit outside this PR, inrun.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):
ultrawide: positioning the map cursor relative to its display area layout_width=5160, and images from anultrawide-…cache.Numbers (window-title fps sampled every second, 232 samples, first run of this build):
warmprecompile for about 9 minutes before the window came up.Not checked: 32:9,
-HudPosition centerandoff, F1 switching, loading-movie letterboxing.AI-assisted (Claude Code). Results are from my own run; no game data attached.
@andrew-ai on GitHub · 2026-12-02 00:16 UTC · original
Confirmed the expanded 21:9 fallback at
0c9c18977with 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). Ate7912f698neither 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 on GitHub · 2026-12-02 00:57 UTC · original
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:
main(GitHub shows CONFLICTING), so no CI has run on the current head;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
maininto this branch, KelboLive's points and a green CI would make it ready for a verdict.AI-assisted: Claude Code (oreofr-agent).
@andrew-ai on GitHub · 2026-12-02 01:13 UTC · original · edited 2026-12-02 01:14 UTC
Integration check for the queued #2900 dependency: main
4ccf3fed8plus #2958 head0c9c18977conflicts in scripts/play-linux.sh and d3d12/docs/switches.md. Locally merging #2900 head61a47216cinto 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 on GitHub · 2026-12-02 04:31 UTC · original
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 on GitHub · 2026-12-02 12:32 UTC · original
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:mainSHA it was merged onto;mainalone 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).
69cd4106ce' into HEAD 41533135d3@Kal0s-design on GitHub · 2026-12-02 14:18 UTC · original
Ran natively on Windows 11, head
0dfd6bf2fmerged into currentmain(d0bf821fa). The merge is clean, with no conflicts. The branch has since moved to41533135d, which only mergesmain69cd4106c;compose.rsandmain.rsare 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
cargo test -p leonida-gpu --features diagnostics --libcargo test -p leonida-gpu --libcargo test -p leonida-hle --libcargo test -p leonida-loadercargo test -p leonida-shader --libcargo test -p leonidatests/test_leonida_launcher.py,test_launcher_serve.py,test_d3d12_switches.pytests/test_play_linux.pyrun_semantic_tests.py -p 'test_wide_shadow*.py'node --test tests/test_launcher_display.cjscargo clippy(gpu, hle, loader, shader, leonida;--all-targets, with and withoutdiagnostics)The clippy warning on a PR line is
collapsible_ifatapps/leonida/src/main.rs:207, theShaders | Warm | Translateblock.The fractional-DPI fallback, the
ps_5_0target, the switch registry,fit_spriteand 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_gpuandcomposes_scaled_premultiplied_plane_on_gpuwithLEONIDA_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 thoseD3D12:lines with a tracing subscriber:The four messages on the wide path, with addresses trimmed. My capture cut the three
Set...RootDescriptorTablelines 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.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.SetComputeandSetGraphicserrors. The wide root signature isDescriptorTable(SRV(t0, numDescriptors=4), UAV(u0)), with no visibility and no range flags. The validation is thereforeDATA_STATIC_WHILE_SET_AT_EXECUTEfor all four SRVs, at both the compute and the graphics bind. Only the overlay is moved toPIXEL_SHADER_RESOURCE | NON_PIXEL_SHADER_RESOURCE. The scene and the markers stay atPIXEL_SHADER_RESOURCE, both in the test and at the real call site inhost.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.splitsbuffer is created withInitialStateUNORDERED_ACCESS, which a buffer ignores. It is also bound in the same table both ast3(SRV) and asu0(UAV) for the compute dispatch. So the firstUNORDERED_ACCESS -> PIXEL_SHADER_RESOURCEbarrier names a before-state the debug layer does not track.flags=DATA_VOLATILEon 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, createsplitsinCOMMONand 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_forandclassify(Match monitor, no mode list):An explicit
32:9on 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 Pythonmonitor_is_ultrawideagrees withclassify. The two expressions are also the same formula.Invalid values are handled differently by the three Rust-side switches:
LEONIDA_ASPECT_RATIO=AUTO,Auto,21x9,64:27LEONIDA_ASPECT_RATIO wants auto, 16:9, 21:9, or 32:9LEONIDA_ASPECT_RATIO=(set, empty)LEONIDA_ASPECT_RATIO=" 21:9 "LEONIDA_NATIVE_ULTRAWIDE=/OFF/0LEONIDA_NATIVE_ULTRAWIDE=3440X1440LEONIDA_HUD_POSITION=offLEONIDA_HUD_POSITION=OFF,Off,Center,centre,none,0,""," off"edges, with no warningTwo of these are worth a small change.
LEONIDA_ASPECT_RATIOset but empty is fatal.Profile::requestedusesvar_os, so the empty string reachesNativeAspect::parseand fails.LEONIDA_NATIVE_ULTRAWIDE=means off. The same call runs forleonida shaders,warmandtranslate(main.rs:207), so a stray empty variable stops those commands too. The scripts never produce it.play-nvidia.ps1lower-cases the value and turns an empty one intoautoon Series X, andplay-linux.shaccepts only the exact values and exportsautowhen nothing is set. So this only affects a hand-set environment, such asexport LEONIDA_ASPECT_RATIO=on Linux.LEONIDA_HUD_POSITIONsilently gives the strongest correction.hud_position_foris exact and case-sensitive, and everything it does not recognise falls toedges.play-nvidia.ps1lower-cases it (play-d3d12.ps1passes it on to that script as typed),play-linux.shrejects 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 likeLEONIDA_NATIVE_ULTRAWIDE.heap_budget(Budgets::resolve,check_available_commit,ultrawide_preset):LEONIDA_RT_HEAP_MB=2199is rejected and2200accepted;24576is accepted and24577rejected.LEONIDA_SCENE_POOL_MB=710is rejected,711and4095are accepted, and4096is rejected.-1,8000MB,1e4and a 20-digit value are rejected with a clear message.0turns the automatic value off.docs/ultrawide.mdalready 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.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 Centerexit 2 with the usage hint.--aspect-ratio 21:9without--series-x,--ultrawide 3440x1440alone, andLEONIDA_NATIVE_ULTRAWIDE=5120x1440orLEONIDA_ASPECT_RATIO=21:9in the environment on a Series S start exit 2 with "Native ultrawide requires --series-x".tools/leonida_launcher.py,normalisedropsAUTO," 21:9 ",32:10,CENTER,Offand the like to"", which means "follow the F1 settings".switch_argsleaves out-HudPositionwith an explicit16:9, and on Series S emits only-SeriesS. The Windows and Linuxplay_commandlists keep a game path with spaces and parentheses as a single argument..ps1files I only read the code.play-nvidia.ps1lower-cases-HudPositionand the aspect beforeaspect-output, andplay-d3d12.ps1forwards both to it unchanged. The$againrestart line escapes single quotes.& $leonida aspect-outputis 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 on GitHub · 2026-12-02 16:08 UTC · original
Following up on the in-game test request. I tested PR head
c6da7b78504f1c64ba93af20225d6c8455b3aa98with upstreammainat83046a713f555db1a8f6d47d2c5746a48409568cmerged 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.
83046a713· 16:9 · 2560×1440c6da7b785· 16:9 · 2560×1440c6da7b785· 32:9 · 5120×1440The 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 on GitHub · 2026-12-02 18:12 UTC · original
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.
5e083b4488(pushed 2 December 18:34)main45dc41f95c(0 commits behind), so the head is the merge; theneeds rebaselabel is staleRan (Linux, Python 3.13.18, Node 22, on an export of the head with its own
git init)State of the review threads (read, not re-measured)
SetCompute/GraphicsRootDescriptorTablestate errors and theUNORDERED_ACCESSbarrier on thesplitsbuffer, measured at0dfd6bf2f) are answered byab0c99be("Fix D3D12 state validation in the ultrawide HUD compositor"). Nobody has posted a rerun of the twocompose::testsGPU readbacks withLEONIDA_D3D12_DEBUG=1since; that is the cheapest way to close it.clippy::collapsible_ifatd3d12/apps/leonida/src/main.rs:207(a line this PR adds): not checked here.c6da7b785, which already contains the compositor fixab0c99beandf51bb691. Since then the only commit of the PR's own isaf93cb81(launcher settings and F1 choices); the rest are merges ofmain.git diff c6da7b785 5e083b4488 -- d3d12/crates d3d12/appsshows onlymain'sfg.rs,host.rsandbitcode/opt.rschanges. 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
c6da7b785in-game run still counts, and a posted debug-layer rerun of the twocompose::testsreadbacks. 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
@fiestorra on GitHub · 2026-12-03 05:59 UTC · original
VERIFY-2958 — y aquí hay algo que no había visto en ninguna de las 200:
test_leonida_launcher.pycon 32 tests en vez de 144La 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:
Los
32son el dato que importa:test_leonida_launcher.pytiene 144 tests enmainy 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#3182reescribió el launcher entero por debajo.Lo que significa para quien quiera fusionarla: el diff de 46 ficheros incluye el
leonida_launcher.pyviejo, 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 unrebase.Lo que verifiqué: los cinco tests que corren pasan (el
.asmy el.cjsno 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 on GitHub · 2026-12-03 07:48 UTC · original
Reviewed
85e2432eagainstmaind9b618f1. 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-outputstub.test_card_mask_leaves_the_menus_nvidia_values_out_and_in_the_filecreates an emptyleonida.exe. The four Series X dry runs now actually invoke that file withaspect-output auto(d3d12/scripts/play-nvidia.ps1:719–728). Under Linux PowerShell 7.7.0 the test onmaincompletes 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 ofhost/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 on GitHub · 2026-12-03 08:35 UTC · original
RUN (in game, ultrawide on a 2560x1080 monitor, 8 GB card), head
85e2432e9merged withgit merge --no-ffonto maind9b618f10. 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_CAPTUREon, 330 s after reaching the world.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
-HudPositionis 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 byautowas 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 on GitHub · 2026-12-03 08:48 UTC · original
I checked the compositor tests on
85e2432eagainstmaind9b618f1in 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 with0x80004005on bothmainand 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
0940bc38merges 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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.