Repository navigation
FidelityFX: add opt-in AMD frame generation to host upscaling - #1917
AwkGrep256 wants to merge 5 commits into
Conversation
The title asks for no frame generation, and main's host FidelityFX module refuses it. A diagnostics switch now generates frames on the host from the title's upscale, as Marvisak#1287 did on its own FidelityFX path: - With VICTORY_FIDELITYFX_FRAMEGEN=1 beside VICTORY_FIDELITYFX_DIR, amd_fidelityfx_framegeneration_dx12.dll is loaded from the same folder and the presenter's swap chain becomes its proxy (RGBA8 only). - At each host upscale, the HLE module hands the upscale's depth, motion vectors and constants to victory_gpu::external::frame_generation_inputs; they feed the next present once the list has run (HostList::defer_after, so no change to submission or reset). - Before each present the generator is configured and given those inputs in the presenter's copy list; the proxy inserts the generated frames during Present. It uses the provider that works from depth and motion vectors (FSR 3 frame generation): frame generation 4 wants view matrices the upscale does not carry. No HUD-less colour is given, so the UI is interpolated with the scene.
8a037ac to
ed89e4a
Compare
|
Automated triage for the maintainers. Needs work: needs the maintainer's decision. The new head ( About the earlier ask for generated presents: the author's logs ( 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 ( Generated by Claude Code |
|
@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
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 |
|
@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. |
d515c1d to
33c50dc
Compare
🚀 Tested on another fork: Frame Generation 3 doubles what's on screenThis PR's frame generation now runs on avatarmanz/VIctory-7900XTX: avatarmanz/VIctory-7900XTX#53.
RX 9070 XT, Ryzen 7 9800X3D, 32 GB, Series X profile, FidelityFX SDK 2.4.0. 📜 Log evidenceOur own log lines from the measured runs (click a mode): C · FSR 1440p → 2160p: render 2560×1440 → 3840×2160 · 20.0 fps rendered
E · FSR 1440p + FG 3: FG 3: proxy 3.1.7, generator 3.1.6, ×2 · 19.9 fps rendered
|
|
@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:
🔒 It stays opt-in ( |
Important
Add optional frame generation to the existing PC FSR path.
mainalready upscales individual frames. This Windows D3D12 PR adds the FidelityFX proxy swap chain and feeds it depth and motion from the existing upscale so the host can generate intermediate frames.✅ Verified on Windows: the proxy swap chain was created and presented at 4K. Still to verify: generated frames during gameplay, pacing, image quality, and overhead. The feature defaults off and can be tried with
VICTORY_FIDELITYFX_FRAMEGEN=1.This replaces the closed #1287 and can merge independently of the Series X switches in #1793. Passing Windows CI
Implementation
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)