1440p Native UI Scaling Fix #541
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/541"
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 Remorc-e on 2026-11-28T00:33:31Z.
The problem
With the 1440p output (
-Res 1440, the launcher's default):With
-Res 4k, and in Series S mode, both are correct.The cause
The game's menus and map are authored for 3840x2160. Series S outputs 1920x1080 and scales them down; its settings preset says how, with three video settings:
Everything that lays out the interface asks the settings for the layout size (
0x7B4E10). That query returns the legacy size when the flag is on, and the output size when it's off. Its readers:0x92D7924), which places the map's icons;A real Series X always outputs 4K, so its preset never needs the flag. With a 1440p output and the flag off, the layout became 2560x1440 while the content stayed 4K-sized: menus and HUD 1.5 times too large. Captures of the frontend layer at 1440p and at 4K show every element's screen transform exactly 1.500x larger at 1440p, at the same pixel offsets. Forcing the flag only where it is read fixed the menus. But the map's targets still got 2560x1440 from the settings, while its icons were placed for 3840x2160.
The fix
apps/victory/src/native_1440p.rs. Each patched place is checked against the stock bytes first (as a BLAKE3 hash), like the existing ones:The settings themselves (
0x1D70B98, in the settings collection's copy0x1D70750). Every settings store goes through this copy: the start-up apply, runtime updates and backups. Its last store of the video block jumps to our code inint3padding between two functions (0x55FF285). That code does the same store, then writes:and jumps back. The game's own code then gives every reader the Series S arrangement. The rest of the preset stays Series X.
The SDR mode stays at stock 3840x2160, as on Series S. No longer patched to 2560x1440.
run.rsno longer reports a 2560x1440 display (VICTORY_DISPLAY_MODE): the game sees the 3840x2160 default, as on Series S.0x247AD4A, the UI memory pool. The constant this file called the scanout reservation is the Series X UI pool size in the UI setup at0x247AD10(mov ecx, 0x4000000). Series S gets0x5200000there, through acmovneon the game's Series S check.0x1FFFFFis left over (0x247AF25).0x5E00000(94 MiB): those four surfaces rounded up to 2 MiB. Without the room, the game's allocator asserted (int3at0x56A2AFD).UI_POOL.0x58048D4, the Settings preview viewport load, is no longer redirected to the SDR mode. With the flag set, the legacy size it loads is the right one.The temporal scene scale stays as before. No renderer changes: nothing in
draw.rs.The cost is what Series S pays: one 4K UI layer, and the pause map drawn at 4K and scaled down. The scene and the output stay 1440p.
Screenshots
Series X profile at the 1440p output, RTX 4070 Ti.
Pause map: the player arrow and the blips sit on their places.
Settings > Control Scheme: laid out as at 4K output.
Testing
0xA9438EC/F0= 3840x2160, output0xA9438CC/D0= 2560x1440, flag0xA9438F4= 1, screen size0x92D7924/8= 3840x2160. No assertions.cargo test --locked -p victorywithVICTORY_DISPLAY_PROFILE_TEST_IMAGEpointing at the retail v1.0.2.1 exe: all pass. The 1440p test checks:cargo xtask policy: ok.cargo clippy -p victory: no warnings in the changed files.Not tested:
-Res 1080to1440), which uses the same patch;Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Remorc-e on 2026-11-28T00:34:46Z.
Screenshots from this branch, Series X profile at the 1440p output (RTX 4070 Ti, DLSS and frame generation on).
Settings > Control Scheme with the F1 menu open, showing
CONSOLE: SERIES XandSERIES X PICTURE: 2560X1440:The same screen without the menu: every callout sits next to its button, the list shows all six rows with its
3 / 9counter, and the footer prompts are evenly spaced, as at the 4K output:Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SeaLife on 2026-11-28T00:58:00Z.
Tested this on a combined local branch, findings below.
Setup: RTX 4070 Ti 12 GB, Ryzen 9 9950X, 64 GB RAM, Windows 11 (10.0.26300), driver 621.1.0, retail 1.0.2.1 (exe SHA-256
e95020b2…). Series X profile, 1440p output, DLSS Performance (scene 1280x720), DLSS frame generation 2x.Base:
main@64d4931plus these open PRs:#428, #340, #423, #339, #400, #315 (incl. #243), #242, #257, #223, #253, #222, #177, #353, #225, #386, #169, #390, #285, #280, #394, #534, #521, #475.
(#534 conflicts with #428 in
emit/lower.rson the pixel colour output; resolved by chaining both:let s = self.scrub_nan(f); self.clamp_hdr(s). Shader tests 292/292 pass.)#541 against #391: they are mutually exclusive (combined, the interface would be scaled down twice), so for this test #391 was reverted and #541 merged on its own.
native_1440pretail-image tests pass with the real exe.What breaks with #541 here: the map (pause menu → KARTE).
0x92d7924), which stays 2560x1440, while the interface now draws on the 3840x2160 legacy surface.What we use instead (#391 + two additions), tested in gameplay:
With #391 alone, two things were still off at 1440p:
77,54 3686x2052on the 2560x1440 output.on_canvas()only matches a viewport of exactly 3840x2160, so this one was drawn unscaled.draw.rs): a viewport that reaches past the 2560x1440 output but lies inside the canvas also counts as canvas. No draw onto the output itself has such a viewport.GetScreenSizethrough the interface's vtable (.rdata 0x619bd70, slot+0x30at0x619bda0,0xcab820), which still answers 2560x1440.native_1440p.rs): that slot points to #391's legacy-size copy (0x55ff290, 3840x2160), as on the stock 4K output. Switch:VICTORY_UI_SCREEN_VTABLE=0.Diagnostics we used:
VICTORY_UI_CANVAS_LOG=1logs each new viewport/scissor on the 2560x1440 output and whether it is scaled. That is how the77,54 3686x2052safe-area viewport showed up.Happy to share the diff if it helps. #541's approach (letting the title use its own legacy UI path) looks cleaner long-term, if the map's terrain/fog can be made to follow it.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Remorc-e on 2026-11-28T01:18:53Z.
Double checking now, went with native legacy UI path to avoid needing to do per-screen type patches like in #391 .
I wasn't seeing that in my build which is just main + #541 . Not sure if there are compounding conflicts when you add all the others in.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Remorc-e on 2026-11-28T01:33:13Z.
Not able to replicate that screenshot you shared earlier.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SeaLife on 2026-11-28T02:00:53Z.
As you can see in your screenshot, the red dot is not where its supposed to be. I just ran main + 541 and you can see here, its not scaling right. So #391 plus the changes i made are working well on 1440p.
https://cdn.discordapp.com/attachments/1575253173256462492/1576055187502530560/2026-11-28_02-58-30.mp4?ex=6b0b8746&is=6b0a35c6&hm=cf0df1070905fc3fd8a74a2fa61e032a8d39f0fea3afbe90832e0c3384a87d7c&
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Remorc-e on 2026-11-28T02:02:39Z.
I misunderstood then, I thought you were referring to the double image you have in your screenshot where it looks like the map is pulled up 3/4 of the way to the top.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Remorc-e on 2026-11-28T06:23:12Z.
Updated: the map icons are fixed, by having the game run with Series S's own output settings.
VICTORY_DISPLAY_MODEoverride are gone.0x1E0FB69,0x26192F9).0x247AD4A) and the temporal scene scale.draw.rs(unlike #391's viewport scaling).Thanks for the report on the map icons.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-28T09:26:15Z.
Tested: works here.
Setup: RTX 5060 Ti 16 GB, Windows 11 (26200), retail 1.0.2.1, Series X profile,
-Res 1440, DLSS off, diag build. Base63b902f+ this PR (head0c0d466, applied unchanged) + #937.resolutionFullscreeninsettings.xml(the lever suggested in #828) and dropping the0x58048D4viewport redirect each changed nothing.VICTORY_WATCHon0xA9438F4/0xA9438EC/0xA9438CCshowed the game set the legacy UI flag to 1 and the legacy size to 3840x2160 itself during start-up. Forcing the flag to 1 at run time instead crashes the title (null at0x1EB9AAE), so setting it through the settings, as this PR does, is the way that works.patches_the_retail_image_for_1440ppasses against the retail exe (VICTORY_DISPLAY_PROFILE_TEST_IMAGE).Not checked here: the pause map icons and the
1080to1440profile.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ZackariaB on 2026-11-28T12:22:52Z.
Tested on main
63b902f+ this PR (0c0d466), Series X profile,-Res 1440, DLSS Quality, retail 1.0.2.1: works here.Thanks, this is the better approach: the title's own Series S path keeps every reader of the UI size consistent, where #391 patched them one by one. Closing #391 in favour of this one.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by sawetco on 2026-11-28T12:48:41Z.
Independent check on the
1080p to 1440pF1 option with the RTX 5070.Setup: RTX 5070 (621.40), Ryzen 5 7600X, Windows 11 build 26300, retail 1.0.2.1 and the same local save. Series X, F1 picture
1080p to 1440p, DLSS Quality (K), DLSS Frame Generation 2x, ray tracing off. Compared installedv2026.11.27.10with main63b902fplus #541 head0c0d466, with no other PRs applied.Both runs logged DLSS Quality at 1706 × 960 internally and 2560 × 1440 output for this F1 selection. The patched run also logged 4 presents with frame generation on and 8 frames shown in a sample, with status
0x0.Both
native_1440ptests passed with the local retail image, andcargo xtask policypassed. This was a short layout check.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mokkamokacaffe on 2026-11-28T17:05:41Z.
Hardware validation: RTX 4080 SUPER / Series X 1440p
Tested the current PR head:
0c0d466238f5187537fa5743e8c91464eb1d0b9f64d4931b3dd90305134512b805fc98f04119fb6e26100.9711621.401.0.2.1The PR head remained unchanged when rechecked after testing.
Build and automated checks
cargo build --release --locked -p victory: passcargo test --locked -p victory -- --test-threads=4: passnative_1440pretail-image testscargo xtask policy: pass (290 files ok)git diff --check: passManual results
With DLSS Performance, matching the configuration reported in the PR:
NGX evaluate feature failedmessages were recorded during the DLSS Performance run.The same UI, HUD, map and world-rendering checks also passed with DLSS disabled.
Separate DLSS Quality observation
One DLSS Quality run produced a black game world while UI/objective symbols remained visible. The log repeatedly reported:
NGX evaluate feature failed 0xbad00005There was no device-removal or crash record. Relaunching the same PR build with DLSS disabled restored the world, and DLSS Performance subsequently ran cleanly.
I have not compared DLSS Quality against the exact parent under equivalent conditions, so I am not attributing this observation to this PR. It may be a pre-existing or configuration-specific Streamline issue.
Result
The 1440p UI-scaling fix works on the RTX 4080 SUPER. The account picker, menus, HUD and pause map all render and align correctly under the Series X 1440p profile.