framegen: keep the interface plane and black bars with frame generation #161

Manually merged
github merged 1 commit from github-bot/gh-161 into main 2026-12-02 16:17:45 +00:00 AGit
Owner

@⁠ARustyOven on GitHub · 2026-12-02 05:10 UTC · original
ARustyOven:fix/framegen-scaled-ui-plane → main · +199 −60 · 3 files · 1 commits · merged 2026-12-02 16:11 UTC

Further work on the pillarbox implementation from #139: black bars (VICTORY_PILLARBOX=1) now work with frame generation and with an interface plane, where before they were turned off.

While testing that, I found that with frame generation on, the UI ghosted when using VICTORY_UI_PLANE=3840x2160. This PR fixes that as well.

Changes

  • UI ghosting with a scaled interface plane. The framegen proxy only accepted an interface plane of the frame's exact size, so a 4K plane over a 1440p frame got interpolated along with the scene, and the HUD and statistics panel ghosted. The plane is now scaled on the GPU into the proxy's texture, keeping premultiplied alpha.
  • Black bars with frame generation / interface plane. In both cases the swap chain is now the window's size. The generator is created at that size and given the frame's position as its generation rect, the interface plane is drawn into the same rect, and the two-plane composer draws into it with black around it.

Files: crates/victory-gpu/src/{compose,framegen,host}.rs

🤖 Generated with Claude Code

**@⁠ARustyOven** on GitHub · 2026-12-02 05:10 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/161) `ARustyOven:fix/framegen-scaled-ui-plane` → `main` · +199 −60 · 3 files · 1 commits · merged 2026-12-02 16:11 UTC Further work on the pillarbox implementation from #139: black bars (`VICTORY_PILLARBOX=1`) now work with frame generation and with an interface plane, where before they were turned off. While testing that, I found that with frame generation on, the UI ghosted when using `VICTORY_UI_PLANE=3840x2160`. This PR fixes that as well. ## Changes - **UI ghosting with a scaled interface plane.** The framegen proxy only accepted an interface plane of the frame's exact size, so a 4K plane over a 1440p frame got interpolated along with the scene, and the HUD and statistics panel ghosted. The plane is now scaled on the GPU into the proxy's texture, keeping premultiplied alpha. - **Black bars with frame generation / interface plane.** In both cases the swap chain is now the window's size. The generator is created at that size and given the frame's position as its generation rect, the interface plane is drawn into the same rect, and the two-plane composer draws into it with black around it. Files: `crates/victory-gpu/src/{compose,framegen,host}.rs` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The proxy only took an interface plane of the frame's exact size, so a 4K
plane (VICTORY_UI_PLANE=3840x2160) over a 1440p frame was interpolated with
the scene and the HUD and statistics panel ghosted. The plane is now scaled
on the GPU into the proxy's texture, premultiplied alpha kept.

Black bars (VICTORY_PILLARBOX=1) were off with frame generation and with an
interface plane. The swap chain is now the window's size in both cases: the
generator is made at that size and told where the frame is (its generation
rect), the interface plane is drawn into the same rect, and the two-plane
composer draws into it with black around.

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

@⁠douglas-dh on GitHub · 2026-12-02 09:47 UTC · original · reviewed

Tested this PR (ed52726d merged onto main at d0442486) on Linux + RDNA 4 and can confirm it fixes the UI ghosting/wobbling with AMD Frame Generation:

  • Hardware: Ryzen 5 5600X, 32 GB RAM, RX 9060 XT 16 GB (ReBAR enabled)
  • OS / Runtime: CachyOS Linux (kernel 7.3.6), Wine 11.23, patched RADV 26.3.1
  • Settings: VICTORY_OUTPUT=1920x1080, VICTORY_FULLSCREEN=1, VICTORY_BVH_BUILDER=0, VICTORY_FSR_4K=balanced (FSR 4.1.1), VICTORY_FIDELITYFX_FRAMEGEN=1 (FidelityFX FG 3.1.7), default 4K UI plane

Before this PR: with Frame Generation enabled at 1080p, the HUD, subtitles, and performance panel noticeably wobbled/ghosted whenever the camera moved.
With this PR: the HUD, subtitles, and stats overlay stay sharp and stable during camera movement, with no framegen warnings/errors in the log. (Did not test VICTORY_PILLARBOX=1 since this is a 16:9 display.)

**@⁠douglas-dh** on GitHub · 2026-12-02 09:47 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/161#pullrequestreview-6148368628) · **reviewed** Tested this PR (`ed52726d` merged onto `main` at `d0442486`) on Linux + RDNA 4 and can confirm it fixes the UI ghosting/wobbling with AMD Frame Generation: - **Hardware:** Ryzen 5 5600X, 32 GB RAM, RX 9060 XT 16 GB (ReBAR enabled) - **OS / Runtime:** CachyOS Linux (kernel 7.3.6), Wine 11.23, patched RADV 26.3.1 - **Settings:** `VICTORY_OUTPUT=1920x1080`, `VICTORY_FULLSCREEN=1`, `VICTORY_BVH_BUILDER=0`, `VICTORY_FSR_4K=balanced` (FSR 4.1.1), `VICTORY_FIDELITYFX_FRAMEGEN=1` (FidelityFX FG 3.1.7), default 4K UI plane **Before this PR:** with Frame Generation enabled at 1080p, the HUD, subtitles, and performance panel noticeably wobbled/ghosted whenever the camera moved. **With this PR:** the HUD, subtitles, and stats overlay stay sharp and stable during camera movement, with no framegen warnings/errors in the log. (Did not test `VICTORY_PILLARBOX=1` since this is a 16:9 display.)
Author
Owner

@⁠GreemSC on GitHub · 2026-12-02 11:52 UTC · original

Hit exactly the case this PR fixes, on d044248 (+ #163 #164 #166) with an RX 7900 XT (RDNA 3), Proton-CachyOS Wine: VICTORY_FSR_4K=quality, VICTORY_OUTPUT=2560x1440, VICTORY_UI_PLANE=3840x2160, VICTORY_FIDELITYFX_FRAMEGEN=1. The log says

WARN victory_gpu::framegen: FidelityFX frame generation: the interface plane is interpolated with the scene plane=[3840, 2160] plane_format=28 screen=[2560, 1440] scene=28

and in play the HUD visibly shakes / ghosts, while the scene itself looks right. I have not built this PR yet; noting it so the case is confirmed on RDNA 3 too.

The rest worked there: FSR 4 through the PC upscaler (provider="4.1.2", render 1706x960 → 2560x1440) with amdxcffx64.dll 4.1.1 in the prefix's system32 and FSR4_UPGRADE=1 (Proton-CachyOS's amdxc64.dll, which has the RDNA 3 WMMA workaround), frame generation provider="3.1.6" with the proxy swap chain 3.1.7, no extra pipelines to prepare, and a clean image in the captures. No speed numbers yet (that run had frame captures on).

AI assistance: Claude Code (Claude Opus 5.5) ran the test and wrote this from its log; the HUD shaking was seen by the user playing.

**@⁠GreemSC** on GitHub · 2026-12-02 11:52 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/161#issuecomment-7344522713) Hit exactly the case this PR fixes, on `d044248` (+ #163 #164 #166) with an RX 7900 XT (RDNA 3), Proton-CachyOS Wine: `VICTORY_FSR_4K=quality`, `VICTORY_OUTPUT=2560x1440`, `VICTORY_UI_PLANE=3840x2160`, `VICTORY_FIDELITYFX_FRAMEGEN=1`. The log says ``` WARN victory_gpu::framegen: FidelityFX frame generation: the interface plane is interpolated with the scene plane=[3840, 2160] plane_format=28 screen=[2560, 1440] scene=28 ``` and in play the HUD visibly shakes / ghosts, while the scene itself looks right. I have not built this PR yet; noting it so the case is confirmed on RDNA 3 too. The rest worked there: FSR 4 through the PC upscaler (`provider="4.1.2"`, render 1706x960 → 2560x1440) with `amdxcffx64.dll` 4.1.1 in the prefix's system32 and `FSR4_UPGRADE=1` (Proton-CachyOS's `amdxc64.dll`, which has the RDNA 3 WMMA workaround), frame generation `provider="3.1.6"` with the proxy swap chain `3.1.7`, no extra pipelines to prepare, and a clean image in the captures. No speed numbers yet (that run had frame captures on). AI assistance: Claude Code (Claude Opus 5.5) ran the test and wrote this from its log; the HUD shaking was seen by the user playing.
github manually merged commit 406aa41c05 into main 2026-12-02 16:17:45 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.