Add opt-in FidelityFX pacing for FSR 2× #18

Open
github-bot wants to merge 1 commit from github-bot/gh-18 into stable AGit
Owner

@⁠9070XT-enjoyer on GitHub · 2026-12-05 21:51 UTC · original
9070XT-enjoyer:fsr-proxy-pacing → stable · +282 −25 · 5 files · 1 commits · open

Summary

Adds an opt-in FidelityFX DX12 swap chain so AMD's runtime schedules the rendered and interpolated frames for FSR 2×. Larp feeds the existing depth, motion vectors, jitter, and camera inputs to FidelityFX and submits one present per rendered frame. The default presentation path stays in use when the option is unset.

F9 takes its bracketed FPS from DXGI's presentation count only while the AMD FSR proxy is active. DLSS and the existing Larp presentation path continue to use Larp's counter.

How to test

  • Add $env:LARP_FSR_PROXY = '1' to the packaged bin/launch.ps1 after it clears inherited LARP_* variables. The proxy is created at launch and is limited to supported SDR swap chains.
  • Select FSR as the frame generator and 2× frame generation in F10. Check the log for the AMD swap chain and generation callback.
  • To compare with the default path, restart with the variable unset or set to 0. The historical captures in issue #5 are from an earlier base and separate gameplay samples.

Verification on AMD-4.2 stable

  • cargo build --release --locked -p larp passed. Tested on RX 9070 XT, driver 32.0.32029.2010, Xbox Series X profile, borderless SDR, 30 FPS cap, and FSR 2×.
  • The runtime logged swap-chain provider 4.0.0 and generator 4.0.2. The first generation callback returned success.
  • F9 showed 30 (60) FPS in gameplay. In a 14-second PresentMon capture, 807 of 824 presentations reached the display, averaging 57.7 displayed FPS, with a 16.7 ms median and 23.4 ms p95 display interval.
  • RX 7000 hardware and live DLSS still need coverage. The DLSS counter path was checked in code.

Related to #5.

**@⁠9070XT-enjoyer** on GitHub · 2026-12-05 21:51 UTC · [original](https://github.com/iceboerg00/larp-amd/pull/18) `9070XT-enjoyer:fsr-proxy-pacing` → `stable` · +282 −25 · 5 files · 1 commits · open ## Summary Adds an opt-in FidelityFX DX12 swap chain so AMD's runtime schedules the rendered and interpolated frames for FSR 2×. Larp feeds the existing depth, motion vectors, jitter, and camera inputs to FidelityFX and submits one present per rendered frame. The default presentation path stays in use when the option is unset. F9 takes its bracketed FPS from DXGI's presentation count only while the AMD FSR proxy is active. DLSS and the existing Larp presentation path continue to use Larp's counter. ## How to test - Add `$env:LARP_FSR_PROXY = '1'` to the packaged `bin/launch.ps1` after it clears inherited `LARP_*` variables. The proxy is created at launch and is limited to supported SDR swap chains. - Select FSR as the frame generator and 2× frame generation in F10. Check the log for the AMD swap chain and generation callback. - To compare with the default path, restart with the variable unset or set to `0`. The historical captures in issue #5 are from an earlier base and separate gameplay samples. ## Verification on AMD-4.2 stable - `cargo build --release --locked -p larp` passed. Tested on RX 9070 XT, driver 32.0.32029.2010, Xbox Series X profile, borderless SDR, 30 FPS cap, and FSR 2×. - The runtime logged swap-chain provider 4.0.0 and generator 4.0.2. The first generation callback returned success. - F9 showed **30 (60) FPS** in gameplay. In a 14-second PresentMon capture, **807 of 824** presentations reached the display, averaging **57.7 displayed FPS**, with a **16.7 ms** median and **23.4 ms** p95 display interval. - RX 7000 hardware and live DLSS still need coverage. The DLSS counter path was checked in code. Related to #5.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 21:54:10 +00:00
Author
Owner

@⁠adoh345 on GitHub · 2026-12-06 00:11 UTC · original · approved these changes

**@⁠adoh345** on GitHub · 2026-12-06 00:11 UTC · [original](https://github.com/iceboerg00/larp-amd/pull/18#pullrequestreview-6207061846) · **approved these changes**
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/18/head:github-bot/gh-18'
git switch 'github-bot/gh-18'

Merge

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