1440p output: UI pool sized for 2560x1440 targets at every output size (start crash on non-16:9 monitors) #2409
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2409"
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 Ahadfahim on 2026-11-29T12:49:08Z.
Fixes the start crash on non-16:9 monitors:
0x80000003atvictory-image-…+0x247af2din System Init, frame 0 (#2260, #2339, #2391).Cause
Since the output follows the monitor's shape (
8e81b84c/ #1808), the UI pool in the title's UI setup (UI_POOL,0x247AD4A) was sized for UI targets of the output size. The title's setup then asserts that no more than0x1FFFFFof the pool is left over (0x247AF25), and it uses the same amount of the pool whatever the output size:0x5E00000)rax=0xC40000, as in #2260)int3int3This also explains #2391's finding that rounding the width to 16 px didn't help.
Fix
The UI pool is now the 2560x1440 one (
0x5E00000) for every output size (ui_pool_bytes). Nothing else changes: the output still follows the monitor, andVICTORY_NATIVE_SIZEstill sets it.Testing
Tested on a 3440x1440 main monitor with an RTX 5080 (16 GB), retail 1.0.2.1 and
829188e9, withoutVICTORY_NATIVE_SIZE:the_ui_pool_is_the_same_for_every_output_sizepasses.patches_the_retail_image_for_1440ppasses with the retail image (VICTORY_DISPLAY_PROFILE_TEST_IMAGE). It needsVICTORY_NATIVE_SIZE=2560x1440on a non-16:9 machine, since it expects the 16:9 size. Without that it fails the same way onmain.Not fixed here, seen in the same test: at 3440x1440, the right part of the picture (about the last quarter) was not drawn in my first two minutes, on a cold shader cache. It showed dark and stale with ghosting.
VICTORY_NATIVE_SIZE=2560x1440gives a correct picture. So the monitor-shaped output may need more work beyond this start crash. Making 2560x1440 the default again until it does, as #2391 suggests, may be worth considering.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-29T13:06:58Z.
Review: APPROVED
Tested locally merged onto
main(829188e9).apps/victory/src/native_1440p.rs.cargo test -p victory --bin victory native_1440ppassed (6 passed; 0 failed, including the newthe_ui_pool_is_the_same_for_every_output_sizetest) with 0 new warnings.Clean fix preventing non-16:9 monitor UI pool under-sizing crashes. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BonifacioJose on 2026-11-29T13:16:09Z.
Tested on a Widescreen monitor 3440x1440 and the .exe boots succesfully now
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.