32:9 at 1080 lines: a 3840-wide output takes the display mode with it too #2404

Closed
Creaa wants to merge 3 commits from upstream-pr/2404 into main
Creaa commented 2026-11-29 12:45:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Creaa on 2026-11-29T12:45:43Z.


Stacked on #2210 (which is stacked on #2060); only the top commit belongs here.

On a 32:9 1080p monitor (3840x1080, as in #2260) the output follows the monitor's shape at 3840x1080. That is not wider than the stock 3840x2160 mode, so mode_for keeps the stock mode and the UI pool is sized for 2560x1440 targets. The title still crashes at start with the allocator's int3 at +0x56a2afd, the same crash #2210 fixes for 5120x1440. With this change, an output as wide as the stock mode (>= 3840) also gets its own mode, and the pool is sized for two targets of that size.

What is in it

  • apps/victory/src/native_1440p.rs: mode_for takes widths >= LEGACY_UI_WIDTH. Its comment now names 3840x1080, and ui_pool_size_matches_legacy_and_default_targets checks 3840x1080 and 2560x1080.

Tested (RTX 4070 12 GB, driver 617.14, i7-13700F, 32 GB, Windows 11 26300; main monitor 5120x1440; release build; scripts\play-foxhound.ps1 -FrameGen, Series X; each run: start + 45 s; sizes set with VICTORY_NATIVE_SIZE)

output #2210 97773007 this PR
3840x1080 crash 0x80000003 at +0x56a2afd starts
3840x2160 not run starts
5120x1440 starts starts
3440x1440 / 2560x1080 / 2560x1600 start 3440x1440 and 2560x1080 start; 2560x1600 not rerun
2560x1440 starts starts
  • I ran this PR at 3840x1080 on my 32:9 monitor and looked at it: the scene had the 32:9 shape, but the UI text is stretched sideways, as reported on #2210 for 5120x1440. This PR only stops the start crash; the UI stays as #2210 leaves it.
  • cargo test -p victory --bin victory native_1440p: 6 passed. With > restored the new assertion fails (1 failed).
  • cargo clippy -p victory --bin victory -- -D warnings: nothing in this file.

Not tested

  • A real 3840x1080 monitor (I forced the size on a 5120x1440 one). The UI was only looked at briefly, not in every menu, and no long play session was run. 3840x2160 on #2210 without this change was not run.
  • Other GPUs.

AI use

  • Claude Code (Claude Opus 5.5) found the case, wrote the change and the test, ran the runs and drafted this; I reviewed it.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550836245 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2404). Originally posted by [Creaa](https://github.com/Creaa) on 2026-11-29T12:45:43Z. --- Stacked on #2210 (which is stacked on #2060); only the top commit belongs here. On a 32:9 1080p monitor (3840x1080, as in #2260) the output follows the monitor's shape at 3840x1080. That is not wider than the stock 3840x2160 mode, so `mode_for` keeps the stock mode and the UI pool is sized for 2560x1440 targets. The title still crashes at start with the allocator's `int3` at `+0x56a2afd`, the same crash #2210 fixes for 5120x1440. With this change, an output as wide as the stock mode (`>=` 3840) also gets its own mode, and the pool is sized for two targets of that size. **What is in it** - `apps/victory/src/native_1440p.rs`: `mode_for` takes widths `>= LEGACY_UI_WIDTH`. Its comment now names 3840x1080, and `ui_pool_size_matches_legacy_and_default_targets` checks 3840x1080 and 2560x1080. **Tested** (RTX 4070 12 GB, driver 617.14, i7-13700F, 32 GB, Windows 11 26300; main monitor 5120x1440; release build; `scripts\play-foxhound.ps1 -FrameGen`, Series X; each run: start + 45 s; sizes set with `VICTORY_NATIVE_SIZE`) | output | #2210 `97773007` | this PR | |---|---|---| | 3840x1080 | crash `0x80000003` at `+0x56a2afd` | starts | | 3840x2160 | not run | starts | | 5120x1440 | starts | starts | | 3440x1440 / 2560x1080 / 2560x1600 | start | 3440x1440 and 2560x1080 start; 2560x1600 not rerun | | 2560x1440 | starts | starts | - I ran this PR at 3840x1080 on my 32:9 monitor and looked at it: the scene had the 32:9 shape, but the UI text is stretched sideways, as reported on #2210 for 5120x1440. This PR only stops the start crash; the UI stays as #2210 leaves it. - `cargo test -p victory --bin victory native_1440p`: 6 passed. With `>` restored the new assertion fails (1 failed). - `cargo clippy -p victory --bin victory -- -D warnings`: nothing in this file. **Not tested** - A real 3840x1080 monitor (I forced the size on a 5120x1440 one). The UI was only looked at briefly, not in every menu, and no long play session was run. 3840x2160 on #2210 without this change was not run. - Other GPUs. **AI use** - Claude Code (Claude Opus 5.5) found the case, wrote the change and the test, ran the runs and drafted this; I reviewed it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kitrae commented 2026-11-29 19:04:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kitrae on 2026-11-29T19:04:45Z.


Confirmed on a native 3840×1080 (32:9) monitor. I ported #2210 and this PR onto main (f889bb07), preserving the original commit authors. The branch applying cleanly to main is at ff46b3d9.

System: RTX 4090 (596.21), i9-14900KF, Windows 11 build 26200. Release build, fresh profiles, DLSS Quality, frame generation off, Series X with automatic monitor sizing for the native tests.

  • Official v2026.11.29.02 reproduced 0x80000003 at +0x56a2afd during System Init, frame 0, on two starts. Baseline details
  • The patched build reported a 3840×1080 display mode to the title and composited its first frame at 3840×1080 after about 3 seconds on both starts. It kept rendering until I ended each run.
  • The 2560×1440 Series X and 1920×1080 Series S startup controls both reached frame presentation. Six native_1440p tests passed, including the tests with a locally supplied retail image.

This was a startup test. I did not measure gameplay performance or inspect UI layout.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7260989305 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2404#issuecomment-7260989305). Originally posted by [Kitrae](https://github.com/Kitrae) on 2026-11-29T19:04:45Z. --- Confirmed on a native **3840×1080 (32:9)** monitor. I ported #2210 and this PR onto `main` (`f889bb07`), preserving the original commit authors. The [branch applying cleanly to main](https://github.com/Kitrae/VIctory-NVIDIA/tree/fix/ultrawide-startup) is at `ff46b3d9`. System: RTX 4090 (596.21), i9-14900KF, Windows 11 build 26200. Release build, fresh profiles, DLSS Quality, frame generation off, Series X with automatic monitor sizing for the native tests. - Official v2026.11.29.02 reproduced `0x80000003` at `+0x56a2afd` during System Init, frame 0, on two starts. [Baseline details](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2474#issuecomment-7260910443) - The patched build reported a 3840×1080 display mode to the title and composited its first frame at 3840×1080 after about 3 seconds on both starts. It kept rendering until I ended each run. - The 2560×1440 Series X and 1920×1080 Series S startup controls both reached frame presentation. Six `native_1440p` tests passed, including the tests with a locally supplied retail image. This was a startup test. I did not measure gameplay performance or inspect UI layout.
Creaa commented 2026-11-30 03:35:17 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Creaa on 2026-11-30T03:35:17Z.


Closing: main's 0ba02ea2 gives monitors below 1440 lines (3840x1080 included) a 2560x1440 output, which starts, so the case this PR fixed no longer happens on a real 3840x1080 monitor. Only a forced VICTORY_NATIVE_SIZE=3840x1080 still stops at +0x56a2afd.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7268020500 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2404#issuecomment-7268020500). Originally posted by [Creaa](https://github.com/Creaa) on 2026-11-30T03:35:17Z. --- Closing: main's `0ba02ea2` gives monitors below 1440 lines (3840x1080 included) a 2560x1440 output, which starts, so the case this PR fixed no longer happens on a real 3840x1080 monitor. Only a forced `VICTORY_NATIVE_SIZE=3840x1080` still stops at `+0x56a2afd`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!2404
No description provided.