Series X ultrawide aspect selector and automatic memory budgets #2400

Open
github-bot wants to merge 7 commits from github-bot/gh-2400 into main AGit
Owner

@⁠invismann on GitHub · 2026-11-29 12:43 UTC · original
invismann:feat/series-x-ultrawide → main · +568 −91 · 7 files · 7 commits · open

What it changes

This PR depends on #2210, which includes #2060. Both commits are kept intact. The feature changes start after 977730075.

  • Add --aspect auto|16:9|21:9|32:9 and a matching F1 setting for Series X 1440p output profiles. F1 offers the ultrawide presets supported by the primary display and applies the selection on restart. The exact-size override still takes precedence.
  • Report the selected 3440×1440 or 3840×1080 mode to the title and size the UI pool accordingly, so the game window follows the ultrawide output. This extends #2210's 5120×1440 path.
  • For the supported Series X build, increase the render-target heap and scene pool only when the rendered scene exceeds 2560×1440 on one of the three ultrawide profiles. This uses the manual budget patches already on main from the work in #1274. Either budget can be overridden separately, and the launcher checks available Windows commit before starting.
  • Explain the selector and memory behavior in F1 and the README.

How it was tested

  • GPU and profile. Windows 11, RTX 4090, Series X v1.0.2.1. Tested native DLAA and DLSS Performance. Tested 2× DLSS frame generation at 5120×1440.
  • Before. A 3440×1440 scene could start in a 16:9 window. At large scene sizes, DLAA could exhaust the title's stock memory budgets.
  • After. On the integration build with the same display and budget changes, the 3440×1440 window request matched the output and DLAA rendered gameplay with a warm shader cache. The three ultrawide outputs received their expected budget presets. A 5120×1440 DLSS Performance control used stock budgets. A cold diagnostic run exhausted Windows commit during shader creation, which needs additional headroom beyond the startup check.
  • Build and tests. The release build and focused cargo test --locked --release suites passed on the PR branch for victory (launcher, display profile and heap budget) and victory-gpu (F1 menu). The display and budget patch tests used a local retail executable.

Checked for overlap

  • Searched the open pull requests for the same issue and the files this touches. #2309 overlaps the physical monitor size and UI pool work. This branch builds on #2210's mode-aware pool sizing and enumerates available monitor modes for the selector. #1981 also touches display settings and focuses on the game's own Settings menu.
**@⁠invismann** on GitHub · 2026-11-29 12:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400) `invismann:feat/series-x-ultrawide` → `main` · +568 −91 · 7 files · 7 commits · open ## What it changes This PR depends on #2210, which includes #2060. Both commits are kept intact. The feature changes start after `977730075`. - Add `--aspect auto|16:9|21:9|32:9` and a matching F1 setting for Series X 1440p output profiles. F1 offers the ultrawide presets supported by the primary display and applies the selection on restart. The exact-size override still takes precedence. - Report the selected 3440×1440 or 3840×1080 mode to the title and size the UI pool accordingly, so the game window follows the ultrawide output. This extends #2210's 5120×1440 path. - For the supported Series X build, increase the render-target heap and scene pool only when the rendered scene exceeds 2560×1440 on one of the three ultrawide profiles. This uses the manual budget patches already on main from the work in #1274. Either budget can be overridden separately, and the launcher checks available Windows commit before starting. - Explain the selector and memory behavior in F1 and the README. ## How it was tested - **GPU and profile.** Windows 11, RTX 4090, Series X v1.0.2.1. Tested native DLAA and DLSS Performance. Tested 2× DLSS frame generation at 5120×1440. - **Before.** A 3440×1440 scene could start in a 16:9 window. At large scene sizes, DLAA could exhaust the title's stock memory budgets. - **After.** On the integration build with the same display and budget changes, the 3440×1440 window request matched the output and DLAA rendered gameplay with a warm shader cache. The three ultrawide outputs received their expected budget presets. A 5120×1440 DLSS Performance control used stock budgets. A cold diagnostic run exhausted Windows commit during shader creation, which needs additional headroom beyond the startup check. - **Build and tests.** The release build and focused `cargo test --locked --release` suites passed on the PR branch for `victory` (launcher, display profile and heap budget) and `victory-gpu` (F1 menu). The display and budget patch tests used a local retail executable. ## Checked for overlap - [x] Searched the open pull requests for the same issue and the files this touches. #2309 overlaps the physical monitor size and UI pool work. This branch builds on #2210's mode-aware pool sizing and enumerates available monitor modes for the selector. #1981 also touches display settings and focuses on the game's own Settings menu.
Fixes #2055.

With SDR_MODE kept at stock 3840x2160 (0c0d4662), the UI setup at 0x247AD10
always allocates 0x5DC0000 bytes (2x 3840x2160 legacy surfaces + 2x 2560x1440
UI targets) and asserts at 0x247AF25 that <= 0x1FFFFF bytes remain unused.
Scaling UI_POOL from width() x height() (#1808) left 0xC40000 unused on 21:9
(3440x1440 -> 0x6A00000, hitting int3 at 0x247AF2D) and under-allocated on
narrower shapes like 16:10 (2304x1440 -> 0x5C00000 < 0x5DC0000).

Keep UI_POOL sized from LEGACY_UI_WIDTH x LEGACY_UI_HEIGHT and DEFAULT
(2560x1440) via ui_pool_size() (0x5E00000) and add a unit test covering the
bound and both aspect-ratio regressions.
Ported from our 32:9 build (ba35d230, which ran in play at 5120x1440 on an
RTX 5080, Series X): with the SDR mode left stock, a 5120x1440 output is not
taken, the UI setup makes its two targets at 3840x2160 and the title's
allocator asserts (int3 at 0x56A2AFD). Where the output is wider or higher
than 3840x2160 (mode_for), the image's SDR mode is written to the output's
size and the runner reports the same mode (VICTORY_DISPLAY_MODE, read by
dxgi::display_size). The UI pool then holds two targets of the output's
size, as that build sized it; every output the stock mode holds keeps
#2060's fixed 0x5E00000.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Offer display-supported aspect presets in F1 and on the command line. Match the ultrawide window to the selected output and size the render-target heap and scene pool for large native scenes.

Based on trustno1-coder/VIctory-NVIDIA#2210, which includes #2060.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:43:53 +00:00
Keep stock SDR UI target dimensions when the title mode stays at stock. Size the UI pool for the selected mode when the ultrawide display patch changes that mode.
Author
Owner

@⁠Kassadd on GitHub · 2026-11-30 20:02 UTC · original · edited 2026-11-30 22:31 UTC

Ran it on a real 3440x1440 monitor under Proton on Linux: the aspect selector works, and the
automatic budgets are what made it start at all. Thank you for this one.

Environment: RTX 4080 SUPER 16 GiB, i9-14900K, 62 GiB, CachyOS, Hyprland/Wayland,
NVIDIA 620.73.04, Proton Experimental …-w0be231-d1011dd-v71cae0, Series X 1.0.2.1.
A 3440x1440 monitor beside a 1080p one. Built main at e1251c3 with this PR on top; it
applied with no conflict. Nothing but --res 1440 --aspect 21:9 --dlss off --no-framegen-ready — no VICTORY_RT_HEAP_MB, no VICTORY_SCENE_POOL_MB, no
VICTORY_NATIVE_SIZE
, to see what the PR works out on its own.

It works out the right numbers. The run printed:

memory         automatic budgets for the 3440x1440 scene
memory         render-target heap 7200 MB (stock 2199 MB)
memory         scene pool 1600 MB (stock 710 MB), its array of units in a new section at +0xb06d000

and the F2 panel then reads OUTPUT 3440x1440, VRAM 13.5/13.6 GB. The log reports
display mode reported to the title width=3440 height=1440. 13.5 fps, frame 74.0 ms, 6,313
draws
, world open.

This is the part that mattered most to us. On main, the same 3440x1440 output — reached
with VICTORY_NATIVE_SIZE=3440x1440, which patches the image but leaves the display mode at
3840x2160 — dies a few seconds in at the title's out-of-memory break +0x2219650, with
0x80000003 and rdi/rdx/r11 all 0x2b0800 (2.69 MB it could not have). Your derived
7200 MB / 1600 MB is what avoids it, and the scene-pool value it picks is the same 1600 MB I
had found sufficient by setting it by hand. So the presets are doing what they say on a
configuration you cannot test.


Two notes that are Linux/Proton only — feel free to ignore them if they are out of scope
here
, since they do not affect the Windows path this PR is aimed at:

  • The crash above writes nothing to the play log. It goes only to
    …/victory/data/7952987A/crashes.log, so a run that "just ends" is easy to misread. If
    anything in the selector can fail the same way, a line in the play log when a budget is
    derived or refused would help a lot.
  • --aspect 21:9 checks the primary display, so under Wine it stops with
    Error: the primary display reports no 21:9 mode supported by this profile when the
    ultrawide is the second monitor. On this desktop that was fixed with
    xrandr --output HDMI-A-1 --primary. On Windows this is presumably the usual "set it as
    main display" and does not come up at all.

What I did not test: 32:9, 3840x1080, and 16:9 as a control (the default path is
unchanged, so I left it alone). DLSS frame generation, which does not work under Wine at all.
The HUD is stretched at 21:9 the same way #4331 and #2210 describe; not something this PR
claims to fix.

Logs and the exact invocation on request.

**@⁠Kassadd** on GitHub · 2026-11-30 20:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400#issuecomment-7290317979) · edited 2026-11-30 22:31 UTC **Ran it on a real 3440x1440 monitor under Proton on Linux: the aspect selector works, and the automatic budgets are what made it start at all. Thank you for this one.** **Environment:** RTX 4080 SUPER 16 GiB, i9-14900K, 62 GiB, CachyOS, Hyprland/Wayland, NVIDIA 620.73.04, Proton Experimental `…-w0be231-d1011dd-v71cae0`, Series X `1.0.2.1`. A 3440x1440 monitor beside a 1080p one. Built `main` at `e1251c3` with this PR on top; it applied with no conflict. Nothing but `--res 1440 --aspect 21:9 --dlss off --no-framegen-ready` — **no `VICTORY_RT_HEAP_MB`, no `VICTORY_SCENE_POOL_MB`, no `VICTORY_NATIVE_SIZE`**, to see what the PR works out on its own. **It works out the right numbers.** The run printed: ```text memory automatic budgets for the 3440x1440 scene memory render-target heap 7200 MB (stock 2199 MB) memory scene pool 1600 MB (stock 710 MB), its array of units in a new section at +0xb06d000 ``` and the F2 panel then reads `OUTPUT 3440x1440`, `VRAM 13.5/13.6 GB`. The log reports `display mode reported to the title width=3440 height=1440`. **13.5 fps, frame 74.0 ms, 6,313 draws**, world open. **This is the part that mattered most to us.** On `main`, the same 3440x1440 output — reached with `VICTORY_NATIVE_SIZE=3440x1440`, which patches the image but leaves the display mode at 3840x2160 — dies a few seconds in at the title's out-of-memory break `+0x2219650`, with `0x80000003` and `rdi`/`rdx`/`r11` all `0x2b0800` (2.69 MB it could not have). Your derived 7200 MB / 1600 MB is what avoids it, and the scene-pool value it picks is the same 1600 MB I had found sufficient by setting it by hand. So the presets are doing what they say on a configuration you cannot test. --- **Two notes that are Linux/Proton only — feel free to ignore them if they are out of scope here**, since they do not affect the Windows path this PR is aimed at: - The crash above **writes nothing to the play log**. It goes only to `…/victory/data/7952987A/crashes.log`, so a run that "just ends" is easy to misread. If anything in the selector can fail the same way, a line in the play log when a budget is derived or refused would help a lot. - `--aspect 21:9` checks the **primary** display, so under Wine it stops with `Error: the primary display reports no 21:9 mode supported by this profile` when the ultrawide is the second monitor. On this desktop that was fixed with `xrandr --output HDMI-A-1 --primary`. On Windows this is presumably the usual "set it as main display" and does not come up at all. **What I did not test:** 32:9, 3840x1080, and 16:9 as a control (the default path is unchanged, so I left it alone). DLSS frame generation, which does not work under Wine at all. The HUD is stretched at 21:9 the same way #4331 and #2210 describe; not something this PR claims to fix. Logs and the exact invocation on request.
Author
Owner

@⁠invismann on GitHub · 2026-11-30 20:15 UTC · original

@⁠Kassadd Thanks for testing at 3440×1440 under Proton and sharing the budget numbers. The HUD stretch you saw is addressed in #3350. It adds a HUD POSITION setting in F1 for a centered 16:9 HUD or screen-edge placement and keeps world markers and prompts aligned with their targets. I verified the HUD placement and map and pause transitions at 5120×1440 on Windows.

**@⁠invismann** on GitHub · 2026-11-30 20:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400#issuecomment-7290650307) @⁠Kassadd Thanks for testing at 3440×1440 under Proton and sharing the budget numbers. The HUD stretch you saw is addressed in #3350. It adds a **HUD POSITION** setting in F1 for a centered 16:9 HUD or screen-edge placement and keeps world markers and prompts aligned with their targets. I verified the HUD placement and map and pause transitions at 5120×1440 on Windows.
Author
Owner

@⁠Kassadd on GitHub · 2026-11-30 20:29 UTC · original · edited 2026-11-30 20:36 UTC

Thanks for the pointer — #3350 is exactly the piece I was missing, and the HUD POSITION
setting is a better answer than I expected: on a real 21:9 monitor the stretched HUD is the
one thing that makes the picture look wrong even when the scene is right.

One correction to what I said in my first comment, since it matters for #3350. I described
the F3 panel's bars as cut off at the window edge. They are not — I misread a stretched panel as
a clipped one. The layer's own overlay is fine at 3440x1440; it is the game's HUD that stretches,
which is the thing #3350 actually addresses. Sorry for the noise.

What I can offer on #3350: I have the hardware and I can run it the same way — main +
#2400, --res 1440 --aspect 21:9, --dlss off, no memory switches — and post captures of both
HUD POSITION values at 3440x1440. That would give it a run on a real wide monitor rather than a
windowed one, which as far as I can tell is what it has not had yet. Say the word and I will
put the numbers and pictures in its thread instead of here.

And thank you for the budgets again — 7200 MB / 1600 MB derived from the output is what made
this start at all on Linux. Without it the same configuration dies in the title's OOM break
+0x2219650 with nothing in the play log, which took a while to work out.

**@⁠Kassadd** on GitHub · 2026-11-30 20:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400#issuecomment-7291010202) · edited 2026-11-30 20:36 UTC Thanks for the pointer — #3350 is exactly the piece I was missing, and the HUD POSITION setting is a better answer than I expected: on a real 21:9 monitor the stretched HUD is the one thing that makes the picture look wrong even when the scene is right. **One correction to what I said in my first comment, since it matters for #3350.** I described the F3 panel's bars as cut off at the window edge. They are not — I misread a stretched panel as a clipped one. The layer's own overlay is fine at 3440x1440; it is the game's HUD that stretches, which is the thing #3350 actually addresses. Sorry for the noise. **What I can offer on #3350:** I have the hardware and I can run it the same way — `main` + #2400, `--res 1440 --aspect 21:9`, `--dlss off`, no memory switches — and post captures of both HUD POSITION values at 3440x1440. That would give it a run on a real wide monitor rather than a windowed one, which as far as I can tell is what it has not had yet. Say the word and I will put the numbers and pictures in its thread instead of here. And thank you for the budgets again — 7200 MB / 1600 MB derived from the output is what made this start at all on Linux. Without it the same configuration dies in the title's OOM break `+0x2219650` with nothing in the play log, which took a while to work out.
Keep zero as an explicit stock budget. Report malformed and out-of-range values before they can disable an automatic ultrawide budget.

Ported from Foxhound ultrawide commit 3b5fa5368.
This pull request has changes conflicting with the target branch.
  • apps/victory/Cargo.toml
  • crates/victory-gpu/src/host/menu.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2400/head:github-bot/gh-2400'
git switch 'github-bot/gh-2400'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2400'
git switch 'github-bot/gh-2400'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2400'
git switch 'github-bot/gh-2400'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2400'
git switch 'main'
git merge --squash 'github-bot/gh-2400'
git switch 'main'
git merge --ff-only 'github-bot/gh-2400'
git switch 'main'
git merge 'github-bot/gh-2400'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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