Repository navigation
FidelityFX: add experimental AMD Frame Generation 4.0.2 camera inputs - #2751
AwkGrep256 wants to merge 12 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.
|
Read through the additions: the camera-sample capture is diagnostics-gated and double-keyed on the known 1.0.2.1 velocity-pass shader pair + the fullscreen-triangle heuristic (count==3, instances==1), so ordinary draws are untouched when the knobs are off. VICTROY_TRACE_CBV parsing warns on malformed input rather than guessing. Two soft spots worth noting: the hash-keyed identification is build-specific (a title update silently stops matching - fine for a probe, worth a log line when FRAMEGEN is on but no sample ever matches), and this is unverifiable without the title + a FF4 proxy, so live testing is on whoever runs it. |
|
@kotekompotek, thanks for checking the camera capture path. I added a one-time warning in Clippy and all five focused framegen tests passed. The in-game check with the 4.0.0 proxy is still pending. |
🧠 Tested on another fork: Frame Generation 4.0.2 with the camera runsThis PR's 4.0.2 path now runs on avatarmanz/VIctory-7900XTX: avatarmanz/VIctory-7900XTX#53.
RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 9800X3D, 32 GB, Series X profile. 📜 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
F · FSR 1440p + FG 4.0.2: FG 4.0.2: proxy 4.0.0, generator 4.0.2, camera_pose=true, ×2 · 17.9 fps rendered
|
|
@Marvisak, a follow-up run on avatarmanz’s fork PR #53, head
Brief stalls occurred with FG off and with FG 4.0.2 on. Input-to-display latency remains unmeasured. The 1080p lighting artifact showed up with FG off and was absent in the 1440p comparison. The FG 3 crash trigger is still unconfirmed. This may also help with the HUD discussion on #1917. Results from the same camera pan on the upstream head or on a 7900 XTX with FG 3 would be welcome. |
@Marvisak, this is a draft follow-up to #1917 for review and testing. I’ll review the camera-to-upscale pairing and the first in-game results before marking it ready.
Note
Validation progress · 3 of 6 milestones
🟩 🟩 🟩 ⬜ ⬜ ⬜
✅ Camera data captured · ✅ AMD providers verified · ✅ Local Windows checks passed
⏳ Verify camera matching in-game · ⏳ Count generated presents · ⏳ Measure quality, pacing, and overhead
What this adds
#1917 supplies depth and motion vectors to the analytical frame generator. AMD Frame Generation 4.0.2 also needs the game’s world-space camera position and orientation. This draft reads a camera candidate from the title’s velocity pass and checks its viewport and projection jitter against the host FidelityFX upscale in submission order.
VICTORY_FIDELITYFX_FRAMEGEN=4requests the experimental 4.0.2 generator and 4.0.0 swap-chain proxy. If a present has no unique matching camera sample, it presents an ordinary frame.=1still selects the 3.x path.🔍 Status and evidence
camera_pose=trueon a successful prepare.8ecb79c.Related work
🧪 Try it on your GPU
@Dufftwt, if you're interested, a second AMD run would help check whether the camera sample lines up with the host upscale and whether 4.0.2 presents generated frames. Anyone else with compatible hardware is welcome to try it too.
Use a Windows DX12 diagnostics build, AMD FidelityFX SDK 2.4.0, and a supported AMD GPU. Enable the host upscaler and set
VICTORY_FIDELITYFX_FRAMEGEN=4. Use the same checkpoint and render scale for comparisons. Please include the commit and provider versions and report whethercamera_pose=trueand generated presents appear. A short excerpt with those lines is enough.The diff against
mainincludes #1917 because that PR is still open. For the follow-up alone, compare the 4.0.2 branch against the #1917 head. This draft is for validation alongside #1917.