Add experimental PC FSR upscaling #1284
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1284
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1284/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@AwkGrep256 on GitHub · 2026-11-24 17:07 UTC · original
AwkGrep256:pc-fsr→main· +1396 −27 · 13 files · 4 commits · closed without mergingAdds AMD’s PC FidelityFX upscaler to VIctory’s D3D12 path. Set
VICTORY_FFX_DIRto the SDK 2.4Kits\FidelityFX\signedbindirectory to enable it. Series S selects FSR by default. For Series X title 1.0.2.1, use a diagnostics build withVICTORY_UPSCALER=7E93F0andVICTORY_FFX_SCALE=0.5for 1080p → 4K.PC FSR progress
format=67,packed=false).bea3a58and needs an in-game retest on that setup. Original report · Retest requestNext I’ll compare later Series S world frames to see whether the lit HDR input ever contains the scene, then trace the passes that write it if it stays dark. The first captured frame establishes where that frame was already dark. Image quality and the RTX fallback still need in-game validation.
Related discussion: #730. Frame generation and first-dispatch capture diagnostics are in #1287.
@marquezinii on GitHub · 2026-11-24 20:55 UTC · original
Native Windows on NVIDIA, without the title. RTX 5070 (Blackwell), driver 621.40, Windows 11 26300, head
bea3a58. AMD's signed DLLs from SDK v2.4.0Kits/FidelityFX/signedbin.cargo test -p victory-gpu --features diagnostics --locked: 55 passed, 1 ignored, includingpacks_hdr_pixels_into_a_sampleable_rgb9e5_texture.DXGI_FORMAT_R9G9B9E5_SHAREDEXPgivesSupport1=0x8013f0,Support2=0x200: no render target, no typed UAV, no typed UAV store. So on NVIDIA the slot 6 fallback is the path that runs, and its test passes here.ffxCreateContextwith the title's chain shape (the upscale description, then the console backend). Series X sizes (1920x1080 → 3840x2160) and Series S sizes (1280x720 → 1920x1080) both return0with a context. The loader's version query on this card lists upscalers3.1.6and2.3.4and no FSR 4, so NVIDIA gets FSR 3.1.6.Not checked: a dispatch with real inputs, and anything in game; I have no copy of the title.
@AwkGrep256 on GitHub · 2026-11-24 22:41 UTC · original
Main now does the core of this PR (
0b35b7f), so I reworked the parts it doesn't have on top of main'sfidelityfxmodule in #1793: the Series X switches and the RGB9E5 output. Leaving this one open until it's clear which way the maintainer wants it, since #1704 and #1715 are stacked on it.@marquezinii on GitHub · 2026-11-24 23:43 UTC · original
@AwkGrep256 thanks for the note. #1704 and #1715 are now rebuilt on
main'sfidelityfxmodule and no longer depend on this PR. #1704 routes to DLSS from the same placemainroutes to AMD's DLL, and it writes the title's RGB9E5 output through an FP16 texture and a packing pass where the host can't store RGB9E5 through a UAV (NVIDIA: the title-shaped test there passes on an RTX 5070). Nothing keeps this one open on our side.@Marvisak on GitHub · 2026-11-25 00:36 UTC · original
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.Main serves the title's FidelityFX calls with the PC upscaler DLL already (victory-hle modules/fidelityfx.rs, VICTORY_FIDELITYFX_DIR, decision of 2026-11-24).
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
@AwkGrep256 on GitHub · 2026-11-25 00:40 UTC · original
What was missed: the Series X part. On Series X the title's upscaler picker returns its own upscaler, so
VICTORY_FIDELITYFX_DIRalone does nothing there, and with FidelityFX forced on it renders native 4K and overflows its memory plan. #1284'sVICTORY_UPSCALERandVICTORY_FFX_SCALEcover that, and main has neither. Closing this is right otherwise. The Series X part is reworked onto main'sfidelityfxmodule in #1793, verified in the title on an RX 9070 XT (FSR 4.1.2, 1080p to 4K, Series X).@RobertAndreiGit on GitHub · 2026-11-26 13:31 UTC · original · edited 2026-11-26 13:59 UTC
RTX 3060 Ti / Proton, Series S: the PC provider reached a world frame at 720p → 1080p. This was a downstream port of the host FidelityFX path, not a build of this PR head.
codec-d/cool_foxbasef4b48ad766dd, local temporal commit4d8e5728a3df. Ryzen 5 5600, 32 GB, 8 GB RTX 3060 Ti, NVIDIA 615.78.08, CachyOS Proton, vkd3d-proton 3.2.0 (2576c0b4adfae4a).On the console path, twelve timed compute shaders matched the title’s upscaler DLL. Their median combined cost was 309.36 ms/frame, 79% of the 390.8 ms in timed guest commands across 15 world intervals. Instrumentation slowed that build to 712 ms/frame; these numbers should not be subtracted from release frame times.
Both replacement paths passed a synthetic GPU pixel readback under Proton. In release gameplay:
3.1.6Settings: 1080p output, Series S, material cap 512, sparse mips off. On temporal, both the context and first successful dispatch reported
1280×720 → 1920×1080; the output used the fork’s FP16 substitute. The spatial comparison logged one early console fallback and at least 128 successful host dispatches; it exited before the 15-interval target.The user could follow the action on the console-path visual reference. Pixel readback and dispatch logs establish that the replacements wrote an output; nobody confirmed equivalent world/UI rendering on these runs. The save is not a replay: we used the first 15 intervals with 3,000–6,000 draws/frame and ≤15 pending pipelines. The 3.5 FPS result is a measurement of the combination, not a standalone speedup attributable to this PR.
Follow-up with someone watching the 24 ms temporal configuration: a fresh control reproduced 3.5 FPS / 282.4 ms across 15 qualifying world intervals (3,903 draws/frame; 308 dropped). The player described it as visibly smoother and better overall than the earlier runs, but saw backgrounds load a little later and suspected some shading was missing. The scene was visible; the cause of the shading difference and full visual equivalence remain unverified. Provider
3.1.6and the first 720p → 1080p dispatch were confirmed again.@AwkGrep256 on GitHub · 2026-11-26 13:45 UTC · original
@RobertAndreiGit Thanks for testing this on Proton and sharing the numbers. The successful FSR 3.1.6 dispatch at 720p → 1080p on a 3060 Ti is a useful NVIDIA datapoint. I appreciate you separating the pipeline-wait change from the FSR result.
For anyone following this closed PR, the PC SDK port for fxceless is in #86, and the upstream Series X controls are in #1793. If you have a link to the
cool_foxdiff, I’d be interested in seeing how you handled the FP16 output.@RobertAndreiGit on GitHub · 2026-11-26 14:11 UTC · original
@AwkGrep256 Thanks! Here’s the exact
cool_foxdiff and two-frame readback test, based on upstream0b35b7f.The RGB9E5 → FP16 allocation was already in the fork. The change on the SDK side is in
fidelityfx.rs: just before dispatch we readGetDesc().Formaton the actual host texture. If it’sDXGI_FORMAT_R16G16B16A16_FLOAT(10), we set the matching FFX resource description toFFX_API_SURFACE_FORMAT_R16G16B16A16_FLOAT(4) and pass that texture to the SDK. It writes straight into the FP16 target; there’s no pack-back to RGB9E5 in the bridge.On the 3060 Ti under Proton, the synthetic test requested RGB9E5, got host format
10, and checked every output pixel against a known colour after two dispatches with provider3.1.6. The first in-game 720p → 1080p dispatch also reported output format10.@AwkGrep256 on GitHub · 2026-11-26 14:55 UTC · original
@RobertAndreiGit Thanks for sharing the exact diff and the pixel test. I pushed the same host-format check to fxceless #86. When D3D12 gives us an FP16 texture, we now describe it as FP16 to the SDK. The existing packed RGB9E5 path is still there for targets that need it. The descriptor regression and build checks passed. Your Proton readback is the end-to-end evidence we have so far.
Pull request closed