1440p output: UI pool sized for 2560x1440 targets at every output size (start crash on non-16:9 monitors) #2409
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2409
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Ahadfahim on GitHub · 2026-11-29 12:49 UTC · original
Ahadfahim:fix/ultrawide-ui-pool→main· +19 −7 · 1 files · 2 commits · openFixes 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
@Dukestar69 on GitHub · 2026-11-29 13:06 UTC · original · approved these changes
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).
@BonifacioJose on GitHub · 2026-11-29 13:16 UTC · original
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.