Series X ultrawide aspect selector and automatic memory budgets #2400

Open
invismann wants to merge 7 commits from upstream-pr/2400 into main
invismann commented 2026-11-29 12:43:16 +00:00 (Migrated from github.com)

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


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550817407 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400). Originally posted by [invismann](https://github.com/invismann) on 2026-11-29T12:43:16Z. --- ## 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.
Kassadd commented 2026-11-30 20:02:40 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kassadd on 2026-11-30T20:02:40Z.


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 #4330 and #2210 describe; not something this PR
claims to fix.

Logs and the exact invocation on request.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7290317979 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400#issuecomment-7290317979). Originally posted by [Kassadd](https://github.com/Kassadd) on 2026-11-30T20:02:40Z. --- **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 #4330 and #2210 describe; not something this PR claims to fix. Logs and the exact invocation on request.
invismann commented 2026-11-30 20:15:57 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by invismann on 2026-11-30T20:15:57Z.


@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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7290650307 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400#issuecomment-7290650307). Originally posted by [invismann](https://github.com/invismann) on 2026-11-30T20:15:57Z. --- @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.
Kassadd commented 2026-11-30 20:29:41 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kassadd on 2026-11-30T20:29:41Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7291010202 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2400#issuecomment-7291010202). Originally posted by [Kassadd](https://github.com/Kassadd) on 2026-11-30T20:29:41Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2400:upstream-pr/2400'
git switch 'upstream-pr/2400'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2400'
git switch 'upstream-pr/2400'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2400'
git switch 'upstream-pr/2400'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2400'
git switch 'main'
git merge --squash 'upstream-pr/2400'
git switch 'main'
git merge --ff-only 'upstream-pr/2400'
git switch 'main'
git merge 'upstream-pr/2400'
git push origin 'main'
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!2400
No description provided.