loader: the FSR output path patches the interface plane too (HUD with VICTORY_FSR_4K) #60

Manually merged
github merged 3 commits from github-bot/gh-60 into main 2026-12-01 20:58:53 +00:00 AGit
Owner

@⁠YaBulochka on GitHub · 2026-12-01 08:58 UTC · original
YaBulochka:fix-fsr-ui → main · +388 −27 · 8 files · 3 commits · merged 2026-12-01 20:55 UTC

With VICTORY_FSR_4K the HUD keeps its 4K proportions, so it looks larger than without FSR: the scene renders at 720p and the interface does not come down with it.

Why. FSR loads the title through victory_loader::resolution::prepare_output() (#58), and that path never runs apply_asked(), where #52 applies the interface plane. prepare_output() patched only OUTPUT and POOL_CHECK, so POOL_CHECK, ui_plane::POOL (SPLIT_POOL) and the scene+interface OUTPUT code were left out.

The change. The plane's three sites move into ui_plane_patches(), which prepare_output() uses when ui_plane::requested() says yes. apply_asked() keeps its own runtime matches() check.

Tested. RX 7600 XT (8 GB, RDNA3), Ryzen 5 9600X, RADV 26.3.1, series-x, VICTORY_OUTPUT=1920x1080, VICTORY_FSR_4K=quality, ray tracing off:

victory::run::fsr_4k: Selected Series X FSR renderer=7 preset="quality" expected_render=[1280, 720] output=[1920, 1080]
victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host provider="4.1.2" render=[1280, 720] output=[1920, 1080]

The HUD then sits at its normal size with the interface on 3840x2160, confirmed by eye side by side with the run without FSR. Without this patch the same run has the oversized HUD.

Stacking. The branch is #58 + #52 + this one commit, because the fix needs prepare_output() and ui_plane to both exist; rebase me onto main once those land, or cherry-pick just the last commit.

Not covered. 2560x1440 still falls back to false in ui_plane::requested()/output_code(): the interface is raised to 3840x2160 with one lea (2x for 1080p, 3x for 720p) and 1440p needs 1.5x, which does not fit the 35 bytes without another instruction dropping out. Separate work, and anyone playing at 1440p still sees the old HUD.

No game files, screenshots or captures included.

**@⁠YaBulochka** on GitHub · 2026-12-01 08:58 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/60) `YaBulochka:fix-fsr-ui` → `main` · +388 −27 · 8 files · 3 commits · merged 2026-12-01 20:55 UTC With `VICTORY_FSR_4K` the HUD keeps its 4K proportions, so it looks **larger** than without FSR: the scene renders at 720p and the interface does not come down with it. **Why.** FSR loads the title through `victory_loader::resolution::prepare_output()` (#58), and that path never runs `apply_asked()`, where #52 applies the interface plane. `prepare_output()` patched only `OUTPUT` and `POOL_CHECK`, so `POOL_CHECK`, `ui_plane::POOL` (`SPLIT_POOL`) and the scene+interface `OUTPUT` code were left out. **The change.** The plane's three sites move into `ui_plane_patches()`, which `prepare_output()` uses when `ui_plane::requested()` says yes. `apply_asked()` keeps its own runtime `matches()` check. **Tested.** RX 7600 XT (8 GB, RDNA3), Ryzen 5 9600X, RADV 26.3.1, `series-x`, `VICTORY_OUTPUT=1920x1080`, `VICTORY_FSR_4K=quality`, ray tracing off: ``` victory::run::fsr_4k: Selected Series X FSR renderer=7 preset="quality" expected_render=[1280, 720] output=[1920, 1080] victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host provider="4.1.2" render=[1280, 720] output=[1920, 1080] ``` The HUD then sits at its normal size with the interface on 3840x2160, confirmed by eye side by side with the run without FSR. Without this patch the same run has the oversized HUD. **Stacking.** The branch is #58 + #52 + this one commit, because the fix needs `prepare_output()` and `ui_plane` to both exist; rebase me onto `main` once those land, or cherry-pick just the last commit. **Not covered.** 2560x1440 still falls back to `false` in `ui_plane::requested()`/`output_code()`: the interface is raised to 3840x2160 with one `lea` (2x for 1080p, 3x for 720p) and 1440p needs 1.5x, which does not fit the 35 bytes without another instruction dropping out. Separate work, and anyone playing at 1440p still sees the old HUD. No game files, screenshots or captures included.
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
FSR always output 3840x2160. It now takes VICTORY_OUTPUT when that is set
(one of the title's modes) and keeps the stock 4K otherwise. The output
patches the title's own upscaler gets at load are shared through
output_patches() and applied to the prepared image before it is cached;
the cache folder names the size.
VICTORY_FSR_4K loads the title through resolution::prepare_output() (from
#58), which only patched OUTPUT and POOL_CHECK. #52's interface plane is
applied by apply_asked(), so with FSR the HUD kept its 4K proportions and
looked even larger than without it, because the scene renders at 720p.

ui_plane_patches() now builds the three sites (POOL_CHECK, ui_plane::POOL
with SPLIT_POOL, OUTPUT with the scene+3840x2160 code) for both paths.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 09:02:08 +00:00
github-bot referenced this pull request from a commit 2026-12-01 20:58:42 +00:00
github manually merged commit fb2801c1de into main 2026-12-01 20:58:53 +00:00
github-bot referenced this pull request from a commit 2026-12-01 21:04:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.