Ultrawide and other monitor shapes: the output follows the monitor (VICTORY_NATIVE_SIZE to set it) #1808
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1808"
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 popsterrs on 2026-11-29T00:12:10Z.
Title: [pr-feature] Ultrawide and other monitor shapes: the output follows the monitor (VICTORY_NATIVE_SIZE to set it)
Labels: pr-feature, rendering, NVIDIA
Fixes #438 (also covers the ultrawide half of #729)
What it changes
The 1440p patch (
native_1440p.rs) writes a fixed 2560x1440 into the title's SDR display mode, its UI pool and its settings, so on a 21:9 monitor the 16:9 picture was stretched or boxed. Now the output size follows the shape of the main monitor, and the title draws a picture of that shape itself: full width, a wider view, nothing stretched, the menus laid out to the edges. The scene follows the temporal or DLSS scale of it (DLSS Quality at 3440x1440: 2293x960).VICTORY_NATIVE_SIZE=WxHsets it outright (1280..=7680 x 720..=4320, multiples of 8).native_1440p::WIDTH/HEIGHTbecomewidth()/height(); the main monitor's size comes fromGetSystemMetrics(windows-sys, already a workspace dependency, added toapps/victory). A unit test covers the sizes for common monitors.images/native-3440x1440-...), so a size change is not served the image patched for another.Usage: nothing to set on most monitors;
--set VICTORY_FULLSCREEN=1for borderless fullscreen,--set VICTORY_NATIVE_SIZE=3440x1440to pick a size.How it was tested
display 3440x1440 SDR, scene 2293x960 through the title's FidelityFX path (quality); the account picker's prompts at the right edge, the opening cutscene at full width, not stretched, 12-21 fps (16:9 at 2560x1440: 15-21 fps).native_1440ptests pass, but it was not run in game on main (main without this change already stopped at the opening cutscene on this PC; logs available).cargo testpassed for the crates it touches: yes (victory, thenative_1440ptests, with the new monitor-size test).display 3440x1440 SDR, scene 2293x960; with the desktop set to 5120x1440 (32:9) it picked 5120x1440 and plays well. Also covered by the unit test.Checked for overlap