VICTORY_FSR_HOST: PC FSR 4 serves the title's own upscaling (off by default) #51

Manually merged
github merged 1 commit from github-bot/gh-51 into main 2026-12-01 20:58:53 +00:00 AGit
Owner

@⁠AndreRese on GitHub · 2026-12-01 00:04 UTC · original
AndreRese:fsr-host → main · +29 −11 · 4 files · 1 commits · merged 2026-12-01 20:55 UTC

Off by default. With VICTORY_FSR_HOST=1, the PC FidelityFX in VICTORY_FIDELITYFX_DIR (what ./setup.sh fsr4 fetches; run.sh already sets the folder) serves the title's own upscaler at the title's own sizes, instead of the console's programs translated. It works the way the FSR 4K profile already does, but on any profile and without changing the title's sizes. On Series S that is the title's 720p → 1080p.

The change is the switch in run.rs (it calls the existing fidelityfx::use_host_dir), plus a README row, the module's doc, and the HUD naming it ([FSR 4] in place of [Built in]).

Series S results

On 37bb30f, with an RX 7600 XT and a Ryzen 7 5800X at 1080p. Each run is 4 minutes of the opening scenes after the menus. The figures are the median of the log's 5 s samples, in ms/frame.

with without
RT on 39.1, 45.5 51.1, 48.6
RT off 37.1, 38.2 43.4

Over the same stretch (the first ~50 s), frames took 27-32 ms with the switch and 32-40 ms without.

  • Picture: without the switch, the world was black in all three runs; the menus, subtitles and HUD still drew. The log shows the title loading amd_fidelityfx_upscaler_xbox.dll itself, so its programs run translated. With the switch, the picture was right in all four runs.
  • Stalls: both arms had stalls of seconds in these runs (p99 of the samples 1.3-7.8 s). They are not from this switch.
  • Series X: not run with the switch.

Test plan

  • diag build; cargo fmt --check clean on the touched files; cargo xtask policy --staged
  • 7 bench runs on Series S (above); the HUD reads 1280x720 -> 1920x1080 [FSR 4] with the switch
  • With it on an older main (a185b1e), about 9 minutes of play

🤖 Generated with Claude Code

**@⁠AndreRese** on GitHub · 2026-12-01 00:04 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/51) `AndreRese:fsr-host` → `main` · +29 −11 · 4 files · 1 commits · merged 2026-12-01 20:55 UTC Off by default. With `VICTORY_FSR_HOST=1`, the PC FidelityFX in `VICTORY_FIDELITYFX_DIR` (what `./setup.sh fsr4` fetches; `run.sh` already sets the folder) serves the title's own upscaler at the title's own sizes, instead of the console's programs translated. It works the way the FSR 4K profile already does, but on any profile and without changing the title's sizes. On Series S that is the title's 720p → 1080p. The change is the switch in `run.rs` (it calls the existing `fidelityfx::use_host_dir`), plus a README row, the module's doc, and the HUD naming it (`[FSR 4]` in place of `[Built in]`). ### Series S results On 37bb30f, with an RX 7600 XT and a Ryzen 7 5800X at 1080p. Each run is 4 minutes of the opening scenes after the menus. The figures are the median of the log's 5 s samples, in ms/frame. | | with | without | |---|---|---| | RT on | 39.1, 45.5 | 51.1, 48.6 | | RT off | 37.1, 38.2 | 43.4 | Over the same stretch (the first ~50 s), frames took 27-32 ms with the switch and 32-40 ms without. - **Picture:** without the switch, the world was black in all three runs; the menus, subtitles and HUD still drew. The log shows the title loading `amd_fidelityfx_upscaler_xbox.dll` itself, so its programs run translated. With the switch, the picture was right in all four runs. - **Stalls:** both arms had stalls of seconds in these runs (p99 of the samples 1.3-7.8 s). They are not from this switch. - **Series X:** not run with the switch. ### Test plan - [x] diag build; `cargo fmt --check` clean on the touched files; `cargo xtask policy --staged` - [x] 7 bench runs on Series S (above); the HUD reads `1280x720 -> 1920x1080 [FSR 4]` with the switch - [x] With it on an older main (a185b1e), about 9 minutes of play 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With VICTORY_FSR_HOST=1 the PC FidelityFX in VICTORY_FIDELITYFX_DIR (what
`./setup.sh fsr4` fetches; run.sh sets the folder) serves the title's own
upscaler at the title's own sizes, the way the 4K profile already does,
instead of the console's programs translated. On Series S that is its
720p -> 1080p. The HUD names it ([FSR 4] in place of [Built in]).

Series S on 37bb30f, RX 7600 XT, Ryzen 7 5800X, 1080p, 4 min of the opening
scenes per run, median of the log's 5 s samples in ms/frame:
  RT on:  with 39.1, 45.5; without 51.1, 48.6
  RT off: with 37.1, 38.2; without 43.4
Without it the world was black in all three runs (menus, subtitles and the
HUD drew); with it the picture was right in all four.

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

@⁠YaBulochka on GitHub · 2026-12-01 08:31 UTC · original

On this card VICTORY_FSR_HOST=1 never engages, and the HUD says it did — worth either a fix or a warning in the docs.

Environment. RX 7600 XT, Ryzen 5 9600X, RADV 26.3.1, build ede9bc9 (pr38 + #51 + #52 on 37bb30f), series-x, VICTORY_OUTPUT=1920x1080. deps/fsr4 filled by ./setup.sh fsr4 with PROTON=<GE-Proton11-16>: amd_fidelityfx_upscaler_dx12.dll plus system32/amdxcffx64.dll (driver 4.1.1) and the amdxc64.dll bridge.

What the log shows at 1080p with VICTORY_FSR_HOST=1:

victory_hle::modules::fidelityfx: FidelityFX: selected PC upscaler folder=...
(and nothing else)

Counted over the whole run: upscaler context on the host 0, dispatch 0, different provider 0. So the title never asks FidelityFX for anything at this output size — it upscales with its own path — and there is nothing for the host upscaler to serve. The picture stays soft, the HUD tag reads [FSR4] (from panel.rs, which prints it from the switch alone), and nothing in the log warns that no context was ever made.

The same build with VICTORY_FSR_4K=performance does work:

FidelityFX: upscaler context on the host provider="4.1.2" id=0xf5a5ca1e01001002 render=[1920, 1080] output=[3840, 2160]

so the PC upscaler and the DLLs are fine; it is the FSR_HOST route that finds no caller at 1080p.

Two suggestions:

  1. The HUD tag should follow a context actually created, not the switch, or the log should say once that no context was requested.
  2. Note in the README that VICTORY_FSR_HOST only serves titles that already pick FidelityFX at that size; forcing the picker is what VICTORY_FSR_4K patches inside the title's file, and it is tied to the 1080p/1440p -> 2160p pairs (resolution/ui_plane.rs-style supports() gating would be enough for the plane; here the coupling is in the profile).

If useful: the 4K profile itself works here, it is just expensive on 8 GB (9-13 fps, 75-108 ms, VRAM 94 %) compared with the built-in upscale (18 fps / 55 ms at 1080p). No game files, screenshots or captures included.

**@⁠YaBulochka** on GitHub · 2026-12-01 08:31 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/51#issuecomment-7305423623) On this card `VICTORY_FSR_HOST=1` never engages, and the HUD says it did — worth either a fix or a warning in the docs. **Environment.** RX 7600 XT, Ryzen 5 9600X, RADV 26.3.1, build `ede9bc9` (`pr38` + #51 + #52 on `37bb30f`), `series-x`, `VICTORY_OUTPUT=1920x1080`. `deps/fsr4` filled by `./setup.sh fsr4` with `PROTON=<GE-Proton11-16>`: `amd_fidelityfx_upscaler_dx12.dll` plus `system32/amdxcffx64.dll` (driver 4.1.1) and the `amdxc64.dll` bridge. **What the log shows at 1080p with `VICTORY_FSR_HOST=1`:** ``` victory_hle::modules::fidelityfx: FidelityFX: selected PC upscaler folder=... (and nothing else) ``` Counted over the whole run: `upscaler context on the host` 0, `dispatch` 0, `different provider` 0. So the title never asks FidelityFX for anything at this output size — it upscales with its own path — and there is nothing for the host upscaler to serve. The picture stays soft, the HUD tag reads `[FSR4]` (from `panel.rs`, which prints it from the switch alone), and nothing in the log warns that no context was ever made. **The same build with `VICTORY_FSR_4K=performance` does work:** ``` FidelityFX: upscaler context on the host provider="4.1.2" id=0xf5a5ca1e01001002 render=[1920, 1080] output=[3840, 2160] ``` so the PC upscaler and the DLLs are fine; it is the `FSR_HOST` route that finds no caller at 1080p. Two suggestions: 1. The HUD tag should follow a context actually created, not the switch, or the log should say once that no context was requested. 2. Note in the README that `VICTORY_FSR_HOST` only serves titles that already pick FidelityFX at that size; forcing the picker is what `VICTORY_FSR_4K` patches inside the title's file, and it is tied to the 1080p/1440p -> 2160p pairs (`resolution/ui_plane.rs`-style `supports()` gating would be enough for the plane; here the coupling is in the profile). If useful: the 4K profile itself works here, it is just expensive on 8 GB (9-13 fps, 75-108 ms, VRAM 94 %) compared with the built-in upscale (18 fps / 55 ms at 1080p). No game files, screenshots or captures included.
Author
Owner

@⁠thedee8086 on GitHub · 2026-12-01 09:02 UTC · original

One more RDNA3 data point, from the launcher's FSR=1 route (not FSR_HOST): on a 7900 XTX at 2560x1440 output, the host upscaler context does get created — the log shows one upscaler context on the host with provider 4.1.1, render=[1706, 960] output=[2560, 1440], i.e. exactly when the title renders below the output size and there is something to serve. So "never engages" may be specific to 1:1 output (nothing to upscale at 1080p -> no caller), rather than to the switch. Agreed that a HUD tag printed from the switch alone is misleading when no context ever appears; a one-line "no host upscale requested" note in the log would have saved a debug round-trip here too.

**@⁠thedee8086** on GitHub · 2026-12-01 09:02 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/51#issuecomment-7306129229) One more RDNA3 data point, from the launcher's `FSR=1` route (not `FSR_HOST`): on a 7900 XTX at 2560x1440 output, the host upscaler context *does* get created — the log shows one `upscaler context on the host` with provider `4.1.1`, `render=[1706, 960] output=[2560, 1440]`, i.e. exactly when the title renders below the output size and there is something to serve. So "never engages" may be specific to 1:1 output (nothing to upscale at 1080p -> no caller), rather than to the switch. Agreed that a HUD tag printed from the switch alone is misleading when no context ever appears; a one-line "no host upscale requested" note in the log would have saved a debug round-trip here too.
Author
Owner

@⁠YaBulochka on GitHub · 2026-12-01 09:33 UTC · original

This switch is the difference between a working and a black Series S here, and it does what it says on that profile — worth a README row.

Environment. RX 7600 XT (8 GB, RDNA3), Ryzen 5 9600X, RADV 26.3.1, build ede9bc9 (pr38 + this PR + #52 on 37bb30f), deps/fsr4 from ./setup.sh fsr4 (amd_fidelityfx_upscaler_dx12.dll, system32/amdxcffx64.dll 4.1.1, amdxc64.dll bridge from GE-Proton11-16).

On series-s, VICTORY_FSR_HOST=1 does serve the title's own upscaling:

victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host
  provider="4.1.2" render=[1280, 720] output=[1920, 1080] flags=0x29

VICTORY_OUTPUT=1920x1080, no VICTORY_FSR_4K, nothing forced: the title picks FidelityFX itself on Series S, so there is a caller to serve, and the render/output pair is its own (720p to 1080p) rather than the 4K pair FSR_4K is tied to.

The same switch is what fixes black 3D on that profile. Without it, the title loads the console DLL itself and the policy refuses the host one:

WARN victory_hle::modules::kernel: a host DLL outside the host policy:
     refused dll="amd_fidelityfx_upscaler_xbox.dll"
title dll  amd_fidelityfx_upscaler_xbox.dll at 0x6fffee8c0000 (loaded by the title)

The console upscaler then renders nothing usable on a PC: the interface draws, the 3D does not (2D only). With VICTORY_FSR_HOST=1 the log has zero refused dll lines, the context above is created, and the scene is there. Forcing VICTORY_UPSCALER=6 (the title's own upscaler instead of FidelityFX) also brings the picture back, so the failure is in which upscaler runs, not in geometry or memory.

Measured, same place, all on this card:

profile fps frame preparing gpu_wait title RAM/VRAM
series-x, 540p to 1080p (FSR_4K=performance) 11-15 67-89 ms 5-12 ms 42-45 ms 11.0 / 1.0 GB
series-s, own upscaler, 720p 16.06 62.3 ms 6.3 ms — 7.2 / — GB
series-s, FSR_HOST, 720p to 1080p 13.93 71.8 ms 13.7 ms 25.3 ms 6.9 / 1.0 GB

So on this card Series S is the better base for FSR 4: 720p rendered instead of 540p at the same frame rate, and ~4 GB less title memory. FSR 4 there costs about 10 ms a frame over the title's own upscaler and looks right to the person at the screen; no artifacts reported at the plane join.

One thing that would have saved me time: VICTORY_FSR_4K refuses Series S outright (run.rs: "FSR requires Series X mode"), and the README's FSR row does not say what to use instead. Saying "Series S: use VICTORY_FSR_HOST" would be enough.

No game files, screenshots or captures included.

**@⁠YaBulochka** on GitHub · 2026-12-01 09:33 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/51#issuecomment-7306882782) This switch is the difference between a working and a black Series S here, and it does what it says on that profile — worth a README row. **Environment.** RX 7600 XT (8 GB, RDNA3), Ryzen 5 9600X, RADV 26.3.1, build `ede9bc9` (`pr38` + this PR + #52 on `37bb30f`), `deps/fsr4` from `./setup.sh fsr4` (`amd_fidelityfx_upscaler_dx12.dll`, `system32/amdxcffx64.dll` 4.1.1, `amdxc64.dll` bridge from GE-Proton11-16). **On `series-s`, `VICTORY_FSR_HOST=1` does serve the title's own upscaling:** ``` victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host provider="4.1.2" render=[1280, 720] output=[1920, 1080] flags=0x29 ``` `VICTORY_OUTPUT=1920x1080`, no `VICTORY_FSR_4K`, nothing forced: the title picks FidelityFX itself on Series S, so there is a caller to serve, and the render/output pair is its own (720p to 1080p) rather than the 4K pair `FSR_4K` is tied to. **The same switch is what fixes black 3D on that profile.** Without it, the title loads the console DLL itself and the policy refuses the host one: ``` WARN victory_hle::modules::kernel: a host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll" title dll amd_fidelityfx_upscaler_xbox.dll at 0x6fffee8c0000 (loaded by the title) ``` The console upscaler then renders nothing usable on a PC: the interface draws, the 3D does not (2D only). With `VICTORY_FSR_HOST=1` the log has zero `refused dll` lines, the context above is created, and the scene is there. Forcing `VICTORY_UPSCALER=6` (the title's own upscaler instead of FidelityFX) also brings the picture back, so the failure is in which upscaler runs, not in geometry or memory. **Measured, same place, all on this card:** | profile | fps | frame | preparing | gpu_wait | title RAM/VRAM | |---|---:|---:|---:|---:|---| | `series-x`, 540p to 1080p (`FSR_4K=performance`) | 11-15 | 67-89 ms | 5-12 ms | 42-45 ms | 11.0 / 1.0 GB | | `series-s`, own upscaler, 720p | 16.06 | 62.3 ms | 6.3 ms | — | 7.2 / — GB | | `series-s`, `FSR_HOST`, 720p to 1080p | 13.93 | 71.8 ms | 13.7 ms | 25.3 ms | 6.9 / 1.0 GB | So on this card Series S is the better base for FSR 4: 720p rendered instead of 540p at the same frame rate, and ~4 GB less title memory. FSR 4 there costs about 10 ms a frame over the title's own upscaler and looks right to the person at the screen; no artifacts reported at the plane join. One thing that would have saved me time: `VICTORY_FSR_4K` refuses Series S outright (`run.rs`: "FSR requires Series X mode"), and the README's FSR row does not say what to use instead. Saying "Series S: use `VICTORY_FSR_HOST`" would be enough. No game files, screenshots or captures included.
github-bot referenced this pull request from a commit 2026-12-01 20:58:42 +00:00
github manually merged commit a55b426eee 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.