Native size: wider monitors get 2560x1440 too (blocks of stale picture on 21:9) #3742

Closed
github-bot wants to merge 1 commit from github-bot/gh-3742 into main AGit
Owner

@⁠voidharbor on GitHub · 2026-11-30 05:51 UTC · original
voidharbor:native-size-1440p → main · +46 −74 · 1 files · 1 commits · closed without merging

Fixes #3246

What it changes

Since 16576c03 the native output follows the main monitor's shape, and since 0ba02ea2 a monitor wider than 16:9 with at least 1440 lines still does (3440x1440 on 21:9, 5120x1440 on 32:9). Only the title's output setting takes that size. Its UI targets stay 2560x1440 at every output size (33e9fed2), and so does the output its upscaler is made for. On a 3440x1440 monitor the title then draws a frame that is part one width and part the other. In the logs below the scene's targets are 2293x960 (DLSS Quality) or 1995x835 (Balanced), while the upscaler was made for 1706x960 or 1484x835 to 2560x1440. On screen: rectangles of wrong or stale content on a 128-pixel grid of the scene (characters see-through or flat white), and a straight edge at 74.4% of the width (2560/3440) with a stale picture to its right. #3246 has two more reports of the same, and its reporter found the picture clean with VICTORY_NATIVE_SIZE=2560x1440.

This makes 2560x1440 the output on every monitor. 16:9 monitors, and the monitors 0ba02ea2 covered, already got it, so only monitors wider than 16:9 with 1440 lines or more change. VICTORY_NATIVE_SIZE=WxH still asks for another size, with the same limits as before. for_monitor and monitor_size are removed; the size is parsed in chosen(), which has a test.

On a 21:9 or 32:9 monitor the picture is now 16:9. With FULLSCREEN on (VICTORY_FULLSCREEN=1) the layer already places it in a centred box with black bars. In a window that covers the monitor (Alt+Enter, scripts\fullscreen.ps1) it is stretched to the monitor's width, as it is with the workaround today. Bars there are #3092 and not part of this.

How it was tested

  • GPU and profile: RTX 5070 Ti 16 GB, Windows 11 build 26200, driver 621.40, main monitor 3440x1440. Series X, 1440, DLSS Quality and Balanced, DLSS frame generation off and 3x, ray tracing off.
  • Before: the release victory.exe, two sessions on 2026-11-29 (DLSS Quality without frame generation; DLSS Balanced with frame generation 3x). Image native-3440x1440-upscaler-quality-sdr and native-3440x1440-upscaler-balanced-sdr. The blocks and the 74% edge in both.
  • After: the same release victory.exe with VICTORY_NATIVE_SIZE=2560x1440 in victory-settings.txt, DLSS Balanced, frame generation 3x. Image native-2560x1440-upscaler-balanced-sdr, upscaler max_render=[1484, 835] max_output=[2560, 1440]. No blocks and no edge. Then two runs of a local build of 41adb551 with this change and other changes that are not part of this PR, with the same setting: the same clean picture. In those runs the indirect-light stand-in's resolve pass also engaged. In both 3440 sessions it had been refused (no stand-in for the indirect light: other tables role=Resolve: a 2016x864 depth against a 1995x835 light image).
  • Not tested: the default itself in a game run (every run above named the size, which is the size the default now gives; the unit test covers the default). I have no 32:9, 5120x2160 or 3840x1600 monitor; that they have the same mismatch comes from the code, not from a run. 16:9 monitors take the same path as before.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo test passed for the crates it touches: the new test's logic passes on Linux in a standalone copy taken from the file (victory-gpu does not build for Linux, so cargo test -p victory cannot run there). For Windows the test binary builds with cargo xwin and contains the test, but I did not run it. The release build has no new warnings, and both clippy steps report the same warnings as main, none in this file. On main, cargo test --workspace already fails (the BCPack oracle tests, fixed by #2236, and the asset-policy test on crates/victory-loader/src/heap_sites/frame_users.rs), and so does clippy with -D warnings.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2526 made 2560x1440 the default before 0ba02ea2 and now conflicts with main. #2400 and #2210 make a wide output work all the way (display mode, memory budgets) and touch the same function; with this change they would ask for the wide size through VICTORY_NATIVE_SIZE or their own setting. #2524, #2766, #2409 and #2309 are the start-up crash that 33e9fed2 and 0ba02ea2 fixed.
**@⁠voidharbor** on GitHub · 2026-11-30 05:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3742) `voidharbor:native-size-1440p` → `main` · +46 −74 · 1 files · 1 commits · closed without merging Fixes #3246 ## What it changes Since 16576c03 the native output follows the main monitor's shape, and since 0ba02ea2 a monitor wider than 16:9 with at least 1440 lines still does (3440x1440 on 21:9, 5120x1440 on 32:9). Only the title's output setting takes that size. Its UI targets stay 2560x1440 at every output size (33e9fed2), and so does the output its upscaler is made for. On a 3440x1440 monitor the title then draws a frame that is part one width and part the other. In the logs below the scene's targets are 2293x960 (DLSS Quality) or 1995x835 (Balanced), while the upscaler was made for 1706x960 or 1484x835 to 2560x1440. On screen: rectangles of wrong or stale content on a 128-pixel grid of the scene (characters see-through or flat white), and a straight edge at 74.4% of the width (2560/3440) with a stale picture to its right. #3246 has two more reports of the same, and its reporter found the picture clean with `VICTORY_NATIVE_SIZE=2560x1440`. This makes 2560x1440 the output on every monitor. 16:9 monitors, and the monitors 0ba02ea2 covered, already got it, so only monitors wider than 16:9 with 1440 lines or more change. `VICTORY_NATIVE_SIZE=WxH` still asks for another size, with the same limits as before. `for_monitor` and `monitor_size` are removed; the size is parsed in `chosen()`, which has a test. On a 21:9 or 32:9 monitor the picture is now 16:9. With FULLSCREEN on (`VICTORY_FULLSCREEN=1`) the layer already places it in a centred box with black bars. In a window that covers the monitor (Alt+Enter, `scripts\fullscreen.ps1`) it is stretched to the monitor's width, as it is with the workaround today. Bars there are #3092 and not part of this. ## How it was tested - GPU and profile: RTX 5070 Ti 16 GB, Windows 11 build 26200, driver 621.40, main monitor 3440x1440. Series X, 1440, DLSS Quality and Balanced, DLSS frame generation off and 3x, ray tracing off. - Before: the release victory.exe, two sessions on 2026-11-29 (DLSS Quality without frame generation; DLSS Balanced with frame generation 3x). Image `native-3440x1440-upscaler-quality-sdr` and `native-3440x1440-upscaler-balanced-sdr`. The blocks and the 74% edge in both. - After: the same release victory.exe with `VICTORY_NATIVE_SIZE=2560x1440` in victory-settings.txt, DLSS Balanced, frame generation 3x. Image `native-2560x1440-upscaler-balanced-sdr`, upscaler `max_render=[1484, 835] max_output=[2560, 1440]`. No blocks and no edge. Then two runs of a local build of 41adb551 with this change and other changes that are not part of this PR, with the same setting: the same clean picture. In those runs the indirect-light stand-in's resolve pass also engaged. In both 3440 sessions it had been refused (`no stand-in for the indirect light: other tables role=Resolve`: a 2016x864 depth against a 1995x835 light image). - Not tested: the default itself in a game run (every run above named the size, which is the size the default now gives; the unit test covers the default). I have no 32:9, 5120x2160 or 3840x1600 monitor; that they have the same mismatch comes from the code, not from a run. 16:9 monitors take the same path as before. - For shader changes, the wave sizes tested: not a shader change. - `cargo test` passed for the crates it touches: the new test's logic passes on Linux in a standalone copy taken from the file (victory-gpu does not build for Linux, so `cargo test -p victory` cannot run there). For Windows the test binary builds with `cargo xwin` and contains the test, but I did not run it. The release build has no new warnings, and both clippy steps report the same warnings as main, none in this file. On main, `cargo test --workspace` already fails (the BCPack oracle tests, fixed by #2236, and the asset-policy test on `crates/victory-loader/src/heap_sites/frame_users.rs`), and so does clippy with `-D warnings`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2526 made 2560x1440 the default before 0ba02ea2 and now conflicts with main. #2400 and #2210 make a wide output work all the way (display mode, memory budgets) and touch the same function; with this change they would ask for the wide size through `VICTORY_NATIVE_SIZE` or their own setting. #2524, #2766, #2409 and #2309 are the start-up crash that 33e9fed2 and 0ba02ea2 fixed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 05:51:40 +00:00
Author
Owner

@⁠simonking1122 on GitHub · 2026-11-30 09:47 UTC · original

One more case for this: with DLSS off, the 3440x1440 default on 41adb551 does not get as far as a picture. The title stops five seconds into the start. The runs in the description were with DLSS Quality and Balanced, so this is the case they did not cover.

Setup: RTX 5070 Ti 16 GB, driver 616.64, Windows 11 26200, main monitor 3440x1440. A release build of 41adb551 from source, nothing changed. Series X, 1440, DLSS off, frame generation off (VICTORY_MENU_DLSS=off, VICTORY_MENU_FRAMEGEN=0 in victory-settings.txt).

run image result
no size named (the default: 3440x1440) native-3440x1440-sdr stops 5 s after the start, 0x80000003 at +0x2219650, Game Init, frame 0
the same exe and settings, with --set VICTORY_NATIVE_SIZE=2560x1440 native-2560x1440-sdr runs; six minutes so far, no stop

The size is the only difference between the two runs. The second is the size this PR makes the default; I have not built or run the PR itself.

From crashes.log for the first run:

VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2219650 (breakpoint cc 4c 89 f1 48 83 c4 28 5b 5f 5e 41 5e e9 4e)
  rax 0x6a27 rbx 0x7ffe3b6a2808 rcx 0x7ffe3b6a38b0 rdx 0xdf00 rsi 0x80 rdi 0xdf00 rsp 0xbcf08fe820 rbp 0x1
  r8 0x80 r9 0xffffffff00000000 r10 0x380 r11 0xdf00 r12 0x128e r13 0x1 r14 0x7ffe3b69e5d8 r15 0xdeb0
  #0  victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2219650
  #1  victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x4fac413
  #2  victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x6dce7
  #3  victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0xb694cf

Frame #1 is 0x53 past +0x4fac3c0, which apps/victory/src/heap_budget.rs names as where the out-of-memory break is reached from when a 3840x2160 scene does not fit the render-target heap. With DLSS off the scene is the output's size, so here it is 3440x1440 against budgets sized for 2560x1440: 1.34 times the pixels. The log has ten 3440x1440 texture lines in the last second before the stop (victory_gpu::texture ... width=3440 height=1440). That it is the same heap running out is my reading of the address and the caller; I did not try VICTORY_RT_HEAP_MB or VICTORY_SCENE_POOL_MB to prove it.

This is not the start-up crash that 33e9fed2 and 0ba02ea2 fixed: that one (+0x247af2d) is gone on this build, and the image's UI pool is 94 MiB.

Not tested: this PR's own build; DLSS on at 3440x1440 (the picture faults the description covers); any other monitor shape.

**@⁠simonking1122** on GitHub · 2026-11-30 09:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3742#issuecomment-7274684803) **One more case for this: with DLSS off, the 3440x1440 default on `41adb551` does not get as far as a picture. The title stops five seconds into the start.** The runs in the description were with DLSS Quality and Balanced, so this is the case they did not cover. Setup: RTX 5070 Ti 16 GB, driver 616.64, Windows 11 26200, main monitor 3440x1440. A release build of `41adb551` from source, nothing changed. Series X, 1440, DLSS off, frame generation off (`VICTORY_MENU_DLSS=off`, `VICTORY_MENU_FRAMEGEN=0` in victory-settings.txt). | run | image | result | |---|---|---| | no size named (the default: 3440x1440) | `native-3440x1440-sdr` | stops 5 s after the start, `0x80000003` at `+0x2219650`, Game Init, frame 0 | | the same exe and settings, with `--set VICTORY_NATIVE_SIZE=2560x1440` | `native-2560x1440-sdr` | runs; six minutes so far, no stop | The size is the only difference between the two runs. The second is the size this PR makes the default; I have not built or run the PR itself. From `crashes.log` for the first run: ``` VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2219650 (breakpoint cc 4c 89 f1 48 83 c4 28 5b 5f 5e 41 5e e9 4e) rax 0x6a27 rbx 0x7ffe3b6a2808 rcx 0x7ffe3b6a38b0 rdx 0xdf00 rsi 0x80 rdi 0xdf00 rsp 0xbcf08fe820 rbp 0x1 r8 0x80 r9 0xffffffff00000000 r10 0x380 r11 0xdf00 r12 0x128e r13 0x1 r14 0x7ffe3b69e5d8 r15 0xdeb0 #0 victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2219650 #1 victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x4fac413 #2 victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x6dce7 #3 victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0xb694cf ``` Frame #1 is 0x53 past `+0x4fac3c0`, which `apps/victory/src/heap_budget.rs` names as where the out-of-memory break is reached from when a 3840x2160 scene does not fit the render-target heap. With DLSS off the scene is the output's size, so here it is 3440x1440 against budgets sized for 2560x1440: 1.34 times the pixels. The log has ten 3440x1440 texture lines in the last second before the stop (`victory_gpu::texture ... width=3440 height=1440`). That it is the same heap running out is my reading of the address and the caller; I did not try `VICTORY_RT_HEAP_MB` or `VICTORY_SCENE_POOL_MB` to prove it. This is not the start-up crash that 33e9fed2 and 0ba02ea2 fixed: that one (`+0x247af2d`) is gone on this build, and the image's UI pool is 94 MiB. Not tested: this PR's own build; DLSS on at 3440x1440 (the picture faults the description covers); any other monitor shape.
Author
Owner

@⁠Schrubbdiwupp on GitHub · 2026-11-30 15:56 UTC · original

Confirming on a 21:9 monitor: 2560x1440 removes the faults

Setup: RTX 5070 Ti (16 GB), Ryzen 7 5800X, Windows 10 22H2, monitor 3440x1440 (21:9, 240 Hz), Series X profile.

  • v2026.11.29.05 (combined base, output follows the monitor → 3440x1440): a strip of wrong/stale picture along the right edge, top to bottom, every session.
  • Same build with VICTORY_NATIVE_SIZE=2560x1440: gone, picture clean.
  • An older build from before the output followed the monitor's shape (always 2560x1440) was clean too.

That matches your explanation (UI targets and upscaler at 2560x1440, output at 3440x1440). We tested the same size through the switch, not this branch itself, but the effect is the one this PR makes the default. Details from the first report: #2515. Happy to run a build of this branch if that helps.

— Schrubbdiwupp & TARS

**@⁠Schrubbdiwupp** on GitHub · 2026-11-30 15:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3742#issuecomment-7283867821) **Confirming on a 21:9 monitor: 2560x1440 removes the faults** Setup: RTX 5070 Ti (16 GB), Ryzen 7 5800X, Windows 10 22H2, monitor 3440x1440 (21:9, 240 Hz), Series X profile. - v2026.11.29.05 (combined base, output follows the monitor → 3440x1440): a strip of wrong/stale picture along the **right edge, top to bottom**, every session. - Same build with `VICTORY_NATIVE_SIZE=2560x1440`: **gone**, picture clean. - An older build from before the output followed the monitor's shape (always 2560x1440) was clean too. That matches your explanation (UI targets and upscaler at 2560x1440, output at 3440x1440). We tested the same size through the switch, not this branch itself, but the effect is the one this PR makes the default. Details from the first report: https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/2515. Happy to run a build of this branch if that helps. — Schrubbdiwupp & TARS
github-bot closed this pull request 2026-11-30 17:35:22 +00:00
Author
Owner

@⁠voidharbor on GitHub · 2026-11-30 17:24 UTC · original

Main does this since cbb4fe61: 2560x1440 on every monitor, and the monitor's shape only with VICTORY_NATIVE_WIDE=1. This branch is no longer needed and now conflicts, so I am closing it.

One leftover on main: the doc comment above size() in apps/victory/src/native_1440p.rs still says the output follows the monitor.

Thanks to both testers above for the reports.

**@⁠voidharbor** on GitHub · 2026-11-30 17:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3742#issuecomment-7286242813) Main does this since cbb4fe61: 2560x1440 on every monitor, and the monitor's shape only with `VICTORY_NATIVE_WIDE=1`. This branch is no longer needed and now conflicts, so I am closing it. One leftover on main: the doc comment above `size()` in `apps/victory/src/native_1440p.rs` still says the output follows the monitor. Thanks to both testers above for the reports.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3742
No description provided.