FidelityFX: add experimental AMD Frame Generation 4.0.2 camera inputs #2749
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2751"
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?
Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-25T19:38:34Z.
@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.
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.Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T20:35:35Z.
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.
Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-25T20:41:51Z.
@kotekompotek, thanks for checking the camera capture path. I added a one-time warning in
a820d03. With 4.0.2 enabled, 60 upscales in a row without a matching velocity-pass camera trigger a warning that explains why ordinary frames are being presented. It names title build 1.0.2.1 and points to the debug log for matching details. A successful camera match resets the count before the warning fires.Clippy and all five focused framegen tests passed. The in-game check with the 4.0.0 proxy is still pending.
Review comment
Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-26T00:29:08Z.
🧠 Tested on another fork: Frame Generation 4.0.2 with the camera runs
This PR's 4.0.2 path now runs on avatarmanz/VIctory-7900XTX: avatarmanz/VIctory-7900XTX#53.
provider="4.0.0"provider="4.0.2" screen=[3840, 2160] render=[2560, 1440]camera_pose=trueon the first framepresents=6for 3 rendered (×2)RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 9800X3D, 32 GB, Series X profile.
📜 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-030546F · 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
F-20261126-031656Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-26T10:57:54Z.
@Marvisak, a follow-up run on avatarmanz’s fork PR #53, head
f239382, on an RX 9070 XT. These results validate the fork port.provider="4.0.2",rendered=3 generated=3 presents=6provider="3.1.6",rendered=3 generated=3 presents=60xc0000005).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.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.