Options: ASPECT RATIO shapes the picture the game draws, not just the window #2689
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2689
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@gnastnosaj on GitHub · 2026-11-29 16:05 UTC · original
gnastnosaj:pr/fullscreen-aspect→main· +867 −107 · 11 files · 1 commits · openWhat 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.dc52f2fc43to9ce18e1e7c9ce18e1e7ctoacca389188acca389188to732b5cc324732b5cc324to7c5cb1bcfcfullscreen: keep the picture's proportions on Alt+Enter, bars over the monitorto fullscreen: fitted picture, black bars, and the taskbar of its own monitor7c5cb1bcfcto0f1a10070afullscreen: fitted picture, black bars, and the taskbar of its own monitorto Options: ASPECT RATIO keeps the picture's shape (21:9, 32:9, NATIVE), with full screen fitted to itThe log line the previous commit promised ("full screen: topmost over the taskbar") is written now, and the `WM_NCDESTROY` arm's closing brace is back where it was before the restore call it held was removed.d88492f5d7to877e37e2e3877e37e2e3to8ff434fff08ff434fff0to6b99cdad50Options: ASPECT RATIO keeps the picture's shape (21:9, 32:9, NATIVE), with full screen fitted to itto Options: ASPECT RATIO shapes the picture the game draws, not just the window6b99cdad50to36885f76eb36885f76ebtof723774e42View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.