Options: ASPECT RATIO shapes the picture the game draws, not just the window #2689
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2689"
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?
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:
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:SWP_SHOWWINDOWand 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_WIDEkeeps 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_RECTis internal (written byvictory runfrom the chosen display). All are indocs/README-nvidia.md's table.How it was tested
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).
550bcec5), and the window always opened on the primary display.fullscreen_boxalready does; this branch adds no window ordering of its own for it.cargo testpassed 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 policyover 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
--aspectpreset for Series X 1440p profiles), #2210, and main'se080431a(aspect-preserving full screen), which this builds on rather than replaces.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.