resolution: enable 4K split UI plane at 1080p #80

Closed
github-bot wants to merge 1 commit from github-bot/gh-79 into main AGit
Owner

@⁠benlann on GitHub · 2026-12-05 01:50 UTC · original
benlann:fix/1080p-split-ui-plane → main · +139 −5 · 2 files · 1 commits · closed without merging

Summary

  • Enables the title's native 3840x2160 two-plane interface compositor (uiOverlay = true) with an 82 MiB split-display pool when outputting 1920x1080 on Series X (and optionally 1280x720 via VICTORY_UI_PLANE_720=1 or VICTORY_UI_PLANE=1).
  • Skips the ui_scale_for_output and map_cursor_ui_transform patches while the split plane is active so full-screen menus, safezone prompts, pause-map cursor hitboxes, subtitles, and in-game phone UI all keep native 4K proportions without clipping to the upper-left quadrant.
  • Leaves Series S (own_interface), 2560x1440, 3840x2160, and ultrawide modes unchanged.

Verification

  • Tested in-game on Series X mode at 1920x1080 with FSR 4 Native AA: main/pause menus, safezone layout, pause-map cursor alignment, and phone UI render full-screen with proper proportions.
  • cargo clippy -p victory-loader --tests -- -D warnings and cargo test -p victory-loader resolution pass.
**@⁠benlann** on GitHub · 2026-12-05 01:50 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/79) `benlann:fix/1080p-split-ui-plane` → `main` · +139 −5 · 2 files · 1 commits · closed without merging ### Summary - Enables the title's native `3840x2160` two-plane interface compositor (`uiOverlay = true`) with an `82 MiB` split-display pool when outputting `1920x1080` on Series X (and optionally `1280x720` via `VICTORY_UI_PLANE_720=1` or `VICTORY_UI_PLANE=1`). - Skips the `ui_scale_for_output` and `map_cursor_ui_transform` patches while the split plane is active so full-screen menus, safezone prompts, pause-map cursor hitboxes, subtitles, and in-game phone UI all keep native 4K proportions without clipping to the upper-left quadrant. - Leaves Series S (`own_interface`), `2560x1440`, `3840x2160`, and ultrawide modes unchanged. ### Verification - Tested in-game on Series X mode at `1920x1080` with FSR 4 Native AA: main/pause menus, safezone layout, pause-map cursor alignment, and phone UI render full-screen with proper proportions. - `cargo clippy -p victory-loader --tests -- -D warnings` and `cargo test -p victory-loader resolution` pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 01:55:57 +00:00
github-bot closed this pull request 2026-12-05 09:45:58 +00:00
Author
Owner

@⁠ReTerryDavis on GitHub · 2026-12-05 09:43 UTC · original

Closing this PR as superseded: merged PR #50 (fix/ui-root-size-below-4k) already addresses sub-4K UI, phone, and map scaling across all resolutions below 2160p without the extra 4K split UI plane overhead, and this branch now conflicts both textually and semantically with resolution.rs on main (both patches would fire at 1080p if combined). Thanks for putting this together!

**@⁠ReTerryDavis** on GitHub · 2026-12-05 09:43 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/79#issuecomment-7435873006) Closing this PR as superseded: merged PR #50 (`fix/ui-root-size-below-4k`) already addresses sub-4K UI, phone, and map scaling across all resolutions below 2160p without the extra 4K split UI plane overhead, and this branch now conflicts both textually and semantically with `resolution.rs` on `main` (both patches would fire at 1080p if combined). Thanks for putting this together!
Author
Owner

@⁠benlann on GitHub · 2026-12-05 10:12 UTC · original

Thanks for reviewing and explaining the conflict on main—totally agree that running both patches simultaneously at 1080p would break things.

I just tested main (v0.6.0 with PR #50) at 1920x1080 without my branch, and PR #50 actually clips the UI into the top-left quadrant on 1080p (looks like ui_root_scale_for was verified at 2560x1440, whereas scaling the UI root to 4K at 1080p without enabling uiOverlay and the 82 MiB split pool crops the viewport):

main menu UI cut off in game UI cut off

I've rebased my branch onto main and gated PR #50's root_scale and map_cursor_ui_transform paths with !split_ui so they are mutually exclusive:

  • 1920x1080 (and opt-in 720p): Uses the native 4K split UI overlay plane (uiOverlay = true + 82 MiB pool), which renders the full-screen HUD, 3D phone, and pause menu cleanly without clipping.
  • 2560x1440 and other sub-4K modes: Falls through untouched to PR #50's ui_root_scale_for.

If you'd like this upstreamed now that the conflict with PR #50 is resolved, I'm happy to open a fresh PR against main.

**@⁠benlann** on GitHub · 2026-12-05 10:12 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/79#issuecomment-7436279486) Thanks for reviewing and explaining the conflict on `main`—totally agree that running both patches simultaneously at 1080p would break things. I just tested `main` (`v0.6.0` with PR #50) at `1920x1080` without my branch, and PR #50 actually clips the UI into the top-left quadrant on 1080p (looks like `ui_root_scale_for` was verified at `2560x1440`, whereas scaling the UI root to 4K at 1080p without enabling `uiOverlay` and the 82 MiB split pool crops the viewport): <img width="1919" height="1079" alt="main menu UI cut off" src="https://github.com/user-attachments/assets/3ad091fa-a7e8-4ab4-b6e4-c346244d1d9e" /> <img width="1919" height="1079" alt="in game UI cut off" src="https://github.com/user-attachments/assets/4990b0e3-1cf2-49e2-9e02-449cfa6f3604" /> I've rebased my branch onto `main` and gated PR #50's `root_scale` and `map_cursor_ui_transform` paths with `!split_ui` so they are mutually exclusive: - **`1920x1080` (and opt-in `720p`):** Uses the native 4K split UI overlay plane (`uiOverlay = true` + 82 MiB pool), which renders the full-screen HUD, 3D phone, and pause menu cleanly without clipping. - **`2560x1440` and other sub-4K modes:** Falls through untouched to PR #50's `ui_root_scale_for`. If you'd like this upstreamed now that the conflict with PR #50 is resolved, I'm happy to open a fresh PR against `main`.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.