FidelityFX: add experimental AMD Frame Generation 4.0.2 camera inputs #2751
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!2751
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@AwkGrep256 on GitHub · 2026-11-25 19:38 UTC · original
AwkGrep256:framegen-4.0.2→main· +1342 −7 · 8 files · 12 commits · draft@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.@kotekompotek on GitHub · 2026-11-25 20:35 UTC · original
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.
@AwkGrep256 on GitHub · 2026-11-25 20:41 UTC · original
@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
@AwkGrep256 on GitHub · 2026-11-26 00:29 UTC · original · edited 2026-11-26 00:37 UTC
🧠 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-031656@AwkGrep256 on GitHub · 2026-11-26 10:57 UTC · original · edited 2026-11-26 11:05 UTC
@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.