Options: ASPECT RATIO shapes the picture the game draws, not just the window #2689

Open
gnastnosaj wants to merge 1 commit from upstream-pr/2689 into main
gnastnosaj commented 2026-11-29 16:05:59 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gnastnosaj on 2026-11-29T16:05:59Z.


What it changes

F1's ASPECT RATIO names the picture's shape now, not only the window's:

ASPECT RATIO what the title draws
16:9 (unset) 2560x1440, as before
21:9 / 32:9 that shape at 1440 lines (3360x1440, 5120x1440)
NATIVE the display's own shape, at most the console's 3840x2160; a display smaller than the UI targets keeps its shape drawn larger (a 3:2 2420x1668 display draws 2600x1792)
STRETCH, 16:10, 4:3 window only, as before

The output size is written into the title's settings before it starts, the SDR display mode takes the same shape so window and picture agree, the UI pool is sized for the output and the UI is laid out on a stage of the output's shape (the HUD, minimap and subtitles keep their proportions), while the scene stays at 1440 lines whatever the output asks for. Every patched field is checked against the stock bytes first, and 16:9 writes exactly what it wrote before.

F1's DISPLAY row is shown whatever the aspect row says, and the window opens on the display it names (AUTO: the display closest to a named shape, the largest for NATIVE and STRETCH), so the game is played on that panel and its full screen lands there.

This builds on main's fullscreen_box/fit_into/backdrop (e080431a), which fits the picture into the window it is in. Three things on top of it, all found while testing:

  • the window is placed on the output's display, so Alt+Enter returns to that panel instead of the primary one;
  • Alt+Enter enters through the same fitting step, with the picture's own size rather than the window's client size (a frame-dressed client is smaller, which letterboxed the re-entered picture by a few dozen pixels);
  • leaving full screen shows, activates and repaints the window: without SWP_SHOWWINDOW and the foreground, leaving it during the loading screen left a white window that took no keys, and Alt+Enter could not come back.

VICTORY_NATIVE_WIDE keeps its meaning: unset, NATIVE still draws 2560x1440 on every monitor; the aspect row's own values are the explicit way to ask for a wider output.

Switches: VICTORY_ASPECT_RATIO, VICTORY_NATIVE_SIZE, VICTORY_NATIVE_DISPLAY, VICTORY_UI_POOL_MB, VICTORY_UI_STAGE, VICTORY_FULLSCREEN_BARS; VICTORY_WINDOW_RECT is internal (written by victory run from the chosen display). All are in docs/README-nvidia.md's table.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing):
    RTX 4090, i9-14900KF, Series X, DLSS on through the title's FidelityFX path (quality), frame generation on, ray tracing off, two displays (2560x1440 and 5120x2160).
  • Before: no ASPECT RATIO row; NATIVE stopped at 2560x1440 on every monitor (main 550bcec5), and the window always opened on the primary display.
  • After:
    • NATIVE on a 3:2 2420x1668 display: drawn 2600x1792, panel filled, HUD, minimap and subtitles normal.
    • NATIVE on a 5120x2160 display: drawn 3840x1616 (the console's cap), scene 2560x1077.
    • 21:9 on the 5120x2160 display: 3360x1440 output, scene 2240x960, no seam past 2560 columns and no ghosting (the failure mode of the opt-in wide output, #4330).
    • DISPLAY row lists the panels at their physical sizes (a 200% DPI desktop reports them unscaled now), and 16:9, 21:9, NATIVE and STRETCH each open on the panel the rules pick.
    • Alt+Enter several times, during the loading screens and in game: out to a windowed rectangle on the game's panel, back to full screen with the same picture shape, no white window, no lost keyboard.
    • The full screen covers the taskbar as main's fullscreen_box already does; this branch adds no window ordering of its own for it.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader changes.
  • cargo test passed for the crates it touches: yes — victory (native_display 9), victory-hle (lifecycle 19), victory-gpu (host::menu 1: the aspect row's console lock); cargo xtask policy over the tree. Not tested: a 32:9 display (nothing to plug in) and the Series S profile.

A note on cost: the scene is what the output asks for — a 3:2 2600x1792 output draws a 1733x1194 scene against 1706x960 at 2560x1440, 26% more pixels and a lower frame rate on the same card; a lower DLSS mode or 21:9 brings it back.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #4330 (fixes the wide output's rendering: the seam at 74.4%, the 32:9 start), #2400 (an --aspect preset for Series X 1440p profiles), #2210, and main's e080431a (aspect-preserving full screen), which this builds on rather than replaces.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552514584 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2689). Originally posted by [gnastnosaj](https://github.com/gnastnosaj) on 2026-11-29T16:05:59Z. --- ## What it changes F1's ASPECT RATIO names the picture's shape now, not only the window's: | ASPECT RATIO | what the title draws | |---|---| | 16:9 (unset) | 2560x1440, as before | | 21:9 / 32:9 | that shape at 1440 lines (3360x1440, 5120x1440) | | NATIVE | the display's own shape, at most the console's 3840x2160; a display smaller than the UI targets keeps its shape drawn larger (a 3:2 2420x1668 display draws 2600x1792) | | STRETCH, 16:10, 4:3 | window only, as before | The output size is written into the title's settings before it starts, the SDR display mode takes the same shape so window and picture agree, the UI pool is sized for the output and the UI is laid out on a stage of the output's shape (the HUD, minimap and subtitles keep their proportions), while the scene stays at 1440 lines whatever the output asks for. Every patched field is checked against the stock bytes first, and 16:9 writes exactly what it wrote before. F1's DISPLAY row is shown whatever the aspect row says, and the window opens on the display it names (AUTO: the display closest to a named shape, the largest for NATIVE and STRETCH), so the game is played on that panel and its full screen lands there. This builds on main's `fullscreen_box`/`fit_into`/backdrop (e080431a), which fits the picture into the window it is in. Three things on top of it, all found while testing: - the window is placed on the output's display, so Alt+Enter returns to that panel instead of the primary one; - Alt+Enter enters through the same fitting step, with the picture's own size rather than the window's client size (a frame-dressed client is smaller, which letterboxed the re-entered picture by a few dozen pixels); - leaving full screen shows, activates and repaints the window: without `SWP_SHOWWINDOW` and the foreground, leaving it during the loading screen left a white window that took no keys, and Alt+Enter could not come back. `VICTORY_NATIVE_WIDE` keeps its meaning: unset, NATIVE still draws 2560x1440 on every monitor; the aspect row's own values are the explicit way to ask for a wider output. Switches: `VICTORY_ASPECT_RATIO`, `VICTORY_NATIVE_SIZE`, `VICTORY_NATIVE_DISPLAY`, `VICTORY_UI_POOL_MB`, `VICTORY_UI_STAGE`, `VICTORY_FULLSCREEN_BARS`; `VICTORY_WINDOW_RECT` is internal (written by `victory run` from the chosen display). All are in `docs/README-nvidia.md`'s table. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 4090, i9-14900KF, Series X, DLSS on through the title's FidelityFX path (quality), frame generation on, ray tracing off, two displays (2560x1440 and 5120x2160). - Before: no ASPECT RATIO row; NATIVE stopped at 2560x1440 on every monitor (main 550bcec5), and the window always opened on the primary display. - After: - NATIVE on a 3:2 2420x1668 display: drawn 2600x1792, panel filled, HUD, minimap and subtitles normal. - NATIVE on a 5120x2160 display: drawn 3840x1616 (the console's cap), scene 2560x1077. - 21:9 on the 5120x2160 display: 3360x1440 output, scene 2240x960, no seam past 2560 columns and no ghosting (the failure mode of the opt-in wide output, #4330). - DISPLAY row lists the panels at their physical sizes (a 200% DPI desktop reports them unscaled now), and 16:9, 21:9, NATIVE and STRETCH each open on the panel the rules pick. - Alt+Enter several times, during the loading screens and in game: out to a windowed rectangle on the game's panel, back to full screen with the same picture shape, no white window, no lost keyboard. - The full screen covers the taskbar as main's `fullscreen_box` already does; this branch adds no window ordering of its own for it. - For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader changes. - `cargo test` passed for the crates it touches: yes — `victory` (native_display 9), `victory-hle` (lifecycle 19), `victory-gpu` (host::menu 1: the aspect row's console lock); `cargo xtask policy` over the tree. Not tested: a 32:9 display (nothing to plug in) and the Series S profile. A note on cost: the scene is what the output asks for — a 3:2 2600x1792 output draws a 1733x1194 scene against 1706x960 at 2560x1440, 26% more pixels and a lower frame rate on the same card; a lower DLSS mode or 21:9 brings it back. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #4330 (fixes the wide output's rendering: the seam at 74.4%, the 32:9 start), #2400 (an `--aspect` preset for Series X 1440p profiles), #2210, and main's e080431a (aspect-preserving full screen), which this builds on rather than replaces.
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/2689:upstream-pr/2689'
git switch 'upstream-pr/2689'

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