Preserve HUD and world-marker placement on ultrawide displays #3350

Closed
github-bot wants to merge 9 commits from github-bot/gh-3350 into main AGit
Owner

@⁠invismann on GitHub · 2026-11-29 22:09 UTC · original
invismann:feat/ultrawide-hud → main · +2186 −203 · 17 files · 9 commits · closed without merging

Dependency and merge order

This PR depends on #2400, which carries #2210 and #2060. Merge #2400 first. Its commits are included here so the display and HUD changes can be built and tested from one checkout.

What it changes

The Series X pause menu and map use the full width at ultrawide resolutions. The map cursor, waypoint placement, and region selection share the same position. Startup screens, intro videos, and loading artwork keep a centered 16:9 presentation. Save confirmations keep their proportions and the minimap keeps its player marker.

HUD POSITION in F1 switches between CENTERED and SCREEN EDGES. World markers and interaction prompts keep their projected positions and proportions across the full display, including outside the centered HUD.

Use --res 1440 --aspect 21:9 for a supported 3440×1440 display, or --res 1440 --aspect 32:9 for a supported 32:9 display. At 3440×1440, the display and output targets stay at 3440×1440 and the UI layout is 5160×2160. The UI pool accounts for both sizes. #2400 still selects automatic scene budgets from the rendered scene size.

How it was tested

  • Stacked build on Windows and RTX 4090 at 3440×1440 with DLSS and frame generation off. Reached gameplay, checked the centered HUD and opened the full-width map. The launcher chose a 7200 MB render-target heap and a 1600 MB scene pool automatically.
  • Physical RTX 4090 at 5120×1440 with frame generation off. On the integration build, checked the map cursor, waypoint, county selection, minimap player marker, save confirmation, and loading artwork. The HUD and marker checks included the snake and mailbox prompts.
  • Built the updated PR tree with diagnostics and launched it on the RTX 4090 at 5120×1440 with DLSS Performance. The run used the existing manual switches VICTORY_RT_HEAP_MB=8000 and VICTORY_SCENE_POOL_MB=1600.
  • 37 targeted tests passed across display sizing, compositing, world markers, confirmations, and map input. The broader compositing run also found an existing BGRX assertion mismatch. Both the test and format-selection function match current main.

Checked for overlap

  • Searched open, merged, and closed PRs for the affected UI and marker paths. #541 supplies the native 1440p foundation, #2400 covers display selection and automatic memory budgets, and #3308 covers the DLAA shadow issue.
**@⁠invismann** on GitHub · 2026-11-29 22:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3350) `invismann:feat/ultrawide-hud` → `main` · +2186 −203 · 17 files · 9 commits · closed without merging ## Dependency and merge order This PR depends on #2400, which carries #2210 and #2060. Merge #2400 first. Its commits are included here so the display and HUD changes can be built and tested from one checkout. ## What it changes The Series X pause menu and map use the full width at ultrawide resolutions. The map cursor, waypoint placement, and region selection share the same position. Startup screens, intro videos, and loading artwork keep a centered 16:9 presentation. Save confirmations keep their proportions and the minimap keeps its player marker. HUD POSITION in F1 switches between CENTERED and SCREEN EDGES. World markers and interaction prompts keep their projected positions and proportions across the full display, including outside the centered HUD. Use `--res 1440 --aspect 21:9` for a supported 3440×1440 display, or `--res 1440 --aspect 32:9` for a supported 32:9 display. At 3440×1440, the display and output targets stay at 3440×1440 and the UI layout is 5160×2160. The UI pool accounts for both sizes. #2400 still selects automatic scene budgets from the rendered scene size. ## How it was tested - Stacked build on Windows and RTX 4090 at 3440×1440 with DLSS and frame generation off. Reached gameplay, checked the centered HUD and opened the full-width map. The launcher chose a 7200 MB render-target heap and a 1600 MB scene pool automatically. - Physical RTX 4090 at 5120×1440 with frame generation off. On the integration build, checked the map cursor, waypoint, county selection, minimap player marker, save confirmation, and loading artwork. The HUD and marker checks included the snake and mailbox prompts. - Built the updated PR tree with diagnostics and launched it on the RTX 4090 at 5120×1440 with DLSS Performance. The run used the existing manual switches `VICTORY_RT_HEAP_MB=8000` and `VICTORY_SCENE_POOL_MB=1600`. - 37 targeted tests passed across display sizing, compositing, world markers, confirmations, and map input. The broader compositing run also found an existing BGRX assertion mismatch. Both the test and format-selection function match current main. ## Checked for overlap - [x] Searched open, merged, and closed PRs for the affected UI and marker paths. #541 supplies the native 1440p foundation, #2400 covers display selection and automatic memory budgets, and #3308 covers the DLAA shadow issue.
Center the title menus and videos, add the live HUD position setting, and blend indicators in display coordinates at their original proportions.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 22:12:12 +00:00
Keep startup and loading artwork centered, align the map cursor, waypoint and region selection, and preserve the minimap and confirmation prompt proportions. Use the existing native output opt-in for the wide layout.
Preserve the full-width map header and keep centered gameplay HUD groups in position during fades. Verify the direct controller map route and pause transitions at 5120x1440.

(cherry picked from commit 395daafcd388d38889cf3b36570a2c42d5e376d2)
Author
Owner

@⁠Kassadd on GitHub · 2026-11-30 20:34 UTC · original

A question rather than a report: how are #2400 and #3350 meant to go together? I tried to
run both and they conflict in the design, not just in the text.

Context. Following your pointer from #2400, I built main (e1251c3) + #2400 + #3350 to
try HUD POSITION at 3440x1440 on a real wide monitor. #2400 applies cleanly on its own;
#3350 on top of it gives 8 hunks in native_1440p.rs and 2 in run.rs, and the ones I
looked at are not textual:

#2400 #3350
UI targets sized to the output (ui_pool_size(output), 106 MiB at 3440x1440) a layout with the authored 2160 height (ui_layout_size, wide_ui_width)
settings cave settings_cave_bytes(output) settings_cave_bytes(output, layout) — signature changes
mode_for matches ULTRAWIDE_1440 | WIDE_1080 matches (3440,1440) | (3840,1080) plus an output > LEGACY test
pool grows with the output stays the stock pool, plus image_folder_with(… "ui{width}")

Both are yours, both are MERGEABLE against main, and both solve the same problem two ways:
grow the UI targets with the output (#2400) versus keep the authored 2160 height and
extend the layout horizontally
(#3350). I can drive either, but I should not be the one
picking which of your designs wins by resolving 164 lines of conflict by hand.

What I would like to know:

  1. Which one is meant to land first, and is the second expected to be rebased on it?
  2. If they are alternatives rather than layers — #3350's ui_layout_size looks like it could
    replace #2400's output-sized targets entirely — then a note on which supersedes which would
    save anyone building both.
  3. If they are meant to compose, which of the two shapes is the one to keep in
    ui_pool_size / settings_cave_bytes? That is the one decision I would otherwise be making
    for you.

What I can offer either way. From the #2400 run I have the numbers and a capture at
3440x1440 on real hardware (display mode 3440x1440, OUTPUT 3440x1440,
VRAM 13.5/13.6 GB, 15.2 fps, frame 65.7 ms, world open). Once I know the order I will run
#3350 the same way and post here — both HUD POSITION values, centred and screen edges — so it
gets a run on a real 21:9 rather than a windowed one.

Not blocked on you: #2400 alone is enough for the game to run at 21:9 here, so nothing is
waiting on this answer; it is only the HUD work that needs the order settled.

**@⁠Kassadd** on GitHub · 2026-11-30 20:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3350#issuecomment-7291126421) **A question rather than a report: how are #2400 and #3350 meant to go together? I tried to run both and they conflict in the design, not just in the text.** **Context.** Following your pointer from #2400, I built `main` (`e1251c3`) + #2400 + #3350 to try `HUD POSITION` at 3440x1440 on a real wide monitor. #2400 applies cleanly on its own; #3350 on top of it gives **8 hunks in `native_1440p.rs` and 2 in `run.rs`**, and the ones I looked at are not textual: | | #2400 | #3350 | |---|---|---| | UI targets | sized to the **output** (`ui_pool_size(output)`, 106 MiB at 3440x1440) | a **layout** with the authored 2160 height (`ui_layout_size`, `wide_ui_width`) | | settings cave | `settings_cave_bytes(output)` | `settings_cave_bytes(output, layout)` — **signature changes** | | `mode_for` | matches `ULTRAWIDE_1440 \| WIDE_1080` | matches `(3440,1440) \| (3840,1080)` plus an `output > LEGACY` test | | pool | grows with the output | stays the stock pool, plus `image_folder_with(… "ui{width}")` | Both are yours, both are `MERGEABLE` against `main`, and both solve the same problem two ways: **grow the UI targets with the output** (#2400) versus **keep the authored 2160 height and extend the layout horizontally** (#3350). I can drive either, but I should not be the one picking which of your designs wins by resolving 164 lines of conflict by hand. **What I would like to know:** 1. **Which one is meant to land first**, and is the second expected to be rebased on it? 2. If they are alternatives rather than layers — #3350's `ui_layout_size` looks like it could replace #2400's output-sized targets entirely — then a note on which supersedes which would save anyone building both. 3. If they *are* meant to compose, which of the two shapes is the one to keep in `ui_pool_size` / `settings_cave_bytes`? That is the one decision I would otherwise be making for you. **What I can offer either way.** From the #2400 run I have the numbers and a capture at 3440x1440 on real hardware (`display mode 3440x1440`, `OUTPUT 3440x1440`, `VRAM 13.5/13.6 GB`, 15.2 fps, frame 65.7 ms, world open). Once I know the order I will run #3350 the same way and post here — both `HUD POSITION` values, centred and screen edges — so it gets a run on a real 21:9 rather than a windowed one. **Not blocked on you:** #2400 alone is enough for the game to run at 21:9 here, so nothing is waiting on this answer; it is only the HUD work that needs the order settled.
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.
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.
Preserve the output-sized targets and automatic scene budgets from #2400. Size the UI pool for both the authored UI layout and actual output targets, and keep the display mode reported to the title in sync with the patched image.
Author
Owner

@⁠invismann on GitHub · 2026-11-30 21:16 UTC · original · edited 2026-11-30 21:18 UTC

@⁠Kassadd Thanks for flagging the conflicts. #3350 now includes #2400, so you can build this PR branch directly. Feel free to test both HUD POSITION modes at 3440×1440 under Proton and report any problems here.

A text description and relevant log lines are enough. Please leave out in-game screenshots in keeping with the asset policy.

**@⁠invismann** on GitHub · 2026-11-30 21:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3350#issuecomment-7292168069) · edited 2026-11-30 21:18 UTC @⁠Kassadd Thanks for flagging the conflicts. #3350 now includes #2400, so you can build this PR branch directly. Feel free to test both **HUD POSITION** modes at 3440×1440 under Proton and report any problems here. A text description and relevant log lines are enough. Please leave out in-game screenshots in keeping with the [asset policy](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/main/docs/asset-policy.md).
Author
Owner

@⁠Kassadd on GitHub · 2026-11-30 23:04 UTC · original

Both HUD POSITION modes checked on a real 3440x1440 monitor under Proton, and everything
lines up. Thank you for folding #2400 in — building the branch directly made this a single run.

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@360 monitor, --res 1440 --aspect 21:9 --dlss off --no-framegen-ready, plus
VICTORY_VRAM_BUDGET_MB=12800 (see below). No screenshots, per the asset policy — a description
instead.

What I checked, in both CENTERED and SCREEN EDGES:

  • The minimap: keeps its player marker, its proportions and its corner.
  • The control prompts / tips: the [button] action groups stay beside their object, and the
    button and its text keep the same baseline. I looked specifically at whether a prompt drifted
    away from the thing it belongs to when the HUD moved, since that is the failure I would expect
    from a viewport change rather than a layout one.
  • The world markers: the projected waypoints stay on their targets at distance and close up,
    and still disappear behind geometry as they should — the depth-occluded behaviour survives.
  • The map, with a target selected (map open, then the key that opens the objective
    selection): the selection cursor, the waypoint placement and the highlight land where the
    cursor is, not offset. This is the one I expected to break first, since the map is drawn on
    the legacy stage and the selection is a second pass over it.

Nothing drifted, nothing clipped, nothing double-drawn in either mode. I could not make either
mode produce a wrong picture.

Something that may be worth a line in the description, because it is a pleasant surprise:
on this machine the PR is faster, not just correct. main + #2400 + #2585 at the same
settings, world open, medians over frames with more than 5,000 draws:

frame fps copies copying back worst frame
before 85.4 ms 11.8 35.1 ms 16.0 ms 453.8 ms
with #3350 76.6 ms 13.1 25.2 ms 13.6 ms 139.1 ms

34 frames before, 52 after, so it is not a lucky window. The likely reason is the one your
design implies: drawing the UI onto a narrower canvas is less work, and the copy volume follows.
Whether that holds on other cards I cannot say, but it is repeatable here.

On HUD POSITION itself — a personal preference, not a defect: SCREEN EDGES reads better
to me at 21:9, because the extra width is what the display is for. CENTERED looks correct too
and I would not call either wrong. If the default has to pick one, that is the only argument I
have for edges.

One unrelated note from the same tree, in case it helps someone else building it: I also
carry #2585 on top, because the console-instruction race it fixes is still in main and this
run can otherwise end in 0xc000001d at +0x5084782. Nothing to do with this PR — it is just
what the tree needs to survive a long session.

**@⁠Kassadd** on GitHub · 2026-11-30 23:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3350#issuecomment-7294676108) **Both HUD POSITION modes checked on a real 3440x1440 monitor under Proton, and everything lines up. Thank you for folding #2400 in — building the branch directly made this a single run.** **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@360 monitor, `--res 1440 --aspect 21:9 --dlss off --no-framegen-ready`, plus `VICTORY_VRAM_BUDGET_MB=12800` (see below). No screenshots, per the asset policy — a description instead. **What I checked, in both `CENTERED` and `SCREEN EDGES`:** - **The minimap**: keeps its player marker, its proportions and its corner. - **The control prompts / tips**: the `[button] action` groups stay beside their object, and the button and its text keep the same baseline. I looked specifically at whether a prompt drifted away from the thing it belongs to when the HUD moved, since that is the failure I would expect from a viewport change rather than a layout one. - **The world markers**: the projected waypoints stay on their targets at distance and close up, and still disappear behind geometry as they should — the depth-occluded behaviour survives. - **The map, with a target selected** (map open, then the key that opens the objective selection): the selection cursor, the waypoint placement and the highlight land where the cursor is, not offset. This is the one I expected to break first, since the map is drawn on the legacy stage and the selection is a second pass over it. Nothing drifted, nothing clipped, nothing double-drawn in either mode. I could not make either mode produce a wrong picture. **Something that may be worth a line in the description, because it is a pleasant surprise:** on this machine the PR is **faster**, not just correct. `main` + #2400 + #2585 at the same settings, world open, medians over frames with more than 5,000 draws: | | frame | fps | `copies` | `copying back` | worst frame | |---|---:|---:|---:|---:|---:| | before | 85.4 ms | 11.8 | 35.1 ms | 16.0 ms | 453.8 ms | | **with #3350** | **76.6 ms** | **13.1** | **25.2 ms** | **13.6 ms** | **139.1 ms** | 34 frames before, 52 after, so it is not a lucky window. The likely reason is the one your design implies: drawing the UI onto a narrower canvas is less work, and the copy volume follows. Whether that holds on other cards I cannot say, but it is repeatable here. **On `HUD POSITION` itself — a personal preference, not a defect:** `SCREEN EDGES` reads better to me at 21:9, because the extra width is what the display is for. `CENTERED` looks correct too and I would not call either wrong. If the default has to pick one, that is the only argument I have for edges. **One unrelated note from the same tree**, in case it helps someone else building it: I also carry #2585 on top, because the console-instruction race it fixes is still in `main` and this run can otherwise end in `0xc000001d` at `+0x5084782`. Nothing to do with this PR — it is just what the tree needs to survive a long session.
github-bot force-pushed github-bot/gh-3350 from fa6a77f9ab to 72d7edb20f 2026-12-01 05:53:02 +00:00 Compare
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.
github-bot closed this pull request 2026-12-01 18:58:51 +00:00

Pull request closed

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!3350
No description provided.