resolution: 4K interface plane at 1080p by default #52

Closed
github-bot wants to merge 0 commits from github-bot/gh-52 into main AGit
Owner

@⁠PedroRBC on GitHub · 2026-12-01 01:09 UTC · original
fix/ui-plane-1080p → main · +244 −3 · 3 files · 1 commits · closed without merging

Refs #24.

At VICTORY_OUTPUT=1920x1080 the title keeps its interface at 4K pixel sizes, so the HUD and the settings menu overlap or go off screen. This puts the interface on its own 3840x2160 plane over the 1080p scene, the way Series S draws it (2x scale, 82 MiB display pool). The scene keeps the asked size.

  • On by default at 1920x1080 while VICTORY_PLANES is not 0. VICTORY_UI_PLANE=0 turns it off.
  • At 1280x720 it is opt-in with VICTORY_UI_PLANE=1 or VICTORY_UI_PLANE_720=1, so 720p from the issue still needs that switch.
  • VICTORY_UI_VIEWBOX=1 keeps a single-plane fallback for other sizes.
  • The title's bytes at OUTPUT, POOL_CHECK and the pool site are checked before anything is written.

Original commit by Maksim Gorbunov, adapted from avatarmanz/VIctory-7900XTX#295 via TaynanGT/Vice-Tay 9e2d88b8. The only conflict on current main was the apply_asked branch, resolved to main's code.

Testing

  • cargo build --profile diag for x86_64-pc-windows-msvc passes.
  • resolution tests pass under Wine (9, including ui_plane and viewbox).
  • On an RX 6700 XT at 1080p in my fork, the log shows 1920x1080 scene, 3840x2160 interface patched, and the HUD and menus show at console size. This was not rerun on this exact branch.
lobo
**@⁠PedroRBC** on GitHub · 2026-12-01 01:09 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/52) `fix/ui-plane-1080p` → `main` · +244 −3 · 3 files · 1 commits · closed without merging Refs #24. At `VICTORY_OUTPUT=1920x1080` the title keeps its interface at 4K pixel sizes, so the HUD and the settings menu overlap or go off screen. This puts the interface on its own 3840x2160 plane over the 1080p scene, the way Series S draws it (2x scale, 82 MiB display pool). The scene keeps the asked size. - On by default at 1920x1080 while `VICTORY_PLANES` is not `0`. `VICTORY_UI_PLANE=0` turns it off. - At 1280x720 it is opt-in with `VICTORY_UI_PLANE=1` or `VICTORY_UI_PLANE_720=1`, so 720p from the issue still needs that switch. - `VICTORY_UI_VIEWBOX=1` keeps a single-plane fallback for other sizes. - The title's bytes at `OUTPUT`, `POOL_CHECK` and the pool site are checked before anything is written. Original commit by Maksim Gorbunov, adapted from avatarmanz/VIctory-7900XTX#295 via TaynanGT/Vice-Tay `9e2d88b8`. The only conflict on current `main` was the `apply_asked` branch, resolved to `main`'s code. ### Testing - `cargo build --profile diag` for `x86_64-pc-windows-msvc` passes. - `resolution` tests pass under Wine (9, including `ui_plane` and `viewbox`). - On an RX 6700 XT at 1080p in my fork, the log shows `1920x1080 scene, 3840x2160 interface` patched, and the HUD and menus show at console size. This was not rerun on this exact branch. <img width="1080" height="1080" alt="lobo" src="https://github.com/user-attachments/assets/d70eaac6-4038-4941-a092-7e3a98c85973" />
Adapted from avatarmanz/VIctory-7900XTX#295 and extended to 1920x1080.

When VICTORY_OUTPUT=1920x1080 is used (e.g. Series X at 1080p), fixed-size HUD elements, pause menus, subtitles, and prompts otherwise stay at 4K pixel dimensions. This extends the split-plane patch to 1920x1080 (2x interface scaling to 3840x2160 over a 1920x1080 scene with the 82 MiB display pool) whenever VICTORY_PLANES != 0 unless VICTORY_UI_PLANE=0.

Keeps 1280x720 opt-in via VICTORY_UI_PLANE=1 or VICTORY_UI_PLANE_720=1, and preserves VICTORY_UI_VIEWBOX=1 for single-plane rendering. Verifies OUTPUT, POOL_CHECK, and ui_plane::POOL match before queueing writes.

From TaynanGT/Vice-Tay 9e2d88b8.

Refs #24
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:42:17 +00:00
Author
Owner

@⁠Widget9337 on GitHub · 2026-12-01 14:01 UTC · original

Tested this on RDNA 4. It fixes #24 for me: menus and the HUD are console-sized again at 1080p.

Setup: RX 9070 XT, Ryzen 9 7950X3D, CachyOS (kernel 7.2), Mesa 26.3.1 with this repo's patch (from setup.sh), runtime proton-cachyos-slr. Series X profile with VICTORY_OUTPUT=1920x1080 and VICTORY_RENDER_SCALE=0.8, ray tracing on. Ran fullscreen through gamescope.

Applied: merged 953e0bb onto 37bb30f (clean merge), then rebuilt with ./setup.sh victory. The log shows all three sites patched, plus the compositor:

resolution: separate interface plane display pool (1920x1080 scene, 3840x2160 interface) at title+0x247ad4b: Done
resolution: settings' output size applied (1920x1080 scene, 3840x2160 interface) at title+0x224352b: Done
resolution: back buffer pool's left-over check (1920x1080 scene, 3840x2160 interface) at title+0x247af25: Done
display output: compositing two planes (overlay active) frame=1 width=1920 height=1080 base_format=28 overlay_format=28

Result: without it, at 1080p the settings menus overlapped and ran off screen and the HUD was oversized. With it, everything fits. No measurable performance cost, no crashes, or GPU errors in about 15 minutes of play.

**@⁠Widget9337** on GitHub · 2026-12-01 14:01 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/52#issuecomment-7313570562) Tested this on RDNA 4. It fixes #24 for me: menus and the HUD are console-sized again at 1080p. **Setup:** RX 9070 XT, Ryzen 9 7950X3D, CachyOS (kernel 7.2), Mesa 26.3.1 with this repo's patch (from `setup.sh`), runtime `proton-cachyos-slr`. Series X profile with `VICTORY_OUTPUT=1920x1080` and `VICTORY_RENDER_SCALE=0.8`, ray tracing on. Ran fullscreen through gamescope. **Applied:** merged `953e0bb` onto `37bb30f` (clean merge), then rebuilt with `./setup.sh victory`. The log shows all three sites patched, plus the compositor: ``` resolution: separate interface plane display pool (1920x1080 scene, 3840x2160 interface) at title+0x247ad4b: Done resolution: settings' output size applied (1920x1080 scene, 3840x2160 interface) at title+0x224352b: Done resolution: back buffer pool's left-over check (1920x1080 scene, 3840x2160 interface) at title+0x247af25: Done display output: compositing two planes (overlay active) frame=1 width=1920 height=1080 base_format=28 overlay_format=28 ``` **Result:** without it, at 1080p the settings menus overlapped and ran off screen and the HUD was oversized. With it, everything fits. No measurable performance cost, no crashes, or GPU errors in about 15 minutes of play.
github-bot closed this pull request 2026-12-01 19:07:22 +00:00

Pull request closed

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