[pr-feature][rendering] F1 ASPECT RATIO: 16:9, 16:10, 21:9, 32:9 or 4:3 for the Series X 1440p picture #143
Loading…
Reference in a new issue
No description provided.
Delete branch "Trex/Darner:aspect-ratio-options"
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?
Contributor role (optional)
What it changes
The Series X 1440p picture is always 2560x1440. On a 21:9 monitor that means a 16:9 picture, and
DARNER_NATIVE_SIZE/DARNER_NATIVE_WIDEwider than 2560 break the picture past 2560 columns (a seam, a ghosted half-head), because the title's window, UI targets and upscaler stay 2560 wide.DARNER_ASPECT): 16:9 (2560x1440, the default, unchanged), 16:10 (2304x1440), 21:9 (3440x1440), 32:9 (5120x1440) or 4:3 (1920x1440). Applies at the next start, like RESOLUTION. Hidden on Series S.DARNER_NATIVE_SIZEstill wins over it. Label and help text inlocales/en.jsonandlocales/zh-CN.json.int3at0x247AF2D/0x56A2AFD) does not fire.DARNER_MENU_SIDES=0turns it off.DARNER_REMOVE_CINEMA_BARS, which removes them.DARNER_ASPECT(a Series X row) left from Series X is not used, and a safe start leaves it out.How it was tested
38f1763a(on mainf3840d73)38f1763a:cargo clippy --workspace --all-targets --locked -- -D warnings: passedcargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passedcargo xtask policy: passed (555 files)darnerbin 154 passed (new:the_aspect_ratio_is_a_series_x_choice,render_1080p_keeps_the_output_shape);darner-gpumenu 55, placement 7, hdr 7 passed;compose::tests(diagnostics feature, on WARP) 6 passed includinga_full_screen_menu_softens_the_picture_beside_it_on_warpanda_cutscenes_letterbox_reaches_the_output_edges_on_warp, 1 failed:bgrx_plane_selects_a_typed_view, which fails the same way on unchangedmain.DARNER_ALIAS_SHARE=0(needed on 23H2).b41b5b1f(the same changes before the rebase ontof3840d73), 4:3: a letterboxed cutscene, the bars reach the top and bottom; the map and pause menu with the picture above and below out of focus; play unchanged.4f3c407d, 21:9, ray tracing off: map opened in the world; the picture beside the 16:9 map panel is out of focus and darkened, the panel's edges fade softly, the HUD in play is unchanged.fa027fc5, 21:9, ray tracing off: the title is given 3440x1440 (display mode reported to the title width=3440 height=1440), 30 fps (the frame cap), no device loss; the account picker's button prompts are round and fully on screen.a361afed), 16:9, Series X 2560x1440, DLSS off, frame generation off, ray tracing off, the same seated scene, one shared cache (no full preload; each build warmed by two unmeasured runs first), 90 s windows: main 31.0 and 29.2 fps, this PR 25.8 (shaders still being made during the window, dips to 12.7) and 30.3 fps. Warm-up runs: main 30.5, this PR 30.2 and 32.7. At 16:9 the interface is not centred, so the menu sides and the letterbox extension do not run. RTX 4090, i9-13900K.Checklist
main.docs/asset-policy.md.Checked for overlap
native_1440p.rs,compose.rsandmenu.rs).8fc365c8a6to4f3c407d0eReview of
4f3c407d: it merges cleanly with main and the 16:9 default mostly matches main (no display-mode change, same UI pool, same Streamline tagging). Before merging, three things need fixing:DARNER_ASPECT. The row is hidden on Series S, butsize()in native_1440p.rs still reads the variable. Pick 21:9 on Series X, switch CONSOLE to Series S with PICTURE SIZE 1440, and the UI targets become 3440 (or 2304/1920) wide whileui_pool_s_bytesis still sized for 2560. That should hit the title's leftover-poolint3at start. Ignore the variable on Series S (or clear it in play.rs when Series S is picked), and addDARNER_ASPECTtoSAFE_START_LEAVES_OUT.1920 / output.0, so 21:9 renders 1920x804, 32:9 1920x540, and 4:3 gets no saving at all. The low/medium/high presets all useX_RES=1080to1440. Scale by height (1080/1440) instead.constants[21] = menu_sides()is always set and on by default, so on any output, 16:9 and 4K included, a title overlay inset from the edge with opaque edges gets the scene around it blurred and darkened (64+12 taps a pixel). Set it only whenoverlay_centered, as the bar clearing already is.Also worth doing: skip
capture_ui(the second render target and the MRT write) when HDR is on, since Streamline drops the UI plane then anyway.After the fixes, one 16:9 A/B against main (same scene, frame times) to show nothing changed for the default, plus one run at 16:10 or 4:3 on the final revision. Only 21:9 was re-run after the rebase. #75 (ULTRAWIDE row) covers the same ground; this one is the more complete of the two.
I tested the three review fixes on Trex’s
4f3c407dand attached the patch. Across 22 configuration cases, Series S ignored the saved Series X aspect, Safe Start dropped it and the scaled scenes kept their shape at 1080 lines. WARP and an RTX 4070 Ti SUPER preserved the red/green edge of an inset 16:9 menu and blurred the same edge with the recentered 32:9 overlay. The HDR UI-target change was checked in source only. The known BGRX assertion still fails on both revisions (88 vs 93).Gameplay. i5-13600KF, RTX 4070 Ti SUPER 16 GB, driver 617.14, Windows 11. Native 2560×1440 SDR, RT/DLSS/FG off. A = main
f899d8cf. B = the same main with only #143 and the attached fixes (treef19f5c21). Same save and camera, separate warmed caches, 45 seconds per window, starting 55 seconds after the first world frame.B1 had 944 and 486 ms intervals. Both coincided with shader misses and pipeline creation. Traffic and draw counts varied. These runs do not establish a consistent change in default 16:9 pacing.
Final 4:3 run. Scene and DXGI output both reported 1920×1440. The pause menu showed all six entries and all lower-right prompts inside the picture. Gameplay and menu were inspected separately.
Since #177 merged,
ad070f07has one conflict with the original PR inhost.rs. On rebase, keep the PR’s successful UI capture and main’sshow_base_only()on the compositor error path. The patch applies to4f3c407d. SHA-256e057cf902757ddf50aae86e01031adf84e5c758af0fe931b05e82e1f1f540e2c.b41b5b1fd0to38f1763a57Thanks for the review, all three are fixed, plus two found while testing:
aa207d3e):DARNER_ASPECTis dropped on Series S (settings andrun.rs), and a safe start leaves it out. Test:the_aspect_ratio_is_a_series_x_choice.aa207d3e): it now renders 1080 lines at the output's shape (2580x1080 at 21:9, 3840x1080 at 32:9, 1440x1080 at 4:3), scaled by height. Test:render_1080p_keeps_the_output_shape.aa207d3e): only when the interface is centred (overlay_centered). HDR also no longer makes the frame-gen UI target.1a379d37) At 4:3/16:10 a cutscene's letterbox counted as a full-screen menu. A menu must now cover all four edges.b41b5b1f) A cutscene's letterbox inside a centred interface floated over the taller or wider picture. It now reaches the output's edges, unlessDARNER_REMOVE_CINEMA_BARSis on. Test:a_cutscenes_letterbox_reaches_the_output_edges_on_warp. Also, the blur's 64 taps are now a[loop]rather than unrolled: the unrolled shader was too large for WARP and garbled every compose test.Rebased on
f3840d73; thehost.rsconflict resolved as akimfomin suggested (the PR's UI capture kept, main'sshow_base_only()on the error path). Thanks for the independent test run.A/B against main at 16:9 is in the description: within run-to-run noise (about 30 fps both). Checked in game at 21:9 (map) and 4:3 (letterboxed cutscene, map).
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.