Add experimental AMD frame generation test path #1287

Closed
AwkGrep256 wants to merge 18 commits from upstream-pr/1287 into main
AwkGrep256 commented 2026-11-24 17:08:44 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-24T17:08:44Z.


I got AMD frame generation to run in-game on an RX 9070 XT with Proton Experimental. I tested both Series S and Series X. Both used FSR 4.1.1 for upscaling and 3.1.6 for frame generation.

Once the game sent depth and motion data, three rendered frames produced three extra frames. The swapchain counted six presents in each run. The intro stayed at 30 rendered FPS. The world was still mostly black, and Series X hit a GPU reset after about 114 seconds.

This branch includes the PC FSR path and Series S presentation changes. Native Windows testing is still in progress.

To test on Windows, build with diagnostics, set VICTORY_FFX_DIR to AMD’s FidelityFX SDK Kits\FidelityFX\signedbin directory, set VICTORY_FFX_FRAMEGEN=1, and launch with --console series-s. Look for ffx framegen: generated game frames after world loading.

Related discussion: #944

For Series X, the README includes the additional upscaler and scale settings used in testing.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6587257929 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1287). Originally posted by [AwkGrep256](https://github.com/AwkGrep256) on 2026-11-24T17:08:44Z. --- I got AMD frame generation to run in-game on an RX 9070 XT with Proton Experimental. I tested both Series S and Series X. Both used FSR 4.1.1 for upscaling and 3.1.6 for frame generation. Once the game sent depth and motion data, three rendered frames produced three extra frames. The swapchain counted six presents in each run. The intro stayed at 30 rendered FPS. The world was still mostly black, and Series X hit a GPU reset after about 114 seconds. This branch includes the PC FSR path and Series S presentation changes. Native Windows testing is still in progress. To test on Windows, build with diagnostics, set `VICTORY_FFX_DIR` to AMD’s FidelityFX SDK `Kits\FidelityFX\signedbin` directory, set `VICTORY_FFX_FRAMEGEN=1`, and launch with `--console series-s`. Look for `ffx framegen: generated game frames` after world loading. Related discussion: #944 For Series X, the README includes the additional upscaler and scale settings used in testing.
marquezinii commented 2026-11-24 21:03:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by marquezinii on 2026-11-24T20:55:19Z.


Native Windows on NVIDIA, without the title. RTX 5070 (Blackwell), driver 621.40, Windows 11 26300, head 7566b6d. AMD's signed DLLs from SDK v2.4.0 Kits/FidelityFX/signedbin. The upscaler side is in my note on #1284: the tests pass and the RGB9E5 fallback is the NVIDIA path.

  • cargo test -p victory-gpu --features diagnostics --locked: 54 passed, 1 ignored.
  • Versions on this card: upscalers 3.1.6 and 2.3.4, frame generation 3.1.6; no FSR 4. With a throwaway test (not pushed), this branch's ffxCreateContext asks for upscaler 4.1.2 and gets provider 3.1.6 with result=0, for Series X and Series S sizes. Calling the loader directly with the 4.1.2 version description and without it gives the same. So the fixed SDK_UPSCALER_VERSION is harmless on NVIDIA, and retry_legacy is not reached.
  • Frame generation swapchain: framegen::Presentation::create with VICTORY_FFX_FRAMEGEN=1, on a hidden 1920x1080 window with the host's queue (RGBA8, 2 buffers, flip discard), returns the proxy swapchain. It asks for swapchain version 4.0 while the card only has 3.1.6.

Not checked: generated frames with real depth and motion vectors, and anything in game; I have no copy of the title.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144234710 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1287#issuecomment-7144234710). Originally posted by [marquezinii](https://github.com/marquezinii) on 2026-11-24T20:55:19Z. --- Native Windows on NVIDIA, without the title. RTX 5070 (Blackwell), driver 621.40, Windows 11 26300, head `7566b6d`. AMD's signed DLLs from SDK v2.4.0 `Kits/FidelityFX/signedbin`. The upscaler side is in my note on #1284: the tests pass and the RGB9E5 fallback is the NVIDIA path. - `cargo test -p victory-gpu --features diagnostics --locked`: 54 passed, 1 ignored. - **Versions on this card:** upscalers `3.1.6` and `2.3.4`, frame generation `3.1.6`; no FSR 4. With a throwaway test (not pushed), this branch's `ffxCreateContext` asks for upscaler 4.1.2 and gets provider `3.1.6` with `result=0`, for Series X and Series S sizes. Calling the loader directly with the 4.1.2 version description and without it gives the same. So the fixed `SDK_UPSCALER_VERSION` is harmless on NVIDIA, and `retry_legacy` is not reached. - **Frame generation swapchain:** `framegen::Presentation::create` with `VICTORY_FFX_FRAMEGEN=1`, on a hidden 1920x1080 window with the host's queue (RGBA8, 2 buffers, flip discard), returns the proxy swapchain. It asks for swapchain version 4.0 while the card only has 3.1.6. Not checked: generated frames with real depth and motion vectors, and anything in game; I have no copy of the title.
AwkGrep256 commented 2026-11-25 01:08:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-25T00:54:17Z.


Superseded by #1917, which adds the opt-in frame-generation path to the current host FidelityFX module. The new PR includes the Windows verification results.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149008748 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1287#issuecomment-7149008748). Originally posted by [AwkGrep256](https://github.com/AwkGrep256) on 2026-11-25T00:54:17Z. --- Superseded by #1917, which adds the opt-in frame-generation path to the current host FidelityFX module. The new PR includes the Windows verification results.
upstream-sync closed this pull request 2026-11-25 06:01:53 +00:00
AwkGrep256 commented 2026-11-25 06:02:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-25T05:52:36Z.


Reworked onto main's fidelityfx module in #1917, with only the frame generation change (this branch also carried other people's commits).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7154222956 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1287#issuecomment-7154222956). Originally posted by [AwkGrep256](https://github.com/AwkGrep256) on 2026-11-25T05:52:36Z. --- Reworked onto main's `fidelityfx` module in #1917, with only the frame generation change (this branch also carried other people's commits).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1287
No description provided.