[pr-feature][AMD][frame-generation] F3 shows AMD's FSR upscaler and frame generation versions #112

Open
dutchmega wants to merge 9 commits from dutchmega/Darner:fsr-overlay-menu into main
Contributor

What it changes

On AMD cards the title is upscaled by AMD's PC FidelityFX upscaler, but F3 said DLSS OFF THE TITLE UPSCALES. The FSR versions AMD's DLLs chose were only in the log.
Show FSR4 with version in overlays.

F3 panel rows:

-DLSS           OFF  THE TITLE UPSCALES
+FSR            4.1.2  QUALITY             upscaling
+FSR            4.1.2  IDLE                context made, nothing upscaled in 2 s (loading screen)
-FSR 3 FRAME GEN  TARGET 2X
+FSR 4.0.2 FRAME GEN  TARGET 2X            AMD's provider version (3.1.6 with FG TYPE fsr)
+FSR FRAME GEN  OFF (HDR)                  FSR 4 FG asked, left off for an HDR swap chain

F1 and texts:

  • The DLSS row is DLSS/FSR4: with FG TYPE fsr4 its scale is also the FSR 4 upscaler's.
  • FG TYPE's fsr4 reads FSR 4.0.2 (EXPERIMENTAL).
  • get-fsr, Get-AMD-FSR.cmd and the launcher prompts say they fetch the FSR 4 upscaler too, about 85 MB (was "FSR 3 frame generation, about 30 MB").

Main files: crates/darner-gpu/src/host/panel.rs, streamline.rs, streamline/fsr.rs, crates/darner-hle/src/modules/fidelityfx/pc.rs (hands over the provider version), apps/darner/src/run.rs (hands over the scale), locales, README.

How it was tested

  • Tested revision: 894af9a (rebased on main bd0de0c). The game run was on a33778e, the same code before the rebase.
  • Commands and results:
    • cargo clippy --workspace --all-targets --locked -- -D warnings: pass
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: pass
    • cargo test --locked --workspace --exclude darner-gpu: 970 passed, 0 failed
    • cargo test --locked -p darner-gpu --lib -- host::panel streamline: 79 passed, 0 failed
    • cargo test --workspace --locked: the full darner-gpu lib tests end with STATUS_ACCESS_VIOLATION in the draw/descriptor tests. The same happens on the old base 1a5286a (2 of 2 runs), so not this change.
  • Gameplay: , Series X, 2560x1440, DLSS/FSR4 PERFORMANCE, FG TYPE fsr4. F3 shows FSR 4.1.2 PERFORMANCE and FSR 4.0.2 FRAME GEN TARGET 2X:

Screenshot 2026-12-03 202553
Screenshot 2026-12-03 202614

  • Coverage gaps: Not tested on NVIDIA

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found for the same problem. #47 and #48 (Intel XeSS, WIP) also change host/panel.rs, streamline.rs and run.rs; #9, #12, #16, #75 and #95 also change run.rs.

Fluxer ID: 1575942915249680389

## What it changes On AMD cards the title is upscaled by AMD's PC FidelityFX upscaler, but F3 said `DLSS OFF THE TITLE UPSCALES`. The FSR versions AMD's DLLs chose were only in the log. Show FSR4 with version in overlays. F3 panel rows: ```diff -DLSS OFF THE TITLE UPSCALES +FSR 4.1.2 QUALITY upscaling +FSR 4.1.2 IDLE context made, nothing upscaled in 2 s (loading screen) -FSR 3 FRAME GEN TARGET 2X +FSR 4.0.2 FRAME GEN TARGET 2X AMD's provider version (3.1.6 with FG TYPE fsr) +FSR FRAME GEN OFF (HDR) FSR 4 FG asked, left off for an HDR swap chain ``` F1 and texts: - The `DLSS` row is `DLSS/FSR4`: with FG TYPE fsr4 its scale is also the FSR 4 upscaler's. - FG TYPE's fsr4 reads `FSR 4.0.2 (EXPERIMENTAL)`. - `get-fsr`, Get-AMD-FSR.cmd and the launcher prompts say they fetch the FSR 4 upscaler too, about 85 MB (was "FSR 3 frame generation, about 30 MB"). Main files: `crates/darner-gpu/src/host/panel.rs`, `streamline.rs`, `streamline/fsr.rs`, `crates/darner-hle/src/modules/fidelityfx/pc.rs` (hands over the provider version), `apps/darner/src/run.rs` (hands over the scale), locales, README. ## How it was tested - Tested revision: 894af9a (rebased on main bd0de0c). The game run was on a33778e, the same code before the rebase. - Commands and results: - `cargo clippy --workspace --all-targets --locked -- -D warnings`: pass - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: pass - `cargo test --locked --workspace --exclude darner-gpu`: 970 passed, 0 failed - `cargo test --locked -p darner-gpu --lib -- host::panel streamline`: 79 passed, 0 failed - `cargo test --workspace --locked`: the full `darner-gpu` lib tests end with `STATUS_ACCESS_VIOLATION` in the `draw`/`descriptor` tests. The same happens on the old base 1a5286a (2 of 2 runs), so not this change. - Gameplay: <GPU>, Series X, 2560x1440, DLSS/FSR4 PERFORMANCE, FG TYPE fsr4. F3 shows `FSR 4.1.2 PERFORMANCE` and `FSR 4.0.2 FRAME GEN TARGET 2X`: ![Screenshot 2026-12-03 202553](/attachments/73e2ab32-733d-416d-a801-64f9413ea8d3) ![Screenshot 2026-12-03 202614](/attachments/d4c6c185-d8ec-4e23-88d0-5b7b0ebaa871) - Coverage gaps: Not tested on NVIDIA ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found for the same problem. #47 and #48 (Intel XeSS, WIP) also change `host/panel.rs`, `streamline.rs` and `run.rs`; #9, #12, #16, #75 and #95 also change `run.rs`. Fluxer ID: 1575942915249680389
On AMD cards (`--fg-type auto` picks fsr4 there since #53) the title is
upscaled by AMD's PC FidelityFX upscaler, not DLSS, but the F3 panel said
"DLSS  OFF  THE TITLE UPSCALES" and the provider AMD's DLL chose was only in
the log.

- crates/darner-hle/src/modules/fidelityfx/pc.rs: the provider version
  read at context creation is handed to darner-gpu.
- crates/darner-gpu/src/streamline.rs: keeps that version, and when the PC
  upscaler last recorded a dispatch (`host_upscaled_lately`, two seconds,
  as DLSS's `upscaled_lately`).
- crates/darner-gpu/src/host/panel.rs: without DLSS upscaling, the row reads
  FSR and the version (such as 4.1.2, or 3.1.6 where AMD falls back). With
  DLSS it is the DLSS row as before.
- locales: `panel.metric.fsr`, and FG TYPE's fsr4 is FSR 4.0.2
  (EXPERIMENTAL), the frame generation provider fsr.rs asks for. README's
  table follows.
The row read "FSR 3 FRAME GEN" for both FG types. With fsr4, fsr.rs asks for
and confirms generator provider 4.0.2; with fsr, AMD's default provider runs (not shown so far;
SDK v2.4.0 carries 4.0.2 and 3.1.6).

- crates/darner-gpu/src/streamline/fsr.rs: after a frame generation context
  is made, its provider version is asked (`provider_of`, which
  `active_provider` now uses too) and kept for the panel.
- crates/darner-gpu/src/streamline.rs: `FramegenReading::Fsr` carries it.
- crates/darner-gpu/src/host/panel.rs, locales: "FSR 4.0.2 FRAME GEN",
  "FSR 3.1.6 FRAME GEN", or "FSR FRAME GEN" where AMD did not say.
  `panel.metric.fsr3_frame_generation` is replaced by
  `panel.metric.fsr_frame_generation` and `..._version`.
With FRAME GEN TYPE FSR 4 the DLSS row's value is the scale of AMD's FSR 4
upscaler too (play.rs sets DARNER_DLSS_MODE from it, OFF as QUALITY), so it is
not NVIDIA's alone.

- locales, README: the row is DLSS/FSR4, and its help says what FSR 4 takes.
- apps/darner/src/run.rs: with the PC upscaler, the scale settled for the
  console and output is handed to darner-gpu (`host_upscale_mode`).
- crates/darner-gpu/src/streamline.rs, host/panel.rs: the FSR row reads the
  version and that scale, such as "4.1.2  QUALITY"; DLAA's scale is NATIVE.
`darner get-fsr` and Get-AMD-FSR.cmd fetch three DLLs from FidelityFX SDK
v2.4.0: the loader (2.3.0), frame generation (4.0.2, with 3.1.6 inside) and
the upscaler (4.1.2, with 3.1.6 inside), about 85 MB in all. The texts said
FSR 3 frame generation only, about 30 MB.

- scripts/get-amd-fsr.ps1, Get-AMD-FSR.cmd: header and the line printed.
- locales/en.json, locales/zh-CN.json: `cli.command.get_fsr` and the sizes.
- README.md: the sizes, and the upscaler DLL beside the other two.
- apps/darner/src/play.rs: fetch_fsr's doc line.

The runtime "FSR 3 frame generation" names stay: `fsr` uses AMD's default
frame generation provider; only `fsr4` asks for 4.0.2.
FSR 4 frame generation takes only the SDR swap-chain format; with HDR on
(R10G10B10A2) fsr.rs uses ordinary presents and only the log said why. The
row read FRAME GEN: OFF.

- crates/darner-gpu/src/streamline/fsr.rs: notes that refusal (`hdr_refused`).
- crates/darner-gpu/src/streamline.rs: `FramegenReading::FsrOffHdr`.
- crates/darner-gpu/src/host/panel.rs, locales: "FSR FRAME GEN: OFF (HDR)"
  in amber.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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 'fsr-overlay-menu:dutchmega-fsr-overlay-menu'
git switch 'dutchmega-fsr-overlay-menu'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'dutchmega-fsr-overlay-menu'
git switch 'dutchmega-fsr-overlay-menu'
git rebase 'main'
git switch 'main'
git merge --ff-only 'dutchmega-fsr-overlay-menu'
git switch 'dutchmega-fsr-overlay-menu'
git rebase 'main'
git switch 'main'
git merge --no-ff 'dutchmega-fsr-overlay-menu'
git switch 'main'
git merge --squash 'dutchmega-fsr-overlay-menu'
git switch 'main'
git merge --ff-only 'dutchmega-fsr-overlay-menu'
git switch 'main'
git merge 'dutchmega-fsr-overlay-menu'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!112
No description provided.