FidelityFX: Series X host FSR and opt-in AMD frame generation #118

Open
github-bot wants to merge 7 commits from github-bot/gh-118 into main AGit
Owner

@⁠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 your 71652a2, on title 1.0.2.1 with Windows and FidelityFX SDK 2.4.0.

The current PR head, 61f5e3c, merges your newer main at 01aadd1 and passed the locked Windows diagnostics build. The in-game logs below are from its tested parent, e230ec2.

Check Observed in the title
Series X selects host FSR Both runtime signatures matched and the patch selected FidelityFX.
1440p → 4K upscale FSR 4.1.2 initialized at 2560×1440 → 3840×2160. The SDK returned result=0 for an upscale.
Framegen providers The SDK's 3.1.6 generator and 3.1.7 proxy swap chain were selected.
Generated frames 3 rendered + 3 generated = 6 presents in the logged verification sample.
Game FPS Several gameplay samples around 4–5 FPS. The VIctory counter measures rendered frames. Sustained presentation FPS and input latency are separate measurements.
FidelityFX: upscaler context on the host provider="4.1.2" … render=[2560, 1440] output=[3840, 2160]
FidelityFX: first successful host upscale result=0 render=[2560, 1440]
FidelityFX frame generation: proxy swap chain provider="3.1.7"
FidelityFX frame generation: generator for the upscaled frames provider="3.1.6" screen=[3840, 2160] render=[2560, 1440]
FidelityFX frame generation: generated frames frame=5403 rendered=3 continuous=2 generated=3 presents=6 waited=0

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. Set VICTORY_FIDELITYFX_DIR to the SDK's Kits/FidelityFX/signedbin, set VICTORY_UPSCALER=7 and VICTORY_FFX_SCALE=0.6667, then launch with --console series-x. Set VICTORY_FIDELITYFX_FRAMEGEN=1 to enable generation. The verified run used a warmed cache and VICTORY_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

**@⁠AwkGrep256** on GitHub · 2026-11-25 14:37 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118) `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 your `71652a2`, on title 1.0.2.1 with Windows and FidelityFX SDK 2.4.0. The current PR head, `61f5e3c`, merges your newer `main` at `01aadd1` and passed the locked Windows diagnostics build. The in-game logs below are from its tested parent, `e230ec2`. | Check | Observed in the title | | --- | --- | | Series X selects host FSR | Both runtime signatures matched and the patch selected FidelityFX. | | 1440p → 4K upscale | FSR 4.1.2 initialized at **2560×1440 → 3840×2160**. The SDK returned `result=0` for an upscale. | | Framegen providers | The SDK's **3.1.6 generator** and **3.1.7 proxy swap chain** were selected. | | Generated frames | **3 rendered + 3 generated = 6 presents** in the logged verification sample. | | Game FPS | Several gameplay samples around 4–5 FPS. The VIctory counter measures rendered frames. Sustained presentation FPS and input latency are separate measurements. | ```text FidelityFX: upscaler context on the host provider="4.1.2" … render=[2560, 1440] output=[3840, 2160] FidelityFX: first successful host upscale result=0 render=[2560, 1440] FidelityFX frame generation: proxy swap chain provider="3.1.7" FidelityFX frame generation: generator for the upscaled frames provider="3.1.6" screen=[3840, 2160] render=[2560, 1440] FidelityFX frame generation: generated frames frame=5403 rendered=3 continuous=2 generated=3 presents=6 waited=0 ``` 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`. Set `VICTORY_FIDELITYFX_DIR` to the SDK's `Kits/FidelityFX/signedbin`, set `VICTORY_UPSCALER=7` and `VICTORY_FFX_SCALE=0.6667`, then launch with `--console series-x`. Set `VICTORY_FIDELITYFX_FRAMEGEN=1` to enable generation. The verified run used a warmed cache and `VICTORY_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](https://github.com/Marvisak/VIctory/commit/0b35b7fe7d728c9a9c205cb3719a0f11744321ce) · [FSR PR #1793](https://github.com/Marvisak/VIctory/pull/1793) · [Framegen PR #1917](https://github.com/Marvisak/VIctory/pull/1917)
Keep Belobug shader and command scheduling changes. Backport the host upscaling bridge from 0b35b7f for local testing.
Apply the diagnostics and loader code from upstream PR #1793 at 0c9187d.
Use the AMD fork completion and presentation paths for the local frame generation port. Hardware validation is pending.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:07 +00:00
@ -0,0 +96,4 @@
header: Header,
list: *mut c_void,
resources: [Resource; 7],
rest: [u32; 18],
Author
Owner

@⁠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.

**@⁠gut0to** on GitHub · 2026-11-25 14:53 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118#discussion_r4696693269) 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],
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-25 16:24 UTC · original

Thanks for spotting that. I added the field-offset assertions in 531c065 and 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.

**@⁠AwkGrep256** on GitHub · 2026-11-25 16:24 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118#discussion_r4697661109) Thanks for spotting that. I added the field-offset assertions in `531c065` and 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.
Author
Owner

@⁠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.

**@⁠gut0to** on GitHub · 2026-11-25 14:53 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118#pullrequestreview-6059931471) · **reviewed** AI-assisted review: I checked the manually mirrored C ABI declarations and their current layout assertions.
Author
Owner

@⁠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-publier is 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 cf6ab2b7 combines Belobug main 4f62c2a5 with 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.

Priority Run What to look for
1 1440p → 4K, FG off Baseline rendered FPS and frame pacing in the prison room.
2 Same scene, FG3, then FG4.0.2 if supported Pan the camera with HUD text visible. Does the text flicker? Does either mode exit after a few minutes?
3 1080p → 4K, FG off Look for bright speckling near the screen edges in motion.
Optional 4K input → 4K output through FSR Known startup-risk case. A separate launch with a copied profile is enough.

Setup · Windows diagnostics build, Series X, AMD FidelityFX SDK 2.4.0 signed DX12 DLL folder in VICTORY_FIDELITYFX_DIR. Use VICTORY_UPSCALER=7, VICTORY_FFX_SCALE=0.6666667 for 1440p or 0.5 for 1080p, and VICTORY_FIDELITYFX_FRAMEGEN=1 for FG3 or 4 for FG4. Leave the framegen switch unset for the baseline. VICTORY_HAIR=1 enables hair. Leave VICTORY_PRESENT_TARGET unset 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.

**@⁠AwkGrep256** on GitHub · 2026-11-26 21:16 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118#issuecomment-7203562440) ## 🧪 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-publier` is 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 `cf6ab2b7`](https://github.com/AwkGrep256/VIctory-Belobug-AMD/tree/belobug-native-fsr-refresh) combines Belobug main `4f62c2a5` with 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. | Priority | Run | What to look for | | --- | --- | --- | | 1 | **1440p → 4K**, FG off | Baseline rendered FPS and frame pacing in the prison room. | | 2 | Same scene, **FG3**, then **FG4.0.2** if supported | Pan the camera with HUD text visible. Does the text flicker? Does either mode exit after a few minutes? | | 3 | **1080p → 4K**, FG off | Look for bright speckling near the screen edges in motion. | | Optional | **4K input → 4K output through FSR** | Known startup-risk case. A separate launch with a copied profile is enough. | **Setup** · Windows diagnostics build, Series X, AMD FidelityFX SDK 2.4.0 signed DX12 DLL folder in `VICTORY_FIDELITYFX_DIR`. Use `VICTORY_UPSCALER=7`, `VICTORY_FFX_SCALE=0.6666667` for 1440p or `0.5` for 1080p, and `VICTORY_FIDELITYFX_FRAMEGEN=1` for FG3 or `4` for FG4. Leave the framegen switch unset for the baseline. `VICTORY_HAIR=1` enables hair. Leave `VICTORY_PRESENT_TARGET` unset 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.
Author
Owner

@⁠thejacte on GitHub · 2026-11-26 22:28 UTC · original

Results from a 64 GB machine, priorities 1 and 2.

Setup

  • Commit: your belobug-native-fsr-refresh at cf6ab2b, diagnostics build, Series X. One local-only commit on top lets our imported save load; it touches no rendering code.
  • SDK: FidelityFX SDK 2.4.0 signed DX12 DLLs, VICTORY_UPSCALER=7, VICTORY_FFX_SCALE=0.6666667.
  • Not set: VICTORY_PRESENT_TARGET, VICTORY_HAIR and VICTORY_AMBIENT.
  • Machine: RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 9800X3D, 64 GB, Windows 11.
  • Scene: every run is the same save and place, outdoors at the park and parking lot by the hotel in Washington Beach, not the prison room. There are trees moving in the wind and the compass is on screen.

Results

None of the runs crashed or exited by itself; each ended when we closed the game.

Run Rendered ms/frame, median (fps) Middle 80 % of 5 s samples Length Peak commit Seen
1440p → 4K, FG off 148 (6.7) 124-182 ms 8.5 min 30.7 GB no flicker noticed
1440p → 4K, FG3 (=1) 143 (7.0) 102-188 ms 6.5 min 30.1 GB HUD compass flickers when looking up at the sky and turning with the right stick; trees moving in the wind flicker a lot: their light and shadow go away and come back
1440p → 4K, FG4 (=4) 150 (6.7) 130-178 ms 8 min 31.6 GB neither flicker
1440p → 4K, FG off, again 123 (8.1) 100-150 ms 6 min 29.2 GB neither flicker (to confirm FG off with the same checks)

How to read the table:

  • Rendered frames only. The ms/frame figures are VIctory's 5-second averages over world frames, so they are rendered frames only. We did not measure presented FPS, frame pacing or input latency.
  • FG costs nothing measurable. The two FG-off runs differ by 25 ms, more than any FG run differs from them.
  • A longer run. A 14-minute FG3 run, left idle in the same place, didn't exit either. It peaked at 37.5 GB committed.

First log lines

FidelityFX: upscaler context on the host provider="4.1.2" … render=[2560, 1440] output=[3840, 2160] flags=0x29
FidelityFX: first successful host upscale result=0 render=[2560, 1440]

FG3:
FidelityFX frame generation: proxy swap chain provider="3.1.7"
FidelityFX frame generation: generator for the upscaled frames provider="3.1.6" screen=[3840, 2160] render=[2560, 1440]
FidelityFX frame generation: first upscaled frame's depth and motion given to it … camera_pose=false
FidelityFX frame generation: generated frames … rendered=3 continuous=2 generated=3 presents=6 waited=0

FG4:
FidelityFX frame generation: proxy swap chain provider="4.0.0"
FidelityFX frame generation: generator for the upscaled frames provider="4.0.2" screen=[3840, 2160] render=[2560, 1440]
FidelityFX frame generation: first upscaled frame's depth and motion given to it … camera_pose=true
FidelityFX frame generation: generated frames … rendered=3 continuous=2 generated=3 presents=6 waited=0

The flicker seen with FG3 and not with FG4 lines up with camera_pose=false vs true, so FG4's camera-matched inputs look like the fix for it.

Not run:

  • 1080p → 4K (priority 3);
  • 4K → 4K (the optional 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 on rx9070xt. Belobug's rx9070xt already carries FSR 4.1.2 to 4K (-Fsr4K). That's for Belobug to decide; we're glad to run it on either.

**@⁠thejacte** on GitHub · 2026-11-26 22:28 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118#issuecomment-7204711143) Results from a 64 GB machine, priorities 1 and 2. **Setup** - **Commit:** your `belobug-native-fsr-refresh` at `cf6ab2b`, diagnostics build, Series X. One local-only commit on top lets our imported save load; it touches no rendering code. - **SDK:** FidelityFX SDK 2.4.0 signed DX12 DLLs, `VICTORY_UPSCALER=7`, `VICTORY_FFX_SCALE=0.6666667`. - **Not set:** `VICTORY_PRESENT_TARGET`, `VICTORY_HAIR` and `VICTORY_AMBIENT`. - **Machine:** RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 9800X3D, 64 GB, Windows 11. - **Scene:** every run is the same save and place, outdoors at the park and parking lot by the hotel in Washington Beach, not the prison room. There are trees moving in the wind and the compass is on screen. **Results** None of the runs crashed or exited by itself; each ended when we closed the game. | Run | Rendered ms/frame, median (fps) | Middle 80 % of 5 s samples | Length | Peak commit | Seen | |---|---|---|---|---|---| | 1440p → 4K, FG off | 148 (6.7) | 124-182 ms | 8.5 min | 30.7 GB | no flicker noticed | | 1440p → 4K, FG3 (`=1`) | 143 (7.0) | 102-188 ms | 6.5 min | 30.1 GB | **HUD compass flickers** when looking up at the sky and turning with the right stick; **trees moving in the wind flicker a lot**: their light and shadow go away and come back | | 1440p → 4K, FG4 (`=4`) | 150 (6.7) | 130-178 ms | 8 min | 31.6 GB | neither flicker | | 1440p → 4K, FG off, again | 123 (8.1) | 100-150 ms | 6 min | 29.2 GB | neither flicker (to confirm FG off with the same checks) | How to read the table: - **Rendered frames only.** The ms/frame figures are VIctory's 5-second averages over world frames, so they are rendered frames only. We did not measure presented FPS, frame pacing or input latency. - **FG costs nothing measurable.** The two FG-off runs differ by 25 ms, more than any FG run differs from them. - **A longer run.** A 14-minute FG3 run, left idle in the same place, didn't exit either. It peaked at 37.5 GB committed. **First log lines** ```text FidelityFX: upscaler context on the host provider="4.1.2" … render=[2560, 1440] output=[3840, 2160] flags=0x29 FidelityFX: first successful host upscale result=0 render=[2560, 1440] FG3: FidelityFX frame generation: proxy swap chain provider="3.1.7" FidelityFX frame generation: generator for the upscaled frames provider="3.1.6" screen=[3840, 2160] render=[2560, 1440] FidelityFX frame generation: first upscaled frame's depth and motion given to it … camera_pose=false FidelityFX frame generation: generated frames … rendered=3 continuous=2 generated=3 presents=6 waited=0 FG4: FidelityFX frame generation: proxy swap chain provider="4.0.0" FidelityFX frame generation: generator for the upscaled frames provider="4.0.2" screen=[3840, 2160] render=[2560, 1440] FidelityFX frame generation: first upscaled frame's depth and motion given to it … camera_pose=true FidelityFX frame generation: generated frames … rendered=3 continuous=2 generated=3 presents=6 waited=0 ``` The flicker seen with FG3 and not with FG4 lines up with `camera_pose=false` vs `true`, so FG4's camera-matched inputs look like the fix for it. Not run: - 1080p → 4K (priority 3); - 4K → 4K (the optional 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 on `rx9070xt`. Belobug's `rx9070xt` already carries FSR 4.1.2 to 4K (`-Fsr4K`). That's for Belobug to decide; we're glad to run it on either.
Author
Owner

@⁠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.5 and leave VICTORY_FIDELITYFX_FRAMEGEN unset. 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 cf6ab2b build, keep VICTORY_UPSCALER=7, set VICTORY_FFX_SCALE=1.0 and 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.

**@⁠AwkGrep256** on GitHub · 2026-11-26 23:00 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118#issuecomment-7205172847) 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.5` and leave `VICTORY_FIDELITYFX_FRAMEGEN` unset. 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 `cf6ab2b` build, keep `VICTORY_UPSCALER=7`, set `VICTORY_FFX_SCALE=1.0` and 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](https://git.gtahub.st/github/Belobug--VIctory-Belobug-AMD/pulls/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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/118/head:github-bot/gh-118'
git switch 'github-bot/gh-118'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-118'
git switch 'github-bot/gh-118'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-118'
git switch 'github-bot/gh-118'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-118'
git switch 'main'
git merge --squash 'github-bot/gh-118'
git switch 'main'
git merge --ff-only 'github-bot/gh-118'
git switch 'main'
git merge 'github-bot/gh-118'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.