FidelityFX: Series X host FSR and opt-in AMD frame generation #118
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!118
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-118"
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 14:37 UTC · original
AwkGrep256:series-x-host-fidelityfx→main· +2058 −9 · 15 files · 7 commits · open@Belobug I tested this on an RX 9070 XT with the Series X profile. Your AMD branch reached controllable story gameplay. This PR brings in the host FidelityFX bridge, the Series X render-scale switches, and opt-in AMD frame generation.
What was verified
Local test head
e230ec2, based on your71652a2, on title 1.0.2.1 with Windows and FidelityFX SDK 2.4.0.The current PR head,
61f5e3c, merges your newermainat01aadd1and passed the locked Windows diagnostics build. The in-game logs below are from its tested parent,e230ec2.result=0for an upscale.The earlier Series X run with the default 4.0.2 generator reached controllable story gameplay and lasted about 22 minutes before a GPU device hang (
0x887A0006). In that run, generation stayed off because the provider required view matrices that the upscale inputs do not include. The successful follow-up explicitly selects the two 3.x providers returned by the SDK. Lighting and materials still show the fork's existing rendering issues.How to run it
Build with
cargo build --locked --profile diag -p victory --features diagnostics. SetVICTORY_FIDELITYFX_DIRto the SDK'sKits/FidelityFX/signedbin, setVICTORY_UPSCALER=7andVICTORY_FFX_SCALE=0.6667, then launch with--console series-x. SetVICTORY_FIDELITYFX_FRAMEGEN=1to enable generation. The verified run used a warmed cache andVICTORY_AMBIENT=0.12.The host bridge comes from upstream
0b35b7f. The Series X switches come from #1793, and the framegen code comes from #1917 with the presenter and provider selection adapted for this test. Upstream host bridge · FSR PR #1793 · Framegen PR #1917@ -0,0 +96,4 @@header: Header,list: *mut c_void,resources: [Resource; 7],rest: [u32; 18],@gut0to on GitHub · 2026-11-25 14:53 UTC · original
Could we add offset assertions for resources and rest (and the corresponding key fields in the frame-generation descriptions)? These structs mirror an external FidelityFX C ABI and rest packs positional fields; total-size assertions still pass if same-sized fields are reordered, which could silently pass incorrect values to the DLL. AI-assisted review.
@ -0,0 +96,4 @@header: Header,list: *mut c_void,resources: [Resource; 7],rest: [u32; 18],@AwkGrep256 on GitHub · 2026-11-25 16:24 UTC · original
Thanks for spotting that. I added the field-offset assertions in
531c065and checked them against the SDK 2.4.0 headers. I also verified that swapping depth and motion preserves the descriptor size, so the old assertion would miss that regression.@gut0to on GitHub · 2026-11-25 14:53 UTC · original · reviewed
AI-assisted review: I checked the manually mirrored C ABI declarations and their current layout assertions.
@AwkGrep256 on GitHub · 2026-11-26 21:16 UTC · original
🧪 Request for a 64 GB gameplay check
@Belobug, @thejacte, and @0xmp3, would any of you have time for a short FidelityFX test on your 64 GB setups? @alexdeliu, your 31 GB run on
a-publieris also a useful comparison. Which branch would you use as the base for a refreshed port?The head of this PR is the older FG3 port. The test branch at
cf6ab2b7combines Belobug main4f62c2a5with the newer FSR and FG3/FG4 code. On RX 9070 XT with 32 GB RAM, both upscale resolutions reached a successful SDK dispatch. A same-scene test with more memory headroom would help us evaluate the picture and frame pacing.Setup · Windows diagnostics build, Series X, AMD FidelityFX SDK 2.4.0 signed DX12 DLL folder in
VICTORY_FIDELITYFX_DIR. UseVICTORY_UPSCALER=7,VICTORY_FFX_SCALE=0.6666667for 1440p or0.5for 1080p, andVICTORY_FIDELITYFX_FRAMEGEN=1for FG3 or4for FG4. Leave the framegen switch unset for the baseline.VICTORY_HAIR=1enables hair. LeaveVICTORY_PRESENT_TARGETunset so the game presents the normal frame.Even one run helps. Please share the commit, GPU, RAM, scene, and the first upscale or generated-frame log line. A short crash summary is enough if it exits. Related native settings tests are in #274.
@thejacte on GitHub · 2026-11-26 22:28 UTC · original
Results from a 64 GB machine, priorities 1 and 2.
Setup
belobug-native-fsr-refreshatcf6ab2b, diagnostics build, Series X. One local-only commit on top lets our imported save load; it touches no rendering code.VICTORY_UPSCALER=7,VICTORY_FFX_SCALE=0.6666667.VICTORY_PRESENT_TARGET,VICTORY_HAIRandVICTORY_AMBIENT.Results
None of the runs crashed or exited by itself; each ended when we closed the game.
=1)=4)How to read the table:
First log lines
The flicker seen with FG3 and not with FG4 lines up with
camera_pose=falsevstrue, so FG4's camera-matched inputs look like the fix for it.Not run:
On the base branch: on this card, Belobug's
rx9070xt(cd8dfc0) rendered world frames at about 59 ms in the same place, against 123-150 ms here. That run used its own default settings, not this FSR setup, but it's still about twice as fast, so it might be worth having the port there as well. The picture on this branch, though, especially lighting and colours, looked better to us than onrx9070xt. Belobug'srx9070xtalready carries FSR 4.1.2 to 4K (-Fsr4K). That's for Belobug to decide; we're glad to run it on either.@AwkGrep256 on GitHub · 2026-11-26 23:00 UTC · original
Thanks a lot, @thejacte. The report format was great. Having the exact build, same scene, two FG-off runs and provider logs made it much easier to compare. You reproduced the FG3 compass flicker we saw, and the moving trees give us another thing to check. We're working on the FG3 flicker, starting with how the HUD is handled.
If you have time for one more run, could you try 1080p → 4K with frame generation off on the same build and save? Set
VICTORY_FFX_SCALE=0.5and leaveVICTORY_FIDELITYFX_FRAMEGENunset. On our run we saw bright speckles or a glow near the top and bottom of the screen during camera movement. A slow turn and a look up toward the sky would make a good comparison. Whether you see it at all is the main thing.If you're up for a second check, native 4K → 4K through host FSR is optional. On the same tested
cf6ab2bbuild, keepVICTORY_UPSCALER=7, setVICTORY_FFX_SCALE=1.0and leave FG off. Our build hit a breakpoint during renderer startup in that mode. Just knowing whether it reaches the scene or stops on launch would be enough. A short log excerpt would be great if it stops.@tightfall's port in #361 also has an optional change for the present wait on
a-publier. Your results are a good reference for the flicker work. No pressure to do either extra run. Thanks again for the time you've already put into this.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.