ui_ss: interface drawn 1:1 into a 4K layer, Lanczos-2 down #206

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

@⁠HeroOfOlympus on GitHub · 2026-12-02 16:25 UTC · original
HeroOfOlympus:ui-supersampling → main · +906 −7 · 7 files · 1 commits · closed without merging

On a sub-4K 16:9 output, UI passes draw into a 3840x2160 RGBA16F layer (depth-stencil for pause-menu/map masks) and are resolved into the title's target before tonemapping, instead of bilinear-scaled viewports. Also resolved at Close/copies/resolves/clears so the pause menu shows. VICTORY_UI_SS=0 turns it off. Works with the UI-at-4K resolution sites in the HDR10/display PR.

🤖 Generated with Claude Code

**@⁠HeroOfOlympus** on GitHub · 2026-12-02 16:25 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/206) `HeroOfOlympus:ui-supersampling` → `main` · +906 −7 · 7 files · 1 commits · closed without merging On a sub-4K 16:9 output, UI passes draw into a 3840x2160 RGBA16F layer (depth-stencil for pause-menu/map masks) and are resolved into the title's target before tonemapping, instead of bilinear-scaled viewports. Also resolved at Close/copies/resolves/clears so the pause menu shows. `VICTORY_UI_SS=0` turns it off. Works with the UI-at-4K resolution sites in the HDR10/display PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On a sub-4K 16:9 output the UI passes draw into a 3840x2160 RGBA16F layer (with
depth-stencil for the pause menu and map masks) and are resolved into the
title's target before tonemapping. The layer is also resolved at Close, copies,
resolves and clears, so passes that end without a dispatch (pause menu) show.
VICTORY_UI_SS=0 keeps the scaled viewports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:04:28 +00:00
Author
Owner

@⁠Luxuride on GitHub · 2026-12-04 12:01 UTC · original · edited 2026-12-05 11:24 UTC

The idea is the most interesting in this batch — supersampling the HUD beats drawing it at native 4K — but main already ships a 4K interface plane (VICTORY_UI_PLANE), and two mechanisms for one job is not something a backlog this size can afford. That is what I can see from the code.

Reasons, in case you want to come back at it:

  • The target size is guessed from the environment rather than read: sub_4k_output() (crates/victory-gpu/src/draw.rs:6348-6362) re-parses VICTORY_OUTPUT (default 2560x1440), so under VICTORY_FSR_4K, VICTORY_FSR_HOST or VICTORY_RENDER_SCALE the layer is scaled by the wrong factor or the path silently does nothing.
  • is_sub4k_ui_pass() (draw.rs:1356-1372) redirects any single-RT pass whose viewport exceeds the target but fits 3840x2160, with no per-pass opt-out — a 4K scene pass at 1440p output is a false positive that produces a visibly wrong frame on someone else's title.
  • It is on by default and undocumented, and costs ~127 MB of VRAM (63 MB RGBA16F + 63 MB D32S8) on the 8–12 GB cards the presets target. Neither VICTORY_UI_SS nor VICTORY_UI_4K is in run.conf.default or docs/SETTINGS.md.
  • Depth writes from non-redirected passes are not mirrored, so a stencil mask written earlier in the frame can be missing when the interface composites.

If you return: size from the real target, an explicit switch instead of the viewport heuristic, both switches in run.conf.default, and one screenshot + frame-time number against VICTORY_UI_PLANE.

Whether it still has work of its own is the maintainer's call, not mine.

**@⁠Luxuride** on GitHub · 2026-12-04 12:01 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/206#issuecomment-7410866866) · edited 2026-12-05 11:24 UTC The idea is the most interesting in this batch — supersampling the HUD beats drawing it at native 4K — but `main` already ships a 4K interface plane (`VICTORY_UI_PLANE`), and two mechanisms for one job is not something a backlog this size can afford. That is what I can see from the code. Reasons, in case you want to come back at it: - The target size is guessed from the environment rather than read: `sub_4k_output()` (`crates/victory-gpu/src/draw.rs:6348-6362`) re-parses `VICTORY_OUTPUT` (default 2560x1440), so under `VICTORY_FSR_4K`, `VICTORY_FSR_HOST` or `VICTORY_RENDER_SCALE` the layer is scaled by the wrong factor or the path silently does nothing. - `is_sub4k_ui_pass()` (`draw.rs:1356-1372`) redirects any single-RT pass whose viewport exceeds the target but fits 3840x2160, with no per-pass opt-out — a 4K scene pass at 1440p output is a false positive that produces a visibly wrong frame on someone else's title. - It is on by default and undocumented, and costs ~127 MB of VRAM (63 MB RGBA16F + 63 MB D32S8) on the 8–12 GB cards the presets target. Neither `VICTORY_UI_SS` nor `VICTORY_UI_4K` is in `run.conf.default` or `docs/SETTINGS.md`. - Depth writes from non-redirected passes are not mirrored, so a stencil mask written earlier in the frame can be missing when the interface composites. If you return: size from the real target, an explicit switch instead of the viewport heuristic, both switches in `run.conf.default`, and one screenshot + frame-time number against `VICTORY_UI_PLANE`. Whether it still has work of its own is the maintainer's call, not mine.
github-bot closed this pull request 2026-12-05 17:31:57 +00:00

Pull request closed

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