Series S: PC FSR and frame generation, with the HUD kept out (base display plane) #11

Closed
github-bot wants to merge 1 commit from github-bot/gh-11 into main AGit
Owner

@⁠SAVillena on GitHub · 2026-12-02 02:57 UTC · original
SAVillena:series-s-fsr-hudless → main · +112 −55 · 6 files · 1 commits · closed without merging

What this does

Enables the PC FSR upscaler and FSR frame generation in Series S mode, from the launcher. It also keeps the HUD out of the generated frames, which is still missing on Series S today.

1. FSR and frame generation in Series S mode

  • run.rs, use_fsr: no longer requires Series X.
    • Series X behaves as before: the 4K frontend, VICTORY_DISPLAY_MODE=3840x2160 and the fsr-<preset>-4k-sdr image cache.
    • Series S calls the new prepare_fsr_series_s and uses its own image cache, images/fsr-<preset>-series-s.
  • fsr_4k.rs: new prepare_fsr_series_s.
    • On Series S the title already upscales through its console FidelityFX (1280x720 to 1920x1080), and the PC FidelityFX now serves those calls.
    • Quality leaves the image untouched.
    • Balanced and Performance patch the same render-size selection as Series X. That code is factored out into render_size.
    • The Series S port of the render-size patch comes from EpicCrash05/victory-amd-6700xt 752a683.
  • Launcher (choices.rs, window.rs):
    • FSR, FSR version, frame generation and its version are no longer greyed out on Series S.
    • The "REQUIRES Xbox Series X mode" notes are removed.
    • The launcher test now checks that Series S keeps FSR and frame generation.

2. HUD-less picture on Series S

Frame generation's HUD-less capture looks for the title's UI composite: a full-screen triangle drawn with sga_dr_vs_pos_color_tex / default_ps_tex into the presented picture. That works on Series X. On Series S it never fires, so 0 of them with the HUD-less picture is logged, and subtitles, the phone and the map get interpolated and smear.

The reason: on Series S the title does not draw its UI into the picture. It presents the UI on its own overlay display plane, and the presenter composes the two planes (display output: compositing two planes (overlay active)). A scan of the single-instance draws into the presented 1920x1080 target found only PS_CopyDithering and PS_Clear, and no UI.

So when the presenter composes two planes, the base plane is already the picture without the UI, every frame:

  • host.rs passes the base plane (in its state after the composite) to Swap::hudless.
  • Swap::hudless copies it when its size matches the picture and its format family matches the swap chain's, restoring the plane's state afterwards.
  • Otherwise it falls back to the existing capture taken before the UI composite, so Series X is unchanged.

Tested

  • Hardware: RX 6700 XT (12 GB), Windows 11, release build.
  • Settings: Series S, FSR quality (FSR 3.1.6), frame generation via FSR 3.1.6.
  • Before: 18 of 18 frames generated, 0 of them with the HUD-less picture; the HUD smeared.
  • After: 18 of 18 frames generated, 18 of them with the HUD-less picture. Over a 5-minute session, 419 of 419 generated frames carried the HUD-less picture, and the subtitles, phone and map stay clean.
  • Performance: about 18-19 fps rendered, about 37 presented.
  • Remaining artefact: fast motion (driving) still trails at the edges of moving objects. That is expected from interpolating at under 20 rendered fps.
  • Tests: cargo test -p victory launcher and cargo test -p victory-gpu framegen pass.

Related: #5 serves the console FidelityFX from the PC upscaler through VICTORY_FSR_PC=1 and lists the HUD ghosting on Series S as a known limitation. Section 2 is what fixes that.

**@⁠SAVillena** on GitHub · 2026-12-02 02:57 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/11) `SAVillena:series-s-fsr-hudless` → `main` · +112 −55 · 6 files · 1 commits · closed without merging ## What this does Enables the PC FSR upscaler and FSR frame generation in **Series S mode**, from the launcher. It also keeps the HUD out of the generated frames, which is still missing on Series S today. ### 1. FSR and frame generation in Series S mode - **`run.rs`, `use_fsr`:** no longer requires Series X. - Series X behaves as before: the 4K frontend, `VICTORY_DISPLAY_MODE=3840x2160` and the `fsr-<preset>-4k-sdr` image cache. - Series S calls the new `prepare_fsr_series_s` and uses its own image cache, `images/fsr-<preset>-series-s`. - **`fsr_4k.rs`:** new `prepare_fsr_series_s`. - On Series S the title already upscales through its console FidelityFX (1280x720 to 1920x1080), and the PC FidelityFX now serves those calls. - **Quality** leaves the image untouched. - **Balanced** and **Performance** patch the same render-size selection as Series X. That code is factored out into `render_size`. - The Series S port of the render-size patch comes from EpicCrash05/victory-amd-6700xt `752a683`. - **Launcher (`choices.rs`, `window.rs`):** - FSR, FSR version, frame generation and its version are no longer greyed out on Series S. - The "REQUIRES Xbox Series X mode" notes are removed. - The launcher test now checks that Series S keeps FSR and frame generation. ### 2. HUD-less picture on Series S Frame generation's HUD-less capture looks for the title's UI composite: a full-screen triangle drawn with `sga_dr_vs_pos_color_tex` / `default_ps_tex` into the presented picture. That works on Series X. On Series S it never fires, so `0 of them with the HUD-less picture` is logged, and subtitles, the phone and the map get interpolated and smear. The reason: on Series S the title does not draw its UI into the picture. It presents the UI on its own **overlay display plane**, and the presenter composes the two planes (`display output: compositing two planes (overlay active)`). A scan of the single-instance draws into the presented 1920x1080 target found only `PS_CopyDithering` and `PS_Clear`, and no UI. So when the presenter composes two planes, **the base plane is already the picture without the UI**, every frame: - `host.rs` passes the base plane (in its state after the composite) to `Swap::hudless`. - `Swap::hudless` copies it when its size matches the picture and its format family matches the swap chain's, restoring the plane's state afterwards. - Otherwise it falls back to the existing capture taken before the UI composite, so Series X is unchanged. ## Tested - **Hardware:** RX 6700 XT (12 GB), Windows 11, release build. - **Settings:** Series S, FSR quality (FSR 3.1.6), frame generation via FSR 3.1.6. - **Before:** `18 of 18 frames generated, 0 of them with the HUD-less picture`; the HUD smeared. - **After:** `18 of 18 frames generated, 18 of them with the HUD-less picture`. Over a 5-minute session, 419 of 419 generated frames carried the HUD-less picture, and the subtitles, phone and map stay clean. - **Performance:** about 18-19 fps rendered, about 37 presented. - **Remaining artefact:** fast motion (driving) still trails at the edges of moving objects. That is expected from interpolating at under 20 rendered fps. - **Tests:** `cargo test -p victory launcher` and `cargo test -p victory-gpu framegen` pass. Related: #5 serves the console FidelityFX from the PC upscaler through `VICTORY_FSR_PC=1` and lists the HUD ghosting on Series S as a known limitation. Section 2 is what fixes that.
- Allow FSR (and frame generation) in Series S mode: the PC FidelityFX
  serves the title's own 1280x720 -> 1920x1080 upscaling; non-quality
  presets patch the render-size selection (ported from
  EpicCrash05/victory-amd-6700xt 752a683). The launcher no longer
  requires Series X for FSR / frame generation.
- Frame generation on Series S: the title shows its UI on an overlay
  display plane, so the base plane composed by the presenter is used as
  the HUD-less picture; the UI is no longer interpolated. Series X keeps
  the capture before the UI composite.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 02:59:59 +00:00
Author
Owner

@⁠yyds1199 on GitHub · 2026-12-02 06:05 UTC · original

Related to frame generation: on an RX 7900 XTX (RDNA3, driver 32.0.32029.2010, Windows 11 26200, i5-12600KF), with FSR 3.1.6 + FG (.\scripts\play.ps1 -Exe <game exe> -Build release -Fsr3 balanced -FrameGen -SkipIntro, commit 925ac0a, release build) dialogue and car-radio audio stutters/crackles every few seconds. Same scene with -FrameGen off is close to normal.

Tried without effect: VICTORY_FRAMEGEN_HUDLESS=0, VICTORY_DSP_CONVOLUTION=dry, VICTORY_TITLE_PRIORITIES=1 + process priority High, FSR performance, output 2560x1440. System audio (browser music) is clean while the game runs, so it does not look like a DPC/system issue. AMD driver AFMF does not engage on this swap chain either.

Is this a known limitation of the FG present path (present/queue blocking the title's mixer thread)? Is there a switch to move the FG present off the title's thread, or to enlarge the audio buffer? Happy to test a build or provide logs.

**@⁠yyds1199** on GitHub · 2026-12-02 06:05 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/11#issuecomment-7336622808) Related to frame generation: on an RX 7900 XTX (RDNA3, driver 32.0.32029.2010, Windows 11 26200, i5-12600KF), with FSR 3.1.6 + FG (`.\scripts\play.ps1 -Exe <game exe> -Build release -Fsr3 balanced -FrameGen -SkipIntro`, commit 925ac0a, release build) dialogue and car-radio audio stutters/crackles every few seconds. Same scene with `-FrameGen` off is close to normal. Tried without effect: `VICTORY_FRAMEGEN_HUDLESS=0`, `VICTORY_DSP_CONVOLUTION=dry`, `VICTORY_TITLE_PRIORITIES=1` + process priority High, FSR `performance`, output 2560x1440. System audio (browser music) is clean while the game runs, so it does not look like a DPC/system issue. AMD driver AFMF does not engage on this swap chain either. Is this a known limitation of the FG present path (present/queue blocking the title's mixer thread)? Is there a switch to move the FG present off the title's thread, or to enlarge the audio buffer? Happy to test a build or provide logs.
Author
Owner

@⁠cloph-dsp on GitHub · 2026-12-02 17:57 UTC · original

Verified the settings contract this PR changes, on synthetic inputs only.

This is an extension of a test that already exists on the base: launcher::choices::tests::what_a_run_gets is present at base 925ac0a3; the PR flips its Series S expectation from "FSR 4K and frame generation are both 0" to the new rule (Series S keeps FSR, so VICTORY_FSR_4K is a profile name and VICTORY_FSR_FRAMEGEN is set), plus the unchanged "frame generation needs the upscaler" case.

  • base: 925ac0a32f6a05c31373a2843bc555f57afba4f7, head: 29bbbbd31d44f0a58c33fcc9689f2ab1dc50594c
  • git diff --check "925ac0a3..29bbbbd3" → exit 0
  • cargo test --locked -p victory --bin victory -- launcher::choices::tests::what_a_run_gets --exact --test-threads=1 --quiet → running 1 test / test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 38 filtered out
  • dedicated CARGO_TARGET_DIR for the worktree
  • rustc 1.100.0 (MSVC; no rustup locally, so the repo's 1.98.1 pin is not applied)
  • GPU/driver: N/A (CPU-only settings-map test)
  • no game data

Limit worth naming: the test pins the environment map settings() produces. It does not cover the launcher widgets (usable, inspector meta, short profile summary), and it says nothing about whether the PC FSR/VICTORY_FSR_FRAMEGEN path actually runs on a Series S profile when the title starts — that needs the title and a GPU.

**@⁠cloph-dsp** on GitHub · 2026-12-02 17:57 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/11#issuecomment-7353809007) Verified the settings contract this PR changes, on synthetic inputs only. This is an **extension of a test that already exists on the base**: `launcher::choices::tests::what_a_run_gets` is present at base `925ac0a3`; the PR flips its Series S expectation from "FSR 4K and frame generation are both 0" to the new rule (Series S keeps FSR, so `VICTORY_FSR_4K` is a profile name and `VICTORY_FSR_FRAMEGEN` is set), plus the unchanged "frame generation needs the upscaler" case. - base: `925ac0a32f6a05c31373a2843bc555f57afba4f7`, head: `29bbbbd31d44f0a58c33fcc9689f2ab1dc50594c` - `git diff --check "925ac0a3..29bbbbd3"` → exit 0 - `cargo test --locked -p victory --bin victory -- launcher::choices::tests::what_a_run_gets --exact --test-threads=1 --quiet` → `running 1 test` / `test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 38 filtered out` - dedicated `CARGO_TARGET_DIR` for the worktree - rustc 1.100.0 (MSVC; no rustup locally, so the repo's 1.98.1 pin is not applied) - GPU/driver: N/A (CPU-only settings-map test) - no game data Limit worth naming: the test pins the environment map `settings()` produces. It does not cover the launcher widgets (`usable`, inspector meta, short profile summary), and it says nothing about whether the PC FSR/`VICTORY_FSR_FRAMEGEN` path actually runs on a Series S profile when the title starts — that needs the title and a GPU.
github-bot closed this pull request 2026-12-04 02:03:04 +00:00
Author
Owner

@⁠ReTerryDavis on GitHub · 2026-12-04 02:01 UTC · original

Closing because the Series S launcher/FSR wiring conflicts with recent main changes and is superseded by #35. Your base-plane HUD-less capture fix (framegen.rs + host/present.rs) is still really valuable though -- if you'd like to open a focused PR with just that fix against main, we'd love to merge it!

**@⁠ReTerryDavis** on GitHub · 2026-12-04 02:01 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/11#issuecomment-7398497337) Closing because the Series S launcher/FSR wiring conflicts with recent `main` changes and is superseded by #35. Your base-plane HUD-less capture fix (`framegen.rs` + `host/present.rs`) is still really valuable though -- if you'd like to open a focused PR with just that fix against `main`, we'd love to merge it!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.