Repository navigation
FidelityFX: Series X switches to the host upscaler and its render scale (rework of #1284) - #1793
AwkGrep256 wants to merge 1 commit into
Conversation
233ed59 to
257d19d
Compare
|
@Marvisak @Dufftwt @marquezinii update after a run in the title. The description is updated with the full details.
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. |
|
@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 |
257d19d to
37603a1
Compare
7b62291 to
f39c87e
Compare
|
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 The same crash occurs at scale 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. |
|
Automated triage for the maintainers. Needs work. This still needs the maintainer's decision. The head ( 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:
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 ( Generated by Claude Code |
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 Marvisak#1284 onto main's fidelityfx module.
f39c87e to
0c9187d
Compare
|
@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 (
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)
The pushed commit |
|
I reran the game on the exact pushed revision,
The earlier story cutscene tests on fxceless Independent Series X tests welcome. Build with |
|
@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.
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 |
|
Tested on Windows 10 22H2 (19045), RX 6800 XT, Agility SDK runtime (#84), merged with #1997 on |
|
@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. |
✅ Tested on another fork: FSR at 1080p and 1440p → 4KThis 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.
RX 9070 XT, Ryzen 7 9800X3D, 32 GB, Series X profile, FidelityFX SDK 2.4.0 (upscaler 4.1.2). 📜 Log evidenceOur own log lines from the measured runs (click a mode): A · Baseline: title's own upscaler · 18.4 fps rendered
B · FSR 1080p → 2160p: render 1920×1080 → 3840×2160 · 19.7 fps rendered
C · FSR 1440p → 2160p: render 2560×1440 → 3840×2160 · 20.0 fps rendered
|
|
@Marvisak, a short status for review: this PR now runs on a second codebase too (the 7900 XTX fork), on an RX 9070 XT.
Results and logs are in the comment above. Is an opt-in, title-specific switch like this something you'd take upstream? |
Important
Series X gains host FSR with an adjustable internal render resolution. On title 1.0.2.1,
mainroutes 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_DIRat the SDK’sKits/FidelityFX/signedbindirectory and run with--console series-xand both switches:VICTORY_UPSCALER=7VICTORY_FFX_SCALE=0.5Changes after triage
Hardware results
Windows, RX 9070 XT, title 1.0.2.1, Series X, FidelityFX SDK 2.4.0.
f25e735+ the fork FSR patch from #86, local test commit29b55f0result=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.