Ultrawide and other monitor shapes: the output follows the monitor (VICTORY_NATIVE_SIZE to set it) #1808

Merged
popsterrs merged 2 commits from upstream-pr/1808 into main 2026-11-29 08:16:53 +00:00
popsterrs commented 2026-11-29 00:12:10 +00:00 (Migrated from github.com)

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)

Screenshot 2026-11-28 232915

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).

  • On a 16:9 monitor nothing changes: 2560x1440, as before.
  • On another shape: the same height (the monitor's, if lower than 1440) and the monitor's shape: 3440x1440 on 21:9, 2560x1080 on a 2560x1080 one, 5120x1440 on 32:9, 2304x1440 on 2560x1600.
  • VICTORY_NATIVE_SIZE=WxH sets it outright (1280..=7680 x 720..=4320, multiples of 8).
  • native_1440p::WIDTH/HEIGHT become width()/height(); the main monitor's size comes from GetSystemMetrics (windows-sys, already a workspace dependency, added to apps/victory). A unit test covers the sizes for common monitors.
  • The patched images' cache folders are named by size (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=1 for borderless fullscreen, --set VICTORY_NATIVE_SIZE=3440x1440 to pick a size.

How it was tested

  • GPU and profile: RTX 3080 10 GB, Ryzen 7 5800X, 32 GB; Series X, 3440x1440 output, DLSS Quality, no frame generation, no ray tracing; borderless fullscreen on a 3440x1440 monitor.
  • Before: the 2560x1440 picture stretched to the 3440x1440 window.
  • After: 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).
  • Tested in play on v2026.11.28.03 with the same change. On current main it builds and the native_1440p tests 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 test passed for the crates it touches: yes (victory, the native_1440p tests, with the new monitor-size test).
  • The automatic size, nothing set: on the 3440x1440 desktop it picked 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

  • I searched the open pull requests for the same issue and for the files this touches. Related: #438, #729 (issues); #132 (closed: aspect-preserving fullscreen with bars, not a wider picture).
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545923105 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1808). Originally posted by [popsterrs](https://github.com/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) <img width="3439" height="1439" alt="Screenshot 2026-11-28 232915" src="https://github.com/user-attachments/assets/6b875a48-dcff-40a3-8283-e5e6f9e1b833" /> ## 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). - On a 16:9 monitor nothing changes: 2560x1440, as before. - On another shape: the same height (the monitor's, if lower than 1440) and the monitor's shape: 3440x1440 on 21:9, 2560x1080 on a 2560x1080 one, 5120x1440 on 32:9, 2304x1440 on 2560x1600. - `VICTORY_NATIVE_SIZE=WxH` sets it outright (1280..=7680 x 720..=4320, multiples of 8). - `native_1440p::WIDTH`/`HEIGHT` become `width()`/`height()`; the main monitor's size comes from `GetSystemMetrics` (`windows-sys`, already a workspace dependency, added to `apps/victory`). A unit test covers the sizes for common monitors. - The patched images' cache folders are named by size (`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=1` for borderless fullscreen, `--set VICTORY_NATIVE_SIZE=3440x1440` to pick a size. ## How it was tested - GPU and profile: RTX 3080 10 GB, Ryzen 7 5800X, 32 GB; Series X, 3440x1440 output, DLSS Quality, no frame generation, no ray tracing; borderless fullscreen on a 3440x1440 monitor. - Before: the 2560x1440 picture stretched to the 3440x1440 window. - After: `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). - Tested in play on v2026.11.28.03 with the same change. On current main it builds and the `native_1440p` tests 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 test` passed for the crates it touches: yes (`victory`, the `native_1440p` tests, with the new monitor-size test). - The automatic size, nothing set: on the 3440x1440 desktop it picked `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 - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #438, #729 (issues); #132 (closed: aspect-preserving fullscreen with bars, not a wider picture).
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!1808
No description provided.