FidelityFX: Series X switches to the host upscaler and its render scale (rework of #1284) #1793

Open
github-bot wants to merge 1 commit from github-bot/gh-1793 into main AGit
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 22:40 UTC · original
AwkGrep256:pc-fsr-v2 → main · +560 −5 · 6 files · 1 commits · open

Important

Series X gains host FSR with an adjustable internal render resolution. On title 1.0.2.1, main routes FidelityFX to the PC SDK when the title selects it, which Series S does by default. Series X selects the title’s own upscaler. These two diagnostics switches let Series X select the existing host path and choose the input scale. The title still chooses the output resolution.

How to try it

Use a diagnostics build, point VICTORY_FIDELITYFX_DIR at the SDK’s Kits/FidelityFX/signedbin directory and run with --console series-x and both switches:

Switch Effect
VICTORY_UPSCALER=7 Selects FidelityFX by a runtime signature for the picker.
VICTORY_FFX_SCALE=0.5 Renders at half the output width and height. At 4K output, that is 1920×1080 input.

Changes after triage

  • The picker and scale sites are located at launch with unique signatures in executable sections. A missing or ambiguous match leaves the requested patch unapplied. With both switches set, both matches must be found before either write.
  • A diagnostics-only loader helper uses the existing Windows features. It writes within one committed executable image region, restores protection and flushes the instruction cache. The scale is applied first. If the pair is only partially applied, startup stops.
  • The README documents the two switches. There are no Cargo dependency or lockfile changes.

Hardware results

Windows, RX 9070 XT, title 1.0.2.1, Series X, FidelityFX SDK 2.4.0.

Build Observed
Earlier upstream #1793 build FSR 4.1.2 on the host GPU at 1920×1080 → 3840×2160, with a successful upscale. The AMD shader compiler later faulted during pipeline creation. A control run with the switches off hit the same driver fault.
fxceless/victory-fork f25e735 + the fork FSR patch from #86, local test commit 29b55f0 FSR 4.1.2 recorded a successful host upscale (result=0) at 1920×1080 → 3840×2160, and in a second run at 2560×1440 → 3840×2160. I checked captured frames from Lucia’s story cutscene in each run. The process was still rendering when I stopped it at the 260-second test limit.

This reworks the Series X portion of #1284 on top of main’s FidelityFX module.

Both Windows clippy runs, all 701 workspace tests, and the diagnostics build passed locally on the reviewed revision.

**@⁠AwkGrep256** on GitHub · 2026-11-24 22:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793) `AwkGrep256:pc-fsr-v2` → `main` · +560 −5 · 6 files · 1 commits · open > [!IMPORTANT] > **Series X gains host FSR with an adjustable internal render resolution.** On title 1.0.2.1, `main` routes FidelityFX to the PC SDK when the title selects it, which Series S does by default. Series X selects the title’s own upscaler. These two diagnostics switches let Series X select the existing host path and choose the input scale. The title still chooses the output resolution. ## How to try it Use a diagnostics build, point `VICTORY_FIDELITYFX_DIR` at the SDK’s `Kits/FidelityFX/signedbin` directory and run with `--console series-x` and both switches: | Switch | Effect | |---|---| | `VICTORY_UPSCALER=7` | Selects FidelityFX by a runtime signature for the picker. | | `VICTORY_FFX_SCALE=0.5` | Renders at half the output width and height. At 4K output, that is 1920×1080 input. | ## Changes after triage - The picker and scale sites are located at launch with unique signatures in executable sections. A missing or ambiguous match leaves the requested patch unapplied. With both switches set, both matches must be found before either write. - A diagnostics-only loader helper uses the existing Windows features. It writes within one committed executable image region, restores protection and flushes the instruction cache. The scale is applied first. If the pair is only partially applied, startup stops. - The README documents the two switches. There are no Cargo dependency or lockfile changes. ## Hardware results Windows, RX 9070 XT, title 1.0.2.1, Series X, FidelityFX SDK 2.4.0. | Build | Observed | |---|---| | Earlier upstream #1793 build | FSR 4.1.2 on the host GPU at **1920×1080 → 3840×2160**, with a successful upscale. The AMD shader compiler later faulted during pipeline creation. A control run with the switches off hit the same driver fault. | | [fxceless/victory-fork `f25e735`](https://github.com/fxceless/victory-fork/commit/f25e7352498e4788583c571c6a37db5b1e4abb8f) + [the fork FSR patch from #86](https://github.com/fxceless/victory-fork/pull/86), local test commit `29b55f0` | FSR 4.1.2 recorded a successful host upscale (`result=0`) at **1920×1080 → 3840×2160**, and in a second run at **2560×1440 → 3840×2160**. I checked captured frames from Lucia’s story cutscene in each run. The process was still rendering when I stopped it at the 260-second test limit. | This reworks the Series X portion of #1284 on top of [main’s FidelityFX module](https://github.com/Marvisak/VIctory/commit/0b35b7fe7d728c9a9c205cb3719a0f11744321ce). Both Windows clippy runs, all 701 workspace tests, and the diagnostics build passed locally on the reviewed revision.
The host FidelityFX path (VICTORY_FIDELITYFX_DIR) only runs when the
title picks FidelityFX, which it does on Series S. Two diagnostics
switches make Series X use it too:

- VICTORY_UPSCALER=<kind> makes the title's upscaler picker return kind
  (7, FidelityFX); on Series X it picks the title's own upscaler.
- VICTORY_FFX_SCALE=<scale> sets the render scale of that path, 1.0 on
  Series X, which with FidelityFX forced on is more than the title's
  memory plan allows. 0.5 renders 1080p for a 4K output.

No title address is kept: each finds its code by a byte pattern, call
and RIP-relative offsets left open, that must match exactly once in the
title's executable sections; a build where it does not is left alone.
In Grand Theft Auto VI 1.0.2.1 each matches once.

The write itself is LoadedImage::write_code in victory-loader
(diagnostics builds only), an unsafe fn for code that has not run yet.
It writes only inside one region VirtualQuery reports as committed,
executable image pages with one protection, so the protection put back
is right for every page; then it restores the protection and flushes the
instruction cache, and reports a failure of either after writing as an
error. No Cargo.toml or Cargo.lock change: the loader already has the
Win32 features.

In the app:
- The patches run first in the diagnostics setup, before the stack
  dump, audio capture, watch and poke threads start, and before the
  title's TLS callbacks and entry point.
- With both switches set, both are found before either is written and
  the scale goes first: the picker alone would render at full size.
  An error after writing, or only the scale taking, stops the launch.

Reworked from #1284 onto main's fidelityfx module.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:44:46 +00:00
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 23:04 UTC · original

@⁠Marvisak @⁠Dufftwt @⁠marquezinii update after a run in the title. The description is updated with the full details.

Status
Series X picks FidelityFX (VICTORY_UPSCALER) ✅ verified in the title
Series X renders 1080p for a 4K output (VICTORY_FFX_SCALE=0.5) ✅ verified in the title
FSR 4.1.2 context and first upscale on main's fidelityfx module ✅ verified in the title, RX 9070 XT
RGB9E5 output ✅ main's path writes it directly; my FP16 stand-in was unnecessary and is removed
Crash during world loading ⚠️ AMD shader compiler (amdxc64.dll+0x861b9f), same crash without FidelityFX

The PR is now only the two Series X switches. My earlier claim that PC GPUs cannot write RGB9E5 through a typed UAV was wrong; the RX 9070 XT and WARP both report support for it.

@⁠marquezinii for #1704/#1715: main's module has no RGB9E5 issue on these GPUs, so the DLSS path should be able to sit next to it without a format workaround.

**@⁠AwkGrep256** on GitHub · 2026-11-24 23:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7146978458) @⁠Marvisak @⁠Dufftwt @⁠marquezinii update after a run in the title. The description is updated with the full details. | | Status | |---|---| | Series X picks FidelityFX (`VICTORY_UPSCALER`) | ✅ verified in the title | | Series X renders 1080p for a 4K output (`VICTORY_FFX_SCALE=0.5`) | ✅ verified in the title | | FSR 4.1.2 context and first upscale on main's `fidelityfx` module | ✅ verified in the title, RX 9070 XT | | RGB9E5 output | ✅ main's path writes it directly; my FP16 stand-in was unnecessary and is removed | | Crash during world loading | ⚠️ AMD shader compiler (`amdxc64.dll+0x861b9f`), same crash without FidelityFX | The PR is now only the two Series X switches. My earlier claim that PC GPUs cannot write RGB9E5 through a typed UAV was wrong; the RX 9070 XT and WARP both report support for it. @⁠marquezinii for #1704/#1715: main's module has no RGB9E5 issue on these GPUs, so the DLSS path should be able to sit next to it without a format workaround.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 23:51 UTC · original

@⁠catminou4 thanks for the look. One correction: #1793 doesn't supersede #1704/#1715. Those add DLSS (upscaling and frame generation through Streamline); this PR only adds the Series X switches for main's FidelityFX path, and the RGB9E5 part is gone since the first version. The DLSS PRs would need a rebase onto main's fidelityfx module, not a close.

**@⁠AwkGrep256** on GitHub · 2026-11-24 23:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7147864173) @⁠catminou4 thanks for the look. One correction: #1793 doesn't supersede #1704/#1715. Those add DLSS (upscaling and frame generation through Streamline); this PR only adds the Series X switches for main's FidelityFX path, and the RGB9E5 part is gone since the first version. The DLSS PRs would need a rebase onto main's `fidelityfx` module, not a close.
Author
Owner

@⁠justlovett0 on GitHub · 2026-11-25 03:22 UTC · original

Tested on Windows 10 (19044), RTX 3080, title build 1.0.2.1, release + diagnostics, Series X profile (ported onto the fxceless fork).

The patches apply cleanly: "upscaler picker at title+0x7e93f0 returns 7 (4 direct calls)" and "FidelityFX render scale at title+0x28ef680 set to 0.6667". The stretch pass fires (colour 2560x1440 -> output). But the title then crashes: unhandled 0xc0000094 (integer overflow) at title+0x28f03e8, immediately after the dispatch.

The same crash occurs at scale 0.5 (colour 1920x1080), at the same address — so it is independent of the scale value and looks like the title's post-dispatch FidelityFX path on Series X rather than the render-scale computation itself. The picker/scale RVAs match 1.0.2.1.

Sharing in case forcing the FidelityFX picker on Series X needs an additional patch beyond the scale method on this build/card. With the picker left at the title's own upscaler (no patch), Series X renders native 4K stably.

**@⁠justlovett0** on GitHub · 2026-11-25 03:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7151861810) Tested on Windows 10 (19044), RTX 3080, title build 1.0.2.1, release + diagnostics, Series X profile (ported onto the fxceless fork). The patches apply cleanly: "upscaler picker at title+0x7e93f0 returns 7 (4 direct calls)" and "FidelityFX render scale at title+0x28ef680 set to 0.6667". The stretch pass fires (colour 2560x1440 -> output). But the title then crashes: unhandled `0xc0000094` (integer overflow) at title+`0x28f03e8`, immediately after the dispatch. The same crash occurs at scale `0.5` (colour 1920x1080), at the same address — so it is independent of the scale value and looks like the title's post-dispatch FidelityFX path on Series X rather than the render-scale computation itself. The picker/scale RVAs match 1.0.2.1. Sharing in case forcing the FidelityFX picker on Series X needs an additional patch beyond the scale method on this build/card. With the picker left at the title's own upscaler (no patch), Series X renders native 4K stably.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:24 UTC · original · edited 2026-11-26 01:19 UTC

Automated triage for the maintainers.

Needs work. This still needs the maintainer's decision. The head (0c9187d) has not changed since the last review.

On your replies: thanks for the further runs on the 7900 XTX fork and the RX 6800 XT report. They add AMD results, but the open points from the last review are unchanged in the code:

  • The NVIDIA crash. justlovett0's 0xc0000094 right after the dispatch on an RTX 3080 is still unexplained; it needs an explanation, a fix, or an NVIDIA run on this exact head.
  • Signature size. PICKER (62 bytes) and SCALE (SCALE_SPAN = 0x68) in apps/victory/src/title_patch.rs are still whole function bodies. Please trim each to the shortest pattern that matches once and check the rewritten bytes separately (docs/asset-policy.md).
  • Placement. Title-specific hooks belong in victory-game; apps/victory should only call them.

On your question whether an opt-in title patch like this would be taken upstream: that is the maintainer's call, which is why it is flagged for them.

CI: passing (check).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7154752057) · edited 2026-11-26 01:19 UTC <!-- victory-triage v1 head=0c9187dea3811bfac0c327700e6c9569231b01cb verdict=needs-work at=2026-11-26T01:19:39Z --> Automated triage for the maintainers. **Needs work.** This still needs the maintainer's decision. The head (`0c9187d`) has not changed since the last review. On your replies: thanks for the further runs on the 7900 XTX fork and the RX 6800 XT report. They add AMD results, but the open points from the last review are unchanged in the code: - **The NVIDIA crash.** justlovett0's `0xc0000094` right after the dispatch on an RTX 3080 is still unexplained; it needs an explanation, a fix, or an NVIDIA run on this exact head. - **Signature size.** `PICKER` (62 bytes) and `SCALE` (`SCALE_SPAN` = 0x68) in `apps/victory/src/title_patch.rs` are still whole function bodies. Please trim each to the shortest pattern that matches once and check the rewritten bytes separately (`docs/asset-policy.md`). - **Placement.** Title-specific hooks belong in `victory-game`; `apps/victory` should only call them. On your question whether an opt-in title patch like this would be taken upstream: that is the maintainer's call, which is why it is flagged for them. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-25 10:13 UTC · original

@⁠Marvisak an update after the triage.

What main lacks: Series S already uses the host FidelityFX upscaler, but Series X cannot select it. With this PR, a diagnostics build lets Series X select it and choose its internal render resolution (VICTORY_UPSCALER=7, and VICTORY_FFX_SCALE=0.5 for 1080p → 4K).

Triage point Now
Title addresses in the tree None. Both patch sites are found at launch by byte signatures that must match exactly once in the title's executable sections; otherwise nothing is patched.
Dependency change None. No Cargo.toml or Cargo.lock change: a diagnostics-only loader helper uses the loader's existing Windows APIs.
Title details in the README Two short rows.

Both sites are found before either is written, the scale is written first, and a partial patch stops startup.

Hardware (RX 9070 XT, Series X profile, title 1.0.2.1, FSR 4.1.2)

Build Result
This PR's signatures (before the write moved into the loader) Both sites found once and patched; host upscaler context at 1920×1080 → 3840×2160
Fork test: fxceless/victory-fork f25e735 with the FSR patch from fxceless/victory-fork#86 First upscale result=0 at 1920×1080 → 3840×2160, and at 2560×1440 → 3840×2160 in a second run; story cutscene frames checked in both

The pushed commit 0c9187d passes both Windows clippy runs and all 701 workspace tests locally. Its own game run is still pending because the GPU was busy with another VIctory process; I'll add the log when it's done.

**@⁠AwkGrep256** on GitHub · 2026-11-25 10:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7159403004) @⁠Marvisak an update after the triage. **What main lacks:** Series S already uses the host FidelityFX upscaler, but Series X cannot select it. With this PR, a diagnostics build lets Series X select it and choose its internal render resolution (`VICTORY_UPSCALER=7`, and `VICTORY_FFX_SCALE=0.5` for 1080p → 4K). | Triage point | Now | |---|---| | Title addresses in the tree | None. Both patch sites are found at launch by byte signatures that must match exactly once in the title's executable sections; otherwise nothing is patched. | | Dependency change | None. No `Cargo.toml` or `Cargo.lock` change: a diagnostics-only loader helper uses the loader's existing Windows APIs. | | Title details in the README | Two short rows. | Both sites are found before either is written, the scale is written first, and a partial patch stops startup. **Hardware** (RX 9070 XT, Series X profile, title 1.0.2.1, FSR 4.1.2) | Build | Result | |---|---| | This PR's signatures (before the write moved into the loader) | Both sites found once and patched; host upscaler context at 1920×1080 → 3840×2160 | | Fork test: fxceless/victory-fork `f25e735` with the FSR patch from fxceless/victory-fork#86 | First upscale `result=0` at 1920×1080 → 3840×2160, and at 2560×1440 → 3840×2160 in a second run; story cutscene frames checked in both | The pushed commit `0c9187d` passes both Windows clippy runs and all 701 workspace tests locally. Its own game run is still pending because the GPU was busy with another VIctory process; I'll add the log when it's done.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-25 13:40 UTC · original

I reran the game on the exact pushed revision, 0c9187d, on Windows with an RX 9070 XT, title 1.0.2.1 and FidelityFX SDK 2.4.0.

Configuration What the log showed
Series X, scale 0.5 Both runtime signatures patched successfully. FSR 4.1.2 initialized at 1920×1080 → 3840×2160 and reached its first host dispatch before the AMD compiler fault at 87 seconds.
Series X, scale 0.6667 Both patches applied and FSR 4.1.2 initialized at 2560×1440 → 3840×2160. The compiler fault occurred before a dispatch was logged.
Series S, host SDK only The existing FSR 4.1.2 path initialized at 1280×720 → 1920×1080 without the new switches. The compiler fault occurred before a dispatch was logged.
Series X, FSR off Hit the same access violation at amdxc64.dll+0x861b9f during shader compilation.

The earlier story cutscene tests on fxceless f25e735 plus the fork FSR patch in #86 reached successful dispatches at both 4K input scales. The measurements above use the upstream PR head.

Independent Series X tests welcome. Build with cargo build --profile diag -p victory --features diagnostics, set VICTORY_FIDELITYFX_DIR to the SDK's Kits/FidelityFX/signedbin, then use VICTORY_UPSCALER=7 and VICTORY_FFX_SCALE=0.5 or 0.6667 with --console series-x. If you try it, please share your GPU and driver version, the logged provider and render/output sizes, and whether a story frame rendered. A few relevant log lines are enough.

**@⁠AwkGrep256** on GitHub · 2026-11-25 13:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7164125879) I reran the game on the exact pushed revision, `0c9187d`, on Windows with an RX 9070 XT, title 1.0.2.1 and FidelityFX SDK 2.4.0. | Configuration | What the log showed | |---|---| | Series X, scale `0.5` | Both runtime signatures patched successfully. FSR 4.1.2 initialized at **1920×1080 → 3840×2160** and reached its first host dispatch before the AMD compiler fault at 87 seconds. | | Series X, scale `0.6667` | Both patches applied and FSR 4.1.2 initialized at **2560×1440 → 3840×2160**. The compiler fault occurred before a dispatch was logged. | | Series S, host SDK only | The existing FSR 4.1.2 path initialized at **1280×720 → 1920×1080** without the new switches. The compiler fault occurred before a dispatch was logged. | | Series X, FSR off | Hit the same access violation at `amdxc64.dll+0x861b9f` during shader compilation. | The earlier story cutscene tests on fxceless `f25e735` plus the fork FSR patch in #86 reached successful dispatches at **both** 4K input scales. The measurements above use the upstream PR head. **Independent Series X tests welcome.** Build with `cargo build --profile diag -p victory --features diagnostics`, set `VICTORY_FIDELITYFX_DIR` to the SDK's `Kits/FidelityFX/signedbin`, then use `VICTORY_UPSCALER=7` and `VICTORY_FFX_SCALE=0.5` or `0.6667` with `--console series-x`. If you try it, please share your GPU and driver version, the logged provider and render/output sizes, and whether a story frame rendered. A few relevant log lines are enough.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-25 14:19 UTC · original · edited 2026-11-25 14:38 UTC

@⁠Marvisak Here is the hardware summary for the Series X host-FSR path. The upstream PR is still the Series X selector and internal render-scale change. The longer gameplay run used the AMD fork with that change ported over.

Build and hardware Verified result
Exact upstream #1793 head 0c9187d, RX 9070 XT FSR 4.1.2 reached a host upscale at 1080p → 4K. The 1440p → 4K context also initialized. The AMD compiler fault at amdxc64.dll+0x861b9f reproduced with FSR off.
Belobug AMD port, RX 9070 XT 1440p → 4K, with SDK success and controllable story gameplay. One run lasted about 22 minutes before a GPU device hang. Lighting and material defects remain in the fork.
Independent RTX 5060 report, Windows, driver 572.16 The tester reports host FSR filling the 4K output with #1793 and 0.6667. They describe #2441 as the fallback that presents the completed 1440p image when the SDK path is unavailable. Tester report
Earlier RX 9070 XT timing, #1904 Median 1.32 ms GPU and 80 µs CPU recording per FSR 4.1.2 upscale. The timing covers the upscale pass. Timing PR
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]
presenting to a window width=3840 height=2160 format=28

The AMD follow-up also verified 2× presentation in a short framegen sample. That result belongs to #1917 and its provider-selection follow-up. Sustained presentation FPS and input latency are still open measurements. AMD fork PR · Framegen PR #1917

**@⁠AwkGrep256** on GitHub · 2026-11-25 14:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7165106099) · edited 2026-11-25 14:38 UTC @⁠Marvisak Here is the hardware summary for the Series X host-FSR path. The upstream PR is still the Series X selector and internal render-scale change. The longer gameplay run used the AMD fork with that change ported over. | Build and hardware | Verified result | | --- | --- | | Exact upstream #1793 head `0c9187d`, RX 9070 XT | FSR 4.1.2 reached a host upscale at **1080p → 4K**. The **1440p → 4K** context also initialized. The AMD compiler fault at `amdxc64.dll+0x861b9f` reproduced with FSR off. | | Belobug AMD port, RX 9070 XT | **1440p → 4K**, with SDK success and controllable story gameplay. One run lasted about 22 minutes before a GPU device hang. Lighting and material defects remain in the fork. | | Independent RTX 5060 report, Windows, driver 572.16 | The tester reports host FSR filling the 4K output with #1793 and `0.6667`. They describe #2441 as the fallback that presents the completed 1440p image when the SDK path is unavailable. [Tester report](https://git.gtahub.st/github/Marvisak--VIctory/issues/841) | | Earlier RX 9070 XT timing, #1904 | Median **1.32 ms GPU** and **80 µs CPU recording** per FSR 4.1.2 upscale. The timing covers the upscale pass. [Timing PR](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1904) | ```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] presenting to a window width=3840 height=2160 format=28 ``` The AMD follow-up also verified 2× presentation in a short framegen sample. That result belongs to #1917 and its provider-selection follow-up. Sustained presentation FPS and input latency are still open measurements. [AMD fork PR](https://github.com/Belobug/VIctory-Belobug-AMD/pull/118) · [Framegen PR #1917](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1917)
Author
Owner

@⁠CocoBeans64 on GitHub · 2026-11-25 19:51 UTC · original

Tested on Windows 10 22H2 (19045), RX 6800 XT, Agility SDK runtime (#84), merged with #1997 on 13f91ca, diag build, FidelityFX SDK 2.4.0. Both patches applied (patched upscaler picker (returns 7), patched FidelityFX render scale (0.5)), and FSR 4.1.2 runs at 1920×1080 → 3840×2160. The image is fine on a 1080p screen.
In the 300 s after the world shows: median 1.5 fps, the same as native. GPU 191 against ~216 ms/frame; preparing (~306 ms) and copying back (~155 ms) dominate here and do not depend on resolution. No crash.

**@⁠CocoBeans64** on GitHub · 2026-11-25 19:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7172861551) Tested on Windows 10 22H2 (19045), RX 6800 XT, Agility SDK runtime (#84), merged with #1997 on `13f91ca`, diag build, FidelityFX SDK 2.4.0. Both patches applied (`patched upscaler picker (returns 7)`, `patched FidelityFX render scale (0.5)`), and FSR 4.1.2 runs at 1920×1080 → 3840×2160. The image is fine on a 1080p screen. In the 300 s after the world shows: median 1.5 fps, the same as native. GPU 191 against ~216 ms/frame; preparing (~306 ms) and copying back (~155 ms) dominate here and do not depend on resolution. No crash.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-25 20:01 UTC · original

@⁠CocoBeans64, thanks for testing this on the RX 6800 XT and including a native comparison. This confirms that both Series X patches applied and FSR 4.1.2 ran at 1080p → 4K on your Windows 10 setup with #1997 merged in. The five minutes in the world without a crash are helpful too.

The timing comparison is especially useful. GPU time went from about 216 to 191 ms per frame, and median FPS stayed at 1.5 with frame preparation and copy-back still dominating. That gives us a clear result for both compatibility and performance.

Your test report

**@⁠AwkGrep256** on GitHub · 2026-11-25 20:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7173070191) @⁠CocoBeans64, thanks for testing this on the RX 6800 XT and including a native comparison. This confirms that both Series X patches applied and FSR 4.1.2 ran at 1080p → 4K on your Windows 10 setup with #1997 merged in. The five minutes in the world without a crash are helpful too. The timing comparison is especially useful. GPU time went from about 216 to 191 ms per frame, and median FPS stayed at 1.5 with frame preparation and copy-back still dominating. That gives us a clear result for both compatibility and performance. [Your test report](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1793)
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-26 00:29 UTC · original · edited 2026-11-26 00:37 UTC

✅ Tested on another fork: FSR at 1080p and 1440p → 4K

This PR's render-scale switch, with the host FidelityFX path, now runs on avatarmanz/VIctory-7900XTX (the fastest fork right now): avatarmanz/VIctory-7900XTX#53.

Mode Upscale on the host Rendered fps
⚪ Title's own upscaler — 18.4
🟢 VICTORY_FFX_SCALE=0.5 ✅ render=[1920, 1080] output=[3840, 2160] 19.7
🟢 VICTORY_FFX_SCALE=0.6666667 ✅ render=[2560, 1440] output=[3840, 2160] 20.0
  • ✅ The picker and scale patches apply on 1.0.2.1 (title+0x7e93f0, title+0x28ef680), and the first host upscale returns result=0.
  • 🧮 fps barely moves with the scale: the frame is CPU-bound there (GPU 11–13 ms of ~50 ms).

RX 9070 XT, Ryzen 7 9800X3D, 32 GB, Series X profile, FidelityFX SDK 2.4.0 (upscaler 4.1.2).

📜 Log evidence

Our own log lines from the measured runs (click a mode):

A · Baseline: title's own upscaler · 18.4 fps rendered

A-20261126-025054

2026-11-25T23:50:54 victory_hle::modules::fidelityfx: no FidelityFX folder (VICTORY_FIDELITYFX_DIR): a title's own FidelityFX DLLs run
…
2026-11-25T23:53:16 19.2 fps, 52.1 ms/frame (35.7 preparing: copies 13.4 ms 109.0 MB, textures 1.5 ms 15.6 MB; 0.0 on the GPU; 13.1 copying back 33.9 MB), 6716 draws/frame, dropped 309 without a host pipeline (0 being made)
2026-11-25T23:53:21 19.2 fps, 52.0 ms/frame (34.2 preparing: copies 12.9 ms 110.6 MB, textures 1.6 ms 20.1 MB; 0.0 on the GPU; 12.3 copying back 34.0 MB), 6956 draws/frame, dropped 326 without a host pipeline (0 being made)
2026-11-25T23:53:26 18.6 fps, 53.8 ms/frame (33.6 preparing: copies 11.8 ms 109.6 MB, textures 1.3 ms 16.8 MB; 0.0 on the GPU; 13.7 copying back 38.7 MB), 7106 draws/frame, dropped 327 without a host pipeline (0 being made)
2026-11-25T23:53:31 18.7 fps, 53.5 ms/frame (33.2 preparing: copies 11.5 ms 110.3 MB, textures 1.5 ms 17.4 MB; 0.0 on the GPU; 13.2 copying back 38.4 MB), 7048 draws/frame, dropped 327 without a host pipeline (0 being made)
2026-11-25T23:53:36 18.4 fps, 54.3 ms/frame (34.0 preparing: copies 12.1 ms 110.9 MB, textures 1.5 ms 19.9 MB; 0.0 on the GPU; 13.9 copying back 38.9 MB), 7086 draws/frame, dropped 323 without a host pipeline (0 being made)
B · FSR 1080p → 2160p: render 1920×1080 → 3840×2160 · 19.7 fps rendered

B-20261126-025703

2026-11-25T23:57:04 victory_hle::modules::fidelityfx: FidelityFX: the host's upscaler serves the title's folder=<FidelityFX SDK 2.4.0 signedbin> versions="4.1.2, 3.1.6, 2.3.4"
VIctory: patched FidelityFX render scale (0.5) at title+0x28ef680
VIctory: patched upscaler picker (returns 7) at title+0x7e93f0
2026-11-25T23:57:06 victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host provider="4.1.2" id=0xf5a5ca1e01001002 render=[1920, 1080] output=[3840, 2160] flags=0x29
2026-11-25T23:57:43 victory_hle::modules::fidelityfx: FidelityFX: first upscaling, host formats of its textures formats=[10, 19, 34, 67]
2026-11-25T23:57:43 victory_hle::modules::fidelityfx: FidelityFX: first successful host upscale result=0 render=[1920, 1080]
…
2026-11-25T23:59:31 19.4 fps, 51.5 ms/frame (34.2 preparing: copies 13.9 ms 114.3 MB, textures 1.7 ms 20.6 MB; 0.0 on the GPU; 13.0 copying back 33.3 MB), 6597 draws/frame, dropped 358 without a host pipeline (0 being made)
2026-11-25T23:59:37 20.2 fps, 49.6 ms/frame (31.7 preparing: copies 11.1 ms 100.5 MB, textures 1.6 ms 20.9 MB; 0.0 on the GPU; 11.9 copying back 33.1 MB), 7111 draws/frame, dropped 318 without a host pipeline (0 being made)
2026-11-25T23:59:42 19.5 fps, 51.4 ms/frame (32.6 preparing: copies 12.0 ms 107.4 MB, textures 1.6 ms 18.1 MB; 0.0 on the GPU; 12.9 copying back 34.4 MB), 6836 draws/frame, dropped 323 without a host pipeline (0 being made)
2026-11-25T23:59:47 20.1 fps, 49.7 ms/frame (31.9 preparing: copies 10.6 ms 104.5 MB, textures 1.5 ms 17.2 MB; 0.0 on the GPU; 12.3 copying back 34.7 MB), 6699 draws/frame, dropped 317 without a host pipeline (0 being made)
2026-11-25T23:59:52 20.2 fps, 49.5 ms/frame (35.5 preparing: copies 12.6 ms 102.5 MB, textures 1.9 ms 22.1 MB; 0.0 on the GPU; 13.4 copying back 35.4 MB), 4348 draws/frame, dropped 443 without a host pipeline (0 being made)
C · FSR 1440p → 2160p: render 2560×1440 → 3840×2160 · 20.0 fps rendered

C-20261126-030546

2026-11-26T00:05:55 victory_hle::modules::fidelityfx: FidelityFX: the host's upscaler serves the title's folder=<FidelityFX SDK 2.4.0 signedbin> versions="4.1.2, 3.1.6, 2.3.4"
VIctory: patched FidelityFX render scale (0.6666667) at title+0x28ef680
VIctory: patched upscaler picker (returns 7) at title+0x7e93f0
2026-11-26T00:05:58 victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host provider="4.1.2" id=0xf5a5ca1e01001002 render=[2560, 1440] output=[3840, 2160] flags=0x29
2026-11-26T00:06:42 victory_hle::modules::fidelityfx: FidelityFX: first upscaling, host formats of its textures formats=[10, 19, 34, 67]
2026-11-26T00:06:42 victory_hle::modules::fidelityfx: FidelityFX: first successful host upscale result=0 render=[2560, 1440]
…
2026-11-26T00:08:03 19.5 fps, 51.3 ms/frame (35.1 preparing: copies 12.1 ms 101.1 MB, textures 2.0 ms 25.3 MB; 0.0 on the GPU; 14.7 copying back 36.0 MB), 6282 draws/frame, dropped 321 without a host pipeline (0 being made)
2026-11-26T00:08:08 19.5 fps, 51.2 ms/frame (35.5 preparing: copies 13.0 ms 94.8 MB, textures 2.0 ms 28.5 MB; 0.5 on the GPU; 14.7 copying back 34.1 MB), 5223 draws/frame, dropped 357 without a host pipeline (0 being made)
2026-11-26T00:08:14 19.9 fps, 50.3 ms/frame (34.2 preparing: copies 12.2 ms 92.5 MB, textures 1.3 ms 15.2 MB; 0.0 on the GPU; 14.8 copying back 36.7 MB), 5581 draws/frame, dropped 341 without a host pipeline (0 being made)
2026-11-26T00:08:19 21.3 fps, 47.0 ms/frame (30.9 preparing: copies 11.6 ms 94.9 MB, textures 1.3 ms 17.4 MB; 0.0 on the GPU; 13.8 copying back 37.1 MB), 5501 draws/frame, dropped 338 without a host pipeline (0 being made)
2026-11-26T00:08:24 21.9 fps, 45.6 ms/frame (30.6 preparing: copies 11.7 ms 94.7 MB, textures 1.4 ms 17.6 MB; 0.0 on the GPU; 13.5 copying back 36.2 MB), 5474 draws/frame, dropped 342 without a host pipeline (0 being made)
**@⁠AwkGrep256** on GitHub · 2026-11-26 00:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7178804809) · edited 2026-11-26 00:37 UTC ## ✅ Tested on another fork: FSR at 1080p and 1440p → 4K This PR's render-scale switch, with the host FidelityFX path, now runs on [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX) (the fastest fork right now): [avatarmanz/VIctory-7900XTX#53](https://github.com/avatarmanz/VIctory-7900XTX/pull/53). | Mode | Upscale on the host | Rendered fps | |---|---|---:| | ⚪ Title's own upscaler | — | 18.4 | | 🟢 `VICTORY_FFX_SCALE=0.5` | ✅ `render=[1920, 1080] output=[3840, 2160]` | 19.7 | | 🟢 `VICTORY_FFX_SCALE=0.6666667` | ✅ `render=[2560, 1440] output=[3840, 2160]` | 20.0 | - ✅ The picker and scale patches apply on 1.0.2.1 (`title+0x7e93f0`, `title+0x28ef680`), and the first host upscale returns `result=0`. - 🧮 fps barely moves with the scale: the frame is CPU-bound there (GPU 11–13 ms of ~50 ms). RX 9070 XT, Ryzen 7 9800X3D, 32 GB, Series X profile, FidelityFX SDK 2.4.0 (upscaler 4.1.2). ## 📜 Log evidence Our own log lines from the measured runs (click a mode): <details><summary><b>A · Baseline</b>: title's own upscaler · 18.4 fps rendered</summary> `A-20261126-025054` ```text 2026-11-25T23:50:54 victory_hle::modules::fidelityfx: no FidelityFX folder (VICTORY_FIDELITYFX_DIR): a title's own FidelityFX DLLs run … 2026-11-25T23:53:16 19.2 fps, 52.1 ms/frame (35.7 preparing: copies 13.4 ms 109.0 MB, textures 1.5 ms 15.6 MB; 0.0 on the GPU; 13.1 copying back 33.9 MB), 6716 draws/frame, dropped 309 without a host pipeline (0 being made) 2026-11-25T23:53:21 19.2 fps, 52.0 ms/frame (34.2 preparing: copies 12.9 ms 110.6 MB, textures 1.6 ms 20.1 MB; 0.0 on the GPU; 12.3 copying back 34.0 MB), 6956 draws/frame, dropped 326 without a host pipeline (0 being made) 2026-11-25T23:53:26 18.6 fps, 53.8 ms/frame (33.6 preparing: copies 11.8 ms 109.6 MB, textures 1.3 ms 16.8 MB; 0.0 on the GPU; 13.7 copying back 38.7 MB), 7106 draws/frame, dropped 327 without a host pipeline (0 being made) 2026-11-25T23:53:31 18.7 fps, 53.5 ms/frame (33.2 preparing: copies 11.5 ms 110.3 MB, textures 1.5 ms 17.4 MB; 0.0 on the GPU; 13.2 copying back 38.4 MB), 7048 draws/frame, dropped 327 without a host pipeline (0 being made) 2026-11-25T23:53:36 18.4 fps, 54.3 ms/frame (34.0 preparing: copies 12.1 ms 110.9 MB, textures 1.5 ms 19.9 MB; 0.0 on the GPU; 13.9 copying back 38.9 MB), 7086 draws/frame, dropped 323 without a host pipeline (0 being made) ``` </details> <details><summary><b>B · FSR 1080p → 2160p</b>: render 1920×1080 → 3840×2160 · 19.7 fps rendered</summary> `B-20261126-025703` ```text 2026-11-25T23:57:04 victory_hle::modules::fidelityfx: FidelityFX: the host's upscaler serves the title's folder=<FidelityFX SDK 2.4.0 signedbin> versions="4.1.2, 3.1.6, 2.3.4" VIctory: patched FidelityFX render scale (0.5) at title+0x28ef680 VIctory: patched upscaler picker (returns 7) at title+0x7e93f0 2026-11-25T23:57:06 victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host provider="4.1.2" id=0xf5a5ca1e01001002 render=[1920, 1080] output=[3840, 2160] flags=0x29 2026-11-25T23:57:43 victory_hle::modules::fidelityfx: FidelityFX: first upscaling, host formats of its textures formats=[10, 19, 34, 67] 2026-11-25T23:57:43 victory_hle::modules::fidelityfx: FidelityFX: first successful host upscale result=0 render=[1920, 1080] … 2026-11-25T23:59:31 19.4 fps, 51.5 ms/frame (34.2 preparing: copies 13.9 ms 114.3 MB, textures 1.7 ms 20.6 MB; 0.0 on the GPU; 13.0 copying back 33.3 MB), 6597 draws/frame, dropped 358 without a host pipeline (0 being made) 2026-11-25T23:59:37 20.2 fps, 49.6 ms/frame (31.7 preparing: copies 11.1 ms 100.5 MB, textures 1.6 ms 20.9 MB; 0.0 on the GPU; 11.9 copying back 33.1 MB), 7111 draws/frame, dropped 318 without a host pipeline (0 being made) 2026-11-25T23:59:42 19.5 fps, 51.4 ms/frame (32.6 preparing: copies 12.0 ms 107.4 MB, textures 1.6 ms 18.1 MB; 0.0 on the GPU; 12.9 copying back 34.4 MB), 6836 draws/frame, dropped 323 without a host pipeline (0 being made) 2026-11-25T23:59:47 20.1 fps, 49.7 ms/frame (31.9 preparing: copies 10.6 ms 104.5 MB, textures 1.5 ms 17.2 MB; 0.0 on the GPU; 12.3 copying back 34.7 MB), 6699 draws/frame, dropped 317 without a host pipeline (0 being made) 2026-11-25T23:59:52 20.2 fps, 49.5 ms/frame (35.5 preparing: copies 12.6 ms 102.5 MB, textures 1.9 ms 22.1 MB; 0.0 on the GPU; 13.4 copying back 35.4 MB), 4348 draws/frame, dropped 443 without a host pipeline (0 being made) ``` </details> <details><summary><b>C · FSR 1440p → 2160p</b>: render 2560×1440 → 3840×2160 · 20.0 fps rendered</summary> `C-20261126-030546` ```text 2026-11-26T00:05:55 victory_hle::modules::fidelityfx: FidelityFX: the host's upscaler serves the title's folder=<FidelityFX SDK 2.4.0 signedbin> versions="4.1.2, 3.1.6, 2.3.4" VIctory: patched FidelityFX render scale (0.6666667) at title+0x28ef680 VIctory: patched upscaler picker (returns 7) at title+0x7e93f0 2026-11-26T00:05:58 victory_hle::modules::fidelityfx: FidelityFX: upscaler context on the host provider="4.1.2" id=0xf5a5ca1e01001002 render=[2560, 1440] output=[3840, 2160] flags=0x29 2026-11-26T00:06:42 victory_hle::modules::fidelityfx: FidelityFX: first upscaling, host formats of its textures formats=[10, 19, 34, 67] 2026-11-26T00:06:42 victory_hle::modules::fidelityfx: FidelityFX: first successful host upscale result=0 render=[2560, 1440] … 2026-11-26T00:08:03 19.5 fps, 51.3 ms/frame (35.1 preparing: copies 12.1 ms 101.1 MB, textures 2.0 ms 25.3 MB; 0.0 on the GPU; 14.7 copying back 36.0 MB), 6282 draws/frame, dropped 321 without a host pipeline (0 being made) 2026-11-26T00:08:08 19.5 fps, 51.2 ms/frame (35.5 preparing: copies 13.0 ms 94.8 MB, textures 2.0 ms 28.5 MB; 0.5 on the GPU; 14.7 copying back 34.1 MB), 5223 draws/frame, dropped 357 without a host pipeline (0 being made) 2026-11-26T00:08:14 19.9 fps, 50.3 ms/frame (34.2 preparing: copies 12.2 ms 92.5 MB, textures 1.3 ms 15.2 MB; 0.0 on the GPU; 14.8 copying back 36.7 MB), 5581 draws/frame, dropped 341 without a host pipeline (0 being made) 2026-11-26T00:08:19 21.3 fps, 47.0 ms/frame (30.9 preparing: copies 11.6 ms 94.9 MB, textures 1.3 ms 17.4 MB; 0.0 on the GPU; 13.8 copying back 37.1 MB), 5501 draws/frame, dropped 338 without a host pipeline (0 being made) 2026-11-26T00:08:24 21.9 fps, 45.6 ms/frame (30.6 preparing: copies 11.7 ms 94.7 MB, textures 1.4 ms 17.6 MB; 0.0 on the GPU; 13.5 copying back 36.2 MB), 5474 draws/frame, dropped 342 without a host pipeline (0 being made) ``` </details>
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-26 00:37 UTC · original

@⁠Marvisak, a short status for review: this PR now runs on a second codebase too (the 7900 XTX fork), on an RX 9070 XT.

✅ Patches apply on 1.0.2.1 picker title+0x7e93f0, scale title+0x28ef680
✅ Host upscale FSR 4.1.2, render=[1920, 1080] and [2560, 1440] → [3840, 2160], result=0
🔒 Default runs unchanged: off unless VICTORY_UPSCALER / VICTORY_FFX_SCALE are set

Results and logs are in the comment above. Is an opt-in, title-specific switch like this something you'd take upstream?

**@⁠AwkGrep256** on GitHub · 2026-11-26 00:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/1793#issuecomment-7178950046) @⁠Marvisak, a short status for review: this PR now runs on a second codebase too (the [7900 XTX fork](https://github.com/avatarmanz/VIctory-7900XTX/pull/53)), on an RX 9070 XT. | | | |---|---| | ✅ Patches apply on 1.0.2.1 | picker `title+0x7e93f0`, scale `title+0x28ef680` | | ✅ Host upscale | FSR 4.1.2, `render=[1920, 1080]` and `[2560, 1440]` → `[3840, 2160]`, `result=0` | | 🔒 Default runs | unchanged: off unless `VICTORY_UPSCALER` / `VICTORY_FFX_SCALE` are set | Results and logs are in the comment above. Is an opt-in, title-specific switch like this something you'd take upstream?
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 origin '+refs/pull/1793/head:github-bot/gh-1793'
git switch 'github-bot/gh-1793'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1793'
git switch 'github-bot/gh-1793'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1793'
git switch 'github-bot/gh-1793'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1793'
git switch 'main'
git merge --squash 'github-bot/gh-1793'
git switch 'main'
git merge --ff-only 'github-bot/gh-1793'
git switch 'main'
git merge 'github-bot/gh-1793'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1793
No description provided.