Repository navigation
Add experimental PC FSR upscaling - #86
AwkGrep256 wants to merge 2 commits into
Conversation
|
The two things the description lists as still needing validation both work on this machine: the SDK dispatch happens, and a frame is visible in the title. Setup: Windows 11, RTX 4060 Ti 8 GB, driver 32.0.16.1656, Ryzen 9 5900X, 64 GB. Build is The context and the dispatch: What that changes on this profile: before this PR, With this PR the same profile draws a frame: Two notes, neither of them about this PR:
No game data; counts, hashes and program names only. |
|
Independent test run on commit
AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report. |
|
A regression this PR introduces on the Same machine: RTX 4060 Ti 8 GB, driver 32.0.16.1656, Windows 11; build
So the UI draws are issued (same counts on both profiles) but nothing reaches the screen. The title accepts input blind: you can open the pause menu, move the selection and resume, with an empty frame. What it is not. I added a temporary log line in The same single plane, one resource, on both profiles. So the UI is not being composited into a plane that Resolution is not it either. The title is told One hypothesis, unverified: with the upscaler on, the title may render the UI into the output texture's own path (or a 4K UI target) that the SDK dispatch writes over, so the upscale result replaces the composition including the UI. On Not a blocker for me - I went back to If a log line or a capture of one frame's UI pass would help, say which pass to name and I will run it. No game data; counts and log lines only. |
Port Marvisak/VIctory#1284 (bea3a58) and keep lazy host texture allocation.
|
Series S on AMD RDNA3, with PC FidelityFX DLLs older than v2.4.0. The upscale context is created on the host GPU and there is no device removal. With a Series X package the Series S profile stops before the world, with or without the PC upscaler, so this run never reached a dispatch. Setup:
What the log shows (5-minute run):
It is not this PR. On an earlier build with the same upscaler commits, the same Series S stall happened in each of these cases:
On that build, the Series X profile reaches the world (3,000–4,000 draws/frame). My guess is that the Series S profile needs the Series S package's data rather than the Series X one, but I haven't confirmed it. So this confirms context creation and the absence of a device loss on RDNA3 with a 2.3.0 loader. It does not confirm the dispatch or the RGB9E5 pack path. #86 already has a report of those working on a 4060 Ti. AI-assisted (Claude Code). No game data attached. |
The counter reader is only called by the diagnostics-only copystat module. Match its feature guard so default Windows clippy builds pass.
|
Thanks for testing this, both of you. @rocobalt1 the missing UI on series-s is a good catch, and I don't know the cause yet. I first suspected the RGB9E5 fallback in this PR (it makes the output texture without a render target flag, so the draw guard skips it), but with #32 merged that texture is already FP16 before it gets there, so that's not it. Heads up on where this is going: upstream main now has its own host FidelityFX path (Marvisak/VIctory@0b35b7f), so I'm moving the parts it doesn't have on top of it. That's the Series X switches ( On my side (RX 9070 XT) the upstream version picked the FSR4 provider 4.1.2 on series-x at 1080p to 4K, and context creation and the first dispatch both went through. @srcamarda thanks, good to know context creation works on RDNA3 too. |
|
Independent 6 GB VRAM Counts, source snippets, and runtime measurements only; no title code or title assets. Setup
Results (Series S, 330 s runs)
In Runs B and C, PC FidelityFX initialized cleanly on the 6 GB card:
On
|
|
Thanks @Ege-Mert, that lines up: the UI on Series S is the second PresentX plane, so it needs Marvisak/VIctory#211 rather than anything in the FSR path. Upstream main doesn't have #211 yet either. The upstream rework I mentioned is up now: Marvisak/VIctory#1793. It's on top of main's own FidelityFX module and covers the Series X switches and the RGB9E5 output. Your description note is handled there by design: the upscaler writes an FP16 stand-in that's described as FP16, then it gets packed into the title's RGB9E5 texture. Game test on Series X coming next. Edit: The current Marvisak/VIctory#1793 adds the Series X switches. The FP16 stand-in was removed after testing showed main’s host upscaler writes RGB9E5 directly. FSR 4.1.2 ran at 1080p to 4K on an RX 9070 XT. |
|
Thanks for the clear follow-up and for pointing to the rework in Marvisak/VIctory#1793. A heads-up for whichever version goes forward: #188 (Series S present planes) also adds an HLE Written with an AI assistant (Claude). |
|
For anyone testing Series S with this PR and missing the menus and HUD (@rocobalt1, @Ege-Mert): #188 draws the present's second plane on this fork, and the two PRs conflict in one file (
How the two fit: with On an RTX 3050 8 GB, Windows 11, release build,
Not tested: AMD cards, Series X with the picker override, runs longer than 5 minutes. AI-assisted: Claude Code (Claude Fable 5.2) made the merge and the runs and wrote this comment. |
Important
Bring the PC FidelityFX SDK upscaler to this fork. The fork’s
mainlacks the Windows D3D12 SDK path. WithVICTORY_FFX_DIRset, #86 lets the title use AMD’s PC upscaler. Upstream Marvisak/VIctory#1793 adds Series X controls to upstream’s existing host implementation.✅ On Windows with an RTX 4060 Ti, #86 + #32 produced a real SDK dispatch and a visible Series S world. That setup needed #32 to reach the first frame. Independent test report
How this fits with #188: #188 adds menus and HUD through second-plane presentation and provides a plain stretch for
ffxDispatch. Both PRs add the same hook. A combined test branch exercised PC FSR when configured and the plain stretch otherwise.Ports Marvisak/VIctory#1284 to this fork, rebased on
c96b4f2. It lets the title call AMD’s PC FidelityFX upscaler on the host D3D12 device. SetVICTORY_FFX_DIRtoKits/FidelityFX/signedbinfrom AMD’s FidelityFX SDK 2.4 to enable it.The port keeps this fork’s lazy host texture allocation. Where the device cannot write RGB9E5 directly, the SDK can write RGBA16F and the compatibility layer packs that result into the title’s sampleable RGB9E5 texture. This covers the SDK output path. The title’s own RGB9E5 render-target writes are discussed in #13 and #32.
Validation
Both workspace clippy builds and the locked workspace tests passed locally on the rebased branch. The branch includes a separate one-line build guard for the diagnostics helper that caused default clippy to fail on the fork’s base.
Windows diagnostics build passed with
cargo build --locked --offline --profile diag -p victory --features diagnostics.Both focused FidelityFX tests passed, including the RGB9E5 pack-and-sample test on WARP.
An independent Windows run on an RTX 4060 Ti with
4e17478+ GPU: 16-bit float RGBA stands in for R9G9B9E5 render targets #32 + this PR confirmed a real SDK dispatch and a visible Series S world. On that setup, GPU: 16-bit float RGBA stands in for R9G9B9E5 render targets #32 was required to reach the first frame. Test report