Repository navigation
1440p Native UI Scaling Fix - #541
Conversation
|
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 The same screen without the menu: every callout sits next to its button, the list shows all six rows with its |
… large) With the 1440p output, menus and the HUD were drawn 1.5 times too large and overlapped (Settings > Control Scheme, the tab row, footer prompts; issues trustno1-coder#98, trustno1-coder#301). The title lays its UI out on the 3840x2160 size its menus are authored for and scales it onto a smaller surface only when its legacy UI flag (0xA9438F4) is set. Its console preset sets the flag on Series S, whose menus are right at 1080p, and leaves it 0 on Series X, whose output is always 3840x2160. With the 1440p patch the Series X UI was laid out on a 2560x1440 stage while its content stayed 4K-sized. native_1440p.rs, each field checked against the stock bytes first: - 0x1E0FB69: the preset's legacy UI byte loads as 1 (mov al, 1). - 0x26192F9: the settings update stores 1 in the flag. - 0x247AD4A, the UI memory pool (named the scanout reservation before; it is the Series X value beside the Series S one, 0x5200000): 0x5E00000, two 3840x2160 legacy UI surfaces and two 2560x1440 targets rounded to 2 MiB, within the title's leftover check at 0x247AF25. The previous size had no room for the legacy surfaces (the title's allocator asserted). - The stock bytes of the two new places are kept as BLAKE3 hashes and checked with same(), as the others are since 64d4931. - 0x58048D4, the Settings viewport load, is left stock: with the flag set the legacy size it loads is the right one. Tested on an RTX 4070 Ti, 1440p output with DLSS and frame generation: Settings > Control Scheme laid out as at 4K, no crash over three minutes, about 32 fps in the menus as before. The retail-image tests pass (VICTORY_DISPLAY_PROFILE_TEST_IMAGE set). Co-Authored-By: Gemini <noreply@google.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8ea68dd to
01e35e4
Compare
|
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 Base: #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. What breaks with #541 here: the map (pause menu → KARTE).
What we use instead (#391 + two additions), tested in gameplay:
Diagnostics we used: 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.
|
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. |
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. |
…(map icons 1.5x out) The pause map's icons sat 1.5 times too far from the map's top left corner. Its targets are sized from the title's UI layout size, which the settings give through 0x7B4E10: the legacy UI size when the settings' legacy UI flag is on, the output size when it is off. The flag was set only where it is read (0x1E0FB69, 0x26192F9), so the settings still had it off. The map was then drawn at 2560x1440 while its icons were placed for 3840x2160. Series S's preset sets three video settings: legacy UI flag 1, legacy UI size 3840x2160, output 1920x1080. Series X's has the flag at 0 and no legacy size. Those three are now written into the title's settings, with a 2560x1440 output. The place is the settings collection's copy (0x1D70750), which every settings store goes through: its last store of the video block (0x1D70B98, 11 bytes, checked by BLAKE3) jumps to our code in int3 padding (0x55FF285). That code does the same store, writes the three settings and jumps back. The SDR mode stays at stock 3840x2160 and the reported display at the 3840x2160 default, as on Series S. The SDR mode patch, the VICTORY_DISPLAY_MODE override and the two flag patches are gone. The UI pool and the temporal scene scale stay. Tested on an RTX 4070 Ti at 1440p with DLSS Performance: - the map's icons, menus and HUD line up; - 0xA9438CC/D0 = 2560x1440, 0xA9438EC/F0 = 3840x2160, flag 1, screen size 3840x2160, no assertions. cargo test -p victory with the retail image: 23 + 2 passed. xtask policy ok. No clippy warnings in the changed files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Updated: the map icons are fixed, by having the game run with Series S's own output settings.
Thanks for the report on the map icons. |
|
Tested: works here. Setup: RTX 5060 Ti 16 GB, Windows 11 (26200), retail 1.0.2.1, Series X profile,
Not checked here: the pause map icons and the |
|
Tested on main
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. |
|
Independent check on the 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
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 Both |
(cherry picked from commit bc6bd84b524e0e274fc18305212f99d526853614)
Hardware validation: RTX 4080 SUPER / Series X 1440pTested the current PR head:
The PR head remained unchanged when rechecked after testing. Build and automated checks
Manual resultsWith DLSS Performance, matching the configuration reported in the PR:
The same UI, HUD, map and world-rendering checks also passed with DLSS disabled. Separate DLSS Quality observationOne DLSS Quality run produced a black game world while UI/objective symbols remained visible. The log repeatedly reported:
There 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. ResultThe 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. |






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;