Ultrawide and other monitor shapes: the output follows the monitor (VICTORY_NATIVE_SIZE to set it) #1808
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!1808
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@popsterrs on GitHub · 2026-11-29 00:12 UTC · original
popsterrs:ultrawide-pr→main· +92 −13 · 4 files · 2 commits · merged 2026-11-29 08:16 UTCTitle: [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
github-bot referenced this pull request2026-11-29 08:56:06 +00:00
github-bot referenced this pull request2026-11-29 13:06:17 +00:00