Native size: wider monitors get 2560x1440 too (blocks of stale picture on 21:9) #3742
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3742"
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 voidharbor on 2026-11-30T05:51:09Z.
Fixes #3246
What it changes
Since
16576c03the native output follows the main monitor's shape, and since0ba02ea2a 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 withVICTORY_NATIVE_SIZE=2560x1440.This makes 2560x1440 the output on every monitor. 16:9 monitors, and the monitors
0ba02ea2covered, already got it, so only monitors wider than 16:9 with 1440 lines or more change.VICTORY_NATIVE_SIZE=WxHstill asks for another size, with the same limits as before.for_monitorandmonitor_sizeare removed; the size is parsed inchosen(), 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
native-3440x1440-upscaler-quality-sdrandnative-3440x1440-upscaler-balanced-sdr. The blocks and the 74% edge in both.VICTORY_NATIVE_SIZE=2560x1440in victory-settings.txt, DLSS Balanced, frame generation 3x. Imagenative-2560x1440-upscaler-balanced-sdr, upscalermax_render=[1484, 835] max_output=[2560, 1440]. No blocks and no edge. Then two runs of a local build of41adb551with 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).cargo testpassed 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, socargo test -p victorycannot run there). For Windows the test binary builds withcargo xwinand 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 --workspacealready fails (the BCPack oracle tests, fixed by #2236, and the asset-policy test oncrates/victory-loader/src/heap_sites/frame_users.rs), and so does clippy with-D warnings.Checked for overlap
0ba02ea2and 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 throughVICTORY_NATIVE_SIZEor their own setting. #2524, #2766, #2409 and #2309 are the start-up crash that33e9fed2and0ba02ea2fixed.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by simonking1122 on 2026-11-30T09:47:17Z.
One more case for this: with DLSS off, the 3440x1440 default on
41adb551does 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
41adb551from source, nothing changed. Series X, 1440, DLSS off, frame generation off (VICTORY_MENU_DLSS=off,VICTORY_MENU_FRAMEGEN=0in victory-settings.txt).native-3440x1440-sdr0x80000003at+0x2219650, Game Init, frame 0--set VICTORY_NATIVE_SIZE=2560x1440native-2560x1440-sdrThe 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.logfor the first run:Frame #1 is 0x53 past
+0x4fac3c0, whichapps/victory/src/heap_budget.rsnames 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 tryVICTORY_RT_HEAP_MBorVICTORY_SCENE_POOL_MBto prove it.This is not the start-up crash that
33e9fed2and0ba02ea2fixed: 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Schrubbdiwupp on 2026-11-30T15:56:51Z.
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.
VICTORY_NATIVE_SIZE=2560x1440: gone, picture clean.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://github.com/trustno1-coder/VIctory-NVIDIA/issues/2515#issuecomment-7278180502. Happy to run a build of this branch if that helps.
— Schrubbdiwupp & TARS
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by voidharbor on 2026-11-30T17:24:56Z.
Main does this since
cbb4fe61: 2560x1440 on every monitor, and the monitor's shape only withVICTORY_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()inapps/victory/src/native_1440p.rsstill says the output follows the monitor.Thanks to both testers above for the reports.
Pull request closed