run: serve the title's console FidelityFX from the PC upscaler at any output size (VICTORY_FSR_PC=1) #5

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

@⁠lyhorizon on GitHub · 2026-12-01 18:18 UTC · original
lyhorizon:series-s-fsr-pc → main · +27 −1 · 1 files · 1 commits · closed without merging

What this does

Adds one branch to apps/victory/src/run.rs: when VICTORY_FSR_PC=1 is set and no 4K
profile was asked for, the run calls
victory_hle::modules::fidelityfx::use_host_dir(dir) and skips without_upscaler().

use_host_dir registers the fidelityfx HLE module (modules/mod.rs,
if fidelityfx::serving()), so every call the title makes to its console FidelityFX is
served by AMD's PC upscaler at the title's own output size. Frame generation then has
the depth and motion vectors it needs, because it is fed by that upscaling.

Why it is needed

Today PC FSR exists only through the 4K frontend:

apps/victory/src/run.rs:56   "FSR 4K requires Series X mode"
crates/victory-gpu/src/framegen.rs:377
    "no PC FSR upscaler (-Fsr3 or -Fsr4K, VICTORY_FSR_4K), whose depth and motion vectors it needs: not used"

On Series S (720p render → 1080p output) that leaves neither FSR nor frame generation.
eikkapine's fork carries a second path for exactly this case; this PR brings that one
branch over, unchanged in behaviour.

How to run it

.\scripts\play.ps1 -Exe <exe> -Console series-s -RayTracing -More @{
    VICTORY_FSR_PC        = '1'
    VICTORY_FSR_4K        = '0'
    VICTORY_FSR_VERSION   = '4'
    VICTORY_FSR_FRAMEGEN  = '1'
    VICTORY_DISPLAY_MODE  = '1920x1080'
    VICTORY_FRAME_INTERVAL_MS = '33.333'
}

[paths].fidelityfx_dir (or VICTORY_FIDELITYFX_DIR) must hold
amd_fidelityfx_upscaler_dx12.dll and, for frame generation,
amd_fidelityfx_framegeneration_dx12.dll from FidelityFX SDK 2.4.0.

Tested on

RX 7700 XT (12 GB), Ryzen 5 7500F, 32 GB, Windows 11, diag build:

FidelityFX: upscaler versions the SDK offers this adapter  offered=["4.1.2", "3.1.6", "2.3.4"]
FidelityFX: selected PC upscaler ... asked="FSR 4" version="4.1.2"
FidelityFX: upscaler context on the host provider="4.1.2" render=[1280, 720] output=[1920, 1080]
FidelityFX: frame generation loaded; the swap chain is made through it provider="3.1.6"
FidelityFX frame generation: 15 of 15 frames generated
the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53

Render 14–16 fps, about 30 fps presented, 1080p picture, ray tracing on. The 4K frontend
path and the no-upscaler path are untouched.

Known limitation

HUD-less capture does not trigger on this path (0 of them with the HUD-less picture), so
the HUD is interpolated and ghosts; the 4K frontend path is unaffected
(10 of 10 frames generated, 10 of them with the HUD-less picture). The Series S UI
composite pipeline is not matched by the sga_dr_vs_pos_color_tex / default_ps_tex
container names, and tagging it unconditionally (or widening the name list) did not make it
match in my tests — both changes were reverted. If you would prefer this PR to wait for a
HUD-less fix on the Series S path, I am happy to keep it as a draft.

Files changed

  • apps/victory/src/run.rs — 26 added lines, 1 changed line (see patch.diff)

No game files, no assets, no new dependencies.

**@⁠lyhorizon** on GitHub · 2026-12-01 18:18 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/5) `lyhorizon:series-s-fsr-pc` → `main` · +27 −1 · 1 files · 1 commits · closed without merging ## What this does Adds one branch to `apps/victory/src/run.rs`: when `VICTORY_FSR_PC=1` is set and no 4K profile was asked for, the run calls `victory_hle::modules::fidelityfx::use_host_dir(dir)` and skips `without_upscaler()`. `use_host_dir` registers the `fidelityfx` HLE module (`modules/mod.rs`, `if fidelityfx::serving()`), so every call the title makes to its console FidelityFX is served by AMD's PC upscaler **at the title's own output size**. Frame generation then has the depth and motion vectors it needs, because it is fed by that upscaling. ## Why it is needed Today PC FSR exists only through the 4K frontend: ``` apps/victory/src/run.rs:56 "FSR 4K requires Series X mode" crates/victory-gpu/src/framegen.rs:377 "no PC FSR upscaler (-Fsr3 or -Fsr4K, VICTORY_FSR_4K), whose depth and motion vectors it needs: not used" ``` On Series S (720p render → 1080p output) that leaves neither FSR nor frame generation. eikkapine's fork carries a second path for exactly this case; this PR brings that one branch over, unchanged in behaviour. ## How to run it ```powershell .\scripts\play.ps1 -Exe <exe> -Console series-s -RayTracing -More @{ VICTORY_FSR_PC = '1' VICTORY_FSR_4K = '0' VICTORY_FSR_VERSION = '4' VICTORY_FSR_FRAMEGEN = '1' VICTORY_DISPLAY_MODE = '1920x1080' VICTORY_FRAME_INTERVAL_MS = '33.333' } ``` `[paths].fidelityfx_dir` (or `VICTORY_FIDELITYFX_DIR`) must hold `amd_fidelityfx_upscaler_dx12.dll` and, for frame generation, `amd_fidelityfx_framegeneration_dx12.dll` from FidelityFX SDK 2.4.0. ## Tested on RX 7700 XT (12 GB), Ryzen 5 7500F, 32 GB, Windows 11, diag build: ``` FidelityFX: upscaler versions the SDK offers this adapter offered=["4.1.2", "3.1.6", "2.3.4"] FidelityFX: selected PC upscaler ... asked="FSR 4" version="4.1.2" FidelityFX: upscaler context on the host provider="4.1.2" render=[1280, 720] output=[1920, 1080] FidelityFX: frame generation loaded; the swap chain is made through it provider="3.1.6" FidelityFX frame generation: 15 of 15 frames generated the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53 ``` Render 14–16 fps, about 30 fps presented, 1080p picture, ray tracing on. The 4K frontend path and the no-upscaler path are untouched. ## Known limitation HUD-less capture does not trigger on this path (`0 of them with the HUD-less picture`), so the HUD is interpolated and ghosts; the 4K frontend path is unaffected (`10 of 10 frames generated, 10 of them with the HUD-less picture`). The Series S UI composite pipeline is not matched by the `sga_dr_vs_pos_color_tex` / `default_ps_tex` container names, and tagging it unconditionally (or widening the name list) did not make it match in my tests — both changes were reverted. If you would prefer this PR to wait for a HUD-less fix on the Series S path, I am happy to keep it as a draft. ## Files changed - `apps/victory/src/run.rs` — 26 added lines, 1 changed line (see `patch.diff`) No game files, no assets, no new dependencies.
VICTORY_FSR_PC=1 calls fidelityfx::use_host_dir() and skips without_upscaler(), so
Series S (720p -> 1080p) gets PC FSR and frame generation instead of neither. One
branch in apps/victory/src/run.rs; the 4K frontend path is untouched.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 18:23:04 +00:00
Author
Owner

@⁠lyhorizon on GitHub · 2026-12-01 18:18 UTC · original

For anyone trying this, the exact settings and build steps I used.

Build (Windows):

set PATH=<cargo bin>;%PATH%
set RUSTUP_HOME=<rustup home>
set CARGO_HOME=<cargo home>
rem TMP/TEMP must be writable, else link.exe fails with LNK1104
set TMP=E:\tmp
set TEMP=E:\tmp
call "C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvars64.bat"
cargo build --locked --profile diag -p victory --features diagnostics

victory.toml (or VICTORY_FIDELITYFX_DIR) must point at a folder holding
amd_fidelityfx_upscaler_dx12.dll and amd_fidelityfx_framegeneration_dx12.dll
from FidelityFX SDK 2.4.0.

Run (Series S, 1080p, ray tracing, frame generation):

.\scripts\play.ps1 -Exe <game>\game_scarlett_master.exe -Console series-s -RayTracing -SkipIntro -More @{
    VICTORY_FSR_PC              = '1'
    VICTORY_FSR_4K              = '0'
    VICTORY_FSR_VERSION         = '4'
    VICTORY_FSR_FRAMEGEN        = '1'
    VICTORY_DISPLAY_MODE        = '1920x1080'
    VICTORY_FRAME_INTERVAL_MS   = '33.333'
    VICTORY_TEXTURE_MAX         = '1024'
    VICTORY_TEXTURE_KEEP_PERCENT= '60'
    VICTORY_TEXTURE_ROOM_PERCENT= '75'
}

What the log says on my machine (RX 7700 XT, Ryzen 5 7500F, 32 GB, Windows 11):

FidelityFX: upscaler versions the SDK offers this adapter  offered=["4.1.2", "3.1.6", "2.3.4"]
FidelityFX: selected PC upscaler ... asked="FSR 4" version="4.1.2"
FidelityFX: upscaler context on the host provider="4.1.2" render=[1280, 720] output=[1920, 1080]
FidelityFX: frame generation loaded; the swap chain is made through it provider="3.1.6"
FidelityFX frame generation: 15 of 15 frames generated
the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53

14-16 fps rendered, about 30 fps presented.

Draft: I am keeping this as a draft because the HUD-less picture does not trigger on this
path (0 of them with the HUD-less picture), so the HUD ghosts under frame generation. The
4K frontend path is unaffected (10 of 10 frames generated, 10 of them with the HUD-less picture). Happy to finish it once I know how you would like the Series S UI composite
pipeline identified — the sga_dr_vs_pos_color_tex / default_ps_tex names do not match it,
and unconditional tagging did not help in my tests.

**@⁠lyhorizon** on GitHub · 2026-12-01 18:18 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/5#issuecomment-7320737189) For anyone trying this, the exact settings and build steps I used. Build (Windows): ```cmd set PATH=<cargo bin>;%PATH% set RUSTUP_HOME=<rustup home> set CARGO_HOME=<cargo home> rem TMP/TEMP must be writable, else link.exe fails with LNK1104 set TMP=E:\tmp set TEMP=E:\tmp call "C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvars64.bat" cargo build --locked --profile diag -p victory --features diagnostics ``` `victory.toml` (or `VICTORY_FIDELITYFX_DIR`) must point at a folder holding `amd_fidelityfx_upscaler_dx12.dll` and `amd_fidelityfx_framegeneration_dx12.dll` from FidelityFX SDK 2.4.0. Run (Series S, 1080p, ray tracing, frame generation): ```powershell .\scripts\play.ps1 -Exe <game>\game_scarlett_master.exe -Console series-s -RayTracing -SkipIntro -More @{ VICTORY_FSR_PC = '1' VICTORY_FSR_4K = '0' VICTORY_FSR_VERSION = '4' VICTORY_FSR_FRAMEGEN = '1' VICTORY_DISPLAY_MODE = '1920x1080' VICTORY_FRAME_INTERVAL_MS = '33.333' VICTORY_TEXTURE_MAX = '1024' VICTORY_TEXTURE_KEEP_PERCENT= '60' VICTORY_TEXTURE_ROOM_PERCENT= '75' } ``` What the log says on my machine (RX 7700 XT, Ryzen 5 7500F, 32 GB, Windows 11): ``` FidelityFX: upscaler versions the SDK offers this adapter offered=["4.1.2", "3.1.6", "2.3.4"] FidelityFX: selected PC upscaler ... asked="FSR 4" version="4.1.2" FidelityFX: upscaler context on the host provider="4.1.2" render=[1280, 720] output=[1920, 1080] FidelityFX: frame generation loaded; the swap chain is made through it provider="3.1.6" FidelityFX frame generation: 15 of 15 frames generated the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53 ``` 14-16 fps rendered, about 30 fps presented. Draft: I am keeping this as a draft because the HUD-less picture does not trigger on this path (`0 of them with the HUD-less picture`), so the HUD ghosts under frame generation. The 4K frontend path is unaffected (`10 of 10 frames generated, 10 of them with the HUD-less picture`). Happy to finish it once I know how you would like the Series S UI composite pipeline identified — the `sga_dr_vs_pos_color_tex` / `default_ps_tex` names do not match it, and unconditional tagging did not help in my tests.
github-bot closed this pull request 2026-12-04 02:03:00 +00:00
Author
Owner

@⁠ReTerryDavis on GitHub · 2026-12-04 02:01 UTC · original

Closing in favor of #35, which brings PC FSR/DLSS and frame generation to Series S through the standard upscaler flags and launcher without a separate env var. Thanks for the early testing!

**@⁠ReTerryDavis** on GitHub · 2026-12-04 02:01 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/5#issuecomment-7398496568) Closing in favor of #35, which brings PC FSR/DLSS and frame generation to Series S through the standard upscaler flags and launcher without a separate env var. Thanks for the early testing!

Pull request closed

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