FidelityFX: add opt-in AMD frame generation to host upscaling #1917
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1917
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1917"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@AwkGrep256 on GitHub · 2026-11-25 00:54 UTC · original
AwkGrep256:fidelityfx-framegen→main· +892 −7 · 6 files · 5 commits · openImplementation
With
VICTORY_FIDELITYFX_FRAMEGEN=1andVICTORY_FIDELITYFX_DIRpointing to the SDK'sKits/FidelityFX/signedbinfolder, the D3D12 presenter uses the FidelityFX proxy swap chain for RGBA8 output. The HLE upscale hands off depth, motion vectors, and frame constants after its command list is submitted. The presenter uses those inputs to prepare interpolation for the next present. The path uses the FSR 3 interpolation API, which takes the inputs available from the upscale. HUD-less color is unavailable, so the UI is included in interpolation.Windows runtime verification
RX 9070 XT, Series X profile, FidelityFX SDK 2.4.0.
4.0.03840 × 2160, RGBA84.1.2,1920 × 1080to3840 × 2160amdxc64.dll+0x861b9f. The same crash was observed without FidelityFX.The Series X runtime check used the opt-in upscaler and render-scale switches from #1793. This PR targets
maindirectly and reuses whichever host upscaling calls the title makes.Windows checks
All three checks passed locally on the PR head.
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --locked(including the xtask asset-policy tests)@Marvisak on GitHub · 2026-11-25 08:18 UTC · original · edited 2026-11-26 01:19 UTC
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. The new head (
33c50dc) mergesmainand now merges cleanly. Thehost.rsconflict is gone. It addsd900d3c(framegen::version_three), which picks the built-in Frame Generation 3.x providers explicitly instead of the 4.0.2 default, which needs view matrices. The feature stays diagnostics-only and opt-in (VICTORY_FIDELITYFX_FRAMEGEN). It loadsamd_fidelityfx_framegeneration_dx12.dllfromVICTORY_FIDELITYFX_DIR, the same waymainalready loads the upscaler inmodules/fidelityfx.rs.About the earlier ask for generated presents: the author's logs (
presents=6for 3 rendered frames, proxy 3.1.7 / generator 3.1.6) come from ports of this code to two forks, run together with the title-patching switches from #1793. They are not from this head onmain. A short log from this exact head would settle it.Whether VIctory should carry host frame generation at all is still the maintainer's call. HUD text is interpolated with the scene, and the author notes it smears.
CI: passing (
check).Generated by Claude Code
@AwkGrep256 on GitHub · 2026-11-25 14:37 UTC · original
@Marvisak I verified generated frames in the title on an RX 9070 XT in Series X mode. The test used this PR's framegen code ported to the Belobug AMD fork, with explicit selection of the SDK's 3.x providers. The runtime-tested commit is
e230ec2on that fork port.0.The earlier run selected generator 4.0.2 by default, which requires view matrices the integration does not provide. The follow-up enumerates the SDK's built-in versions and passes explicit IDs for the two 3.x contexts. The provider-selection follow-up is in the AMD fork PR. This comment reports the tested port; the upstream head of #1917 is still
ed89e4a. AMD fork PR · Series X FSR PR #1793@AwkGrep256 on GitHub · 2026-11-25 19:50 UTC · original
@Marvisak, I’ve opened #2751 as a draft follow-up for AMD Frame Generation 4.0.2. A controlled Series X run captured camera orientation from the title’s velocity pass, and the RX 9070 XT reported the 4.0.2 generator and 4.0.0 proxy. The draft has the capture evidence and a checklist for verifying camera matching and generated presents in-game.
For #1917, the remaining runtime check is generated presents on its exact 3.x PR head. I’ll review the 4.0.2 results in #2751 as they come in.
@AwkGrep256 on GitHub · 2026-11-26 00:29 UTC · original · edited 2026-11-26 00:37 UTC
🚀 Tested on another fork: Frame Generation 3 doubles what's on screen
This PR's frame generation now runs on avatarmanz/VIctory-7900XTX: avatarmanz/VIctory-7900XTX#53.
████████████████3.1.7, generator3.1.6,presents=6for 3 rendered frames.RX 9070 XT, Ryzen 7 9800X3D, 32 GB, Series X profile, FidelityFX SDK 2.4.0.
📜 Log evidence
Our own log lines from the measured runs (click a mode):
C · FSR 1440p → 2160p: render 2560×1440 → 3840×2160 · 20.0 fps rendered
C-20261126-030546E · FSR 1440p + FG 3: FG 3: proxy 3.1.7, generator 3.1.6, ×2 · 19.9 fps rendered
E-20261126-031014@AwkGrep256 on GitHub · 2026-11-26 00:37 UTC · original
@Marvisak, frame generation from this PR now runs on a second codebase (the 7900 XTX fork) on an RX 9070 XT. Both versions are confirmed in the logs:
camera_pose=true🔒 It stays opt-in (
VICTORY_FIDELITYFX_FRAMEGEN, diagnostics build). Logs are in the comment above. A review when you have time would be appreciated.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.