AMD FSR + Frame Generation 3 / 4.0.2, and the RX 9070 XT compiler-crash guard #53
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!53
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-53"
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-26 00:28 UTC · original
AwkGrep256:fsr-framegen-rdna4→main· +2432 −22 · 25 files · 21 commits · open🎮 AMD FSR + Frame Generation 3 / 4.0.2 on this fork
@avatarmanz, your fork is the fastest build around, so this brings the host FidelityFX work from upstream to it: AMD FSR upscaling, Frame Generation 3, and the experimental Frame Generation 4.0.2 with the title's camera. It all ran here on an RX 9070 XT (results below). On your 7900 XTX with 64 GB it should run in full mode too. A quick run on your machine would be the most useful test. The commands are below.
📊 Results: RX 9070 XT, 32 GB,
-Safe, starting location██████████████░░███████████████░render=[1920, 1080] output=[3840, 2160]████████████████render=[2560, 1440] output=[3840, 2160]████████████████provider="3.1.6",presents=6for 3 rendered██████████████░░provider="4.0.2",camera_pose=trueRendered fps = median per second in the world, leaving out seconds under 5 fps (paging on 32 GB, counted separately).
What it shows
camera_pose=true): the velocity pass's camera is matched to each upscale. In play, HUD text flickered with FG 3 but not with FG 4.0.2.✅ Checks per mode
result=0e4b9cc9)📜 Log evidence
Our own log lines from each measured run (click a mode). In the fps lines,
preparing(our CPU side of each frame) is ~31–36 ms of ~50 ms, whatever the render scale: the frame is CPU-bound, which is why FSR moves fps so little and frame generation helps so much.A · Baseline: title's own upscaler · 18.4 fps rendered
A-20261126-025054B · FSR 1080p → 2160p: render 1920×1080 → 3840×2160 · 19.7 fps rendered
B-20261126-025703C · FSR 1440p → 2160p: render 2560×1440 → 3840×2160 · 20.0 fps rendered
C-20261126-030546E · FSR 1440p + FG 3: FG 3: proxy 3.1.7, generator 3.1.6, ×2 · 19.9 fps rendered
E-20261126-031014F · FSR 1440p + FG 4.0.2: FG 4.0.2: proxy 4.0.0, generator 4.0.2, camera_pose=true, ×2 · 17.9 fps rendered
F-20261126-031656▶️ How to run it
Get the FidelityFX SDK (2.4.0 was used) and point at its
Kits\FidelityFX\signedbinfolder. Build as usual:scripts\play.ps1 -Exe <exe> -More @{ ... }VICTORY_FIDELITYFX_DIR='<signedbin>'; VICTORY_UPSCALER='7'; VICTORY_FFX_SCALE='0.5'VICTORY_FFX_SCALE='0.6666667'VICTORY_FIDELITYFX_FRAMEGEN='1'VICTORY_FIDELITYFX_FRAMEGEN='4'VICTORY_FIDELITYFX_DIRhas to go through-More:play.ps1clears every otherVICTORY_*variable.🧩 What's in it
6342a262f243600b35b7f(only that part)b83a8d6…730690c549e567…cee7b2a1046978,e4b9cc947eefb0,4c68011Everything new is behind switches that are off by default. Without them a run is unchanged, apart from the compiler-crash guard.
⚠️ Known limits
Tested: Windows 11 (26300), RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 9800X3D, 32 GB, title 1.0.2.1, Series X profile,
play.ps1 -Safe, 48 pipeline workers.@FrozenGuy7 on GitHub · 2026-11-26 01:43 UTC · original
A second RX 9070 XT, same results: FSR 1440p→4K + Frame Generation 4.0.2 works, together with #55.
Host: RX 9070 XT 16 GB, Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 7 9800X3D, 32 GB, Windows 11 26300. Diagnostics build of
0a43566+ this PR (e4b9cc9) + #55 + #24 (all merged cleanly). FidelityFX SDK 2.4.0signedbin(upscaler 4.1.2.0, frame generation 4.0.2.0, both AMD-signed).play.ps1 -Safe -More @{VICTORY_FIDELITYFX_DIR=…; VICTORY_UPSCALER='7'; VICTORY_FFX_SCALE='0.6666667'; VICTORY_FIDELITYFX_FRAMEGEN='4'}.What the log showed, in order:
the host's upscaler serves the title's … versions="4.1.2, 3.1.6, 2.3.4"patched FidelityFX render scale (0.6666667),patched upscaler picker (returns 7)proxy swap chain provider="4.0.0"upscaler context on the host provider="4.1.2" … render=[2560, 1440] output=[3840, 2160]first successful host upscale result=0generator for the upscaled frames provider="4.0.2"camera_pose=truegenerated frames … rendered=3 … generated=3 presents=6Run: 36 min through the prologue into free roam. It ended cleanly ("title suspended; ending the title"), with no faults; this PR's compiler guard never triggered (with #55 there was nothing for it to catch). In the world (frames with more than 2,000 draws): median 14.5 rendered fps, p10 10.5, p90 17.7, at a median of 5,910 draws per frame (max 12,577). That's a little under your 18–20, probably because much of my run was free roam.
Two notes from the run:
-Safeon 32 GB is still tight. At the lowest point the PC had 200 MB of RAM free and 1.3 GB of commit left, out of a commit limit of about 69 GB (RAM plus page file). It didn't fail, but a browser left open could tip it over.AI-assisted: the setup, log reading and this text were done with Claude Code; the hardware and play are mine.
@avatarmanz on GitHub · 2026-11-26 07:33 UTC · original
Left open: conflicts with main (victory-loader/src/lib.rs). The new CheckFeatureSupport answers and the compiler-crash handler apply to every run; the FSR and scale part would need a rebase with those behind VICTORY_FIDELITYFX_DIR. Frame generation is already opt-in.
@0xmp3 on GitHub · 2026-11-26 07:48 UTC · original
Tested on an RX 9070 XT: FSR/FG not tested (no SDK here), but the compiler-crash guard is slower than the skip list it replaces
Built
e4b9cc9(cargo build --locked --profile diag -p victory --features diagnostics) and ran it on this card:RX 9070 XT 16 GB (gfx1201), driver 32.0.32015.7029, Ryzen 5 5600, 64 GB, Windows 11 26300, Series X,
scripts\play.ps1 -Safe.I did not test FSR or frame generation — that needs the FidelityFX SDK folder and I do not have it here, so everything
below is the default path with
VICTORY_SHADER_OPT=59(which this card needs regardless of this PR).Three configurations, same save, same area,
SHADER_OPT=59throughout:SHADER_OPTunsetcrashed.txtwent from 2 entries to 5 across those runs — so the guard caught three pipelines correctly, and each oneis genuinely left out (the black/dotted run shows what dropping them costs visually, which is expected and not a bug).
The slowdown looks like the parked thread. The handler ends with:
so the thread that hit the compiler never unwinds, and every
MutexGuard/RwLockGuardon its stack is held for thelife of the process —
same_name(name)andlibrary.saving.read()are both taken around library calls, and the wholerun then serialises behind them. That fits the shape of what I saw: 7.5 fps before the first catch, 2.4 after the third,
no recovery, and no crash.
Suggestion, if it is useful: keep the VEH for detection but let the thread leave cleanly instead of sleeping in the
handler — run
createon a disposable thread and join it (a thread that dies of the fault is then just a false join),record the name, and return the
E_FAILyou already return for a crashed pipeline. That keeps the ergonomic win (nohand-maintained hash list) without holding locks forever.
Happy to re-test a revision on this card — the setup is reproducible and
crashed.txtgrowing is an easy signal tofollow. If you want the FSR/FG half tested too, tell me which SDK build to drop in and I will run B/C/E/F here and post
the log lines in your format.
e4b9cc9b22tof239382850@AwkGrep256 on GitHub · 2026-11-26 10:09 UTC · original
Thanks for clarifying, @avatarmanz. I rebased this onto
9576c45and resolved the conflicts while keeping the fork’s current present and frame-meter paths.The Series X picker and scale patches, the additional
CheckFeatureSupportanswers, and the compiler-crash guard now activate only after the host upscaler loads successfully fromVICTORY_FIDELITYFX_DIR(or its config equivalent). Frame generation still requires a separate opt-in withVICTORY_FIDELITYFX_FRAMEGEN=1for 3.x or=4for 4.0.2.Both Windows workspace Clippy checks passed. The earlier RX 9070 XT run showed FSR at 1440p → 4K and generated frames with provider 4.0.2. The rebased head still needs its in-game run. Thanks for pointing out the default-mode impact.
@AwkGrep256 on GitHub · 2026-11-26 10:57 UTC · original · edited 2026-11-26 11:05 UTC
@avatarmanz, thanks for picking up the #53 scale and upscaler picker changes in
f63b4b1ande151e71. I ran the rebased #53 headf239382on an RX 9070 XT with 32 GB RAM in-Safe.result=0. The glow was absent in the scene we compared.Brief stalls occurred with both FG off and FG 4.0.2 on. Input feel was assessed in play. A 1440p → 4K comparison with FG 3 on and off on your 7900 XTX would help check the HUD behavior and whether the crash repeats. Thanks for the resolution work. Related upstream PRs are Marvisak/VIctory#1917 and Marvisak/VIctory#2751.
@z395977743-svg on GitHub · 2026-11-26 14:20 UTC · original
Tested the rebased #53 host path on an RX 7900 XTX (RDNA 3), driver 32.0.32029.2010, Ryzen 5 5600X, 32 GB RAM, Windows 10 build 19045. This is a 1080p-output comparison in the prison room facing the window after skipping the intro. Same copied save per launch, Series X, 1280×720 input, 1920×1080 output, no RT or driver frame generation. The build combines
c9c932c+ #53f239382, #98, #153 and local Agility 1.620.2 support.Only
VICTORY_THINchanged between these two runs. Both used the normal play script withJOIN_PARTS=8andUPLOAD_AHEAD=1, the signed FidelityFX SDK 2.4.0 DX12 DLLs, upscaler 7,FFX_SCALE=0.6666667andFIDELITYFX_FRAMEGEN=1.In the working run the engine averaged 11.25 real FPS over 555 sampled frames, about 4,973 draws/frame. The SDK proxy exposes presents as Application frames in this PresentMon version, hence the separate SDK and display counts. The normal thin-list frontend doesn't hold the host command list that
external::host_texturerequests. Disabling just THIN restored dispatch in this setup and left the other two play-script optimizations enabled. This was a short, stationary test. It doesn't cover outdoor movement, HUD stability in motion, or a full playthrough.@Jrjy3 on GitHub · 2026-11-26 18:02 UTC · original
Tested on an AMD Radeon AI PRO R9700 (RDNA 4, 32 GB), driver 32.0.32015.2008, Ryzen 9 9950X3D, Windows 11 26300. Head
f239382merged onto mainc9c932c(plus #55), clean merge. AMD-signed DLLs from FidelityFX SDK v2.4.0Kits/FidelityFX/signedbin(upscaler 4.1.2, frame generation 4.0.2).VICTORY_UPSCALER=7,VICTORY_FFX_SCALE=0.6666667.The world is black whenever
VICTORY_THIN=1is on, and that isscripts\play.ps1's default (non--Safe) mode. The menus, audio and subtitles still work. The log says, once:-Safe, 4K output (as tested above)first successful host upscale result=0-Safe+ renderer patches 1, 2, 5, 6, 7VICTORY_THIN=0, patches,VICTORY_OUTPUT=2560x1440Probable cause:
external::host_texturestarts withcrate::list::host_list(list)?. Under THIN the title's calls are only written down when it callsffxDispatch, and the host list is made later on our threads, so there is no host list or texture state yet. Recording the upscale as a THIN call (run at its place when the list is translated) would probably fix it. Until then, a log line saying FSR needsVICTORY_THIN=0or-Safewould save people a black screen.Frame generation (
VICTORY_FIDELITYFX_FRAMEGEN=4, diagnostics build: it is compiled only there) loads and runs:proxy swap chain provider="4.0.0", about 18 rendered fps in the prologue with THIN off. Between hitches it looks smooth, but there is a hitch about every second. The same hitch shows with THIN off and FSR alone, and not in our normal THIN-on sessions, so it looks like a cost of THIN off rather than of frame generation. One session each, not measured frame by frame. For comparison, on this card with the title's own upscaler, THIN on, the patches and 1440p output, the boat scene runs at 47 ms (21.3 fps).AI-assisted (Claude Code).
@AwkGrep256 on GitHub · 2026-11-26 18:16 UTC · original
Thanks, @Jrjy3 and @z395977743-svg. The 7900 XTX run where only
VICTORY_THINchanged, plus the R9700 result, pin down when the black screen happens. We tested with-Safe, which explains why we missed it. For now, use-SafeorVICTORY_THIN=0with host FSR. I’ll add a startup check and look at running the upscale in order with the other THIN commands, once its textures are ready. The hitch showing up with FG off is useful to know too.@AwkGrep256 on GitHub · 2026-11-26 18:32 UTC · original
@avatarmanz, a heads-up on the native settings work. Marvisak/VIctory#2863 now has a prototype Settings → Graphics → Upscaler row. The prototype has a reusable settings API for adding native rows. The first row uses the game’s normal menu controls and saves the selection to
victory.tomlfor the next launch. If you’re interested in testing or porting it, the upstream draft has the opt-in switches and a short test checklist. The blank stock Graphics rows are still for browsing only. On this fork, the host FSR test still needs-SafeorVICTORY_THIN=0per the reports above.@AwkGrep256 on GitHub · 2026-11-27 01:02 UTC · original
🧪 FG3 HUD flicker test
@avatarmanz,
a7529aa4adds an opt-in fix for the compass and text flicker we saw with FG3. The game still draws its HUD as usual. We copy the scene immediately before that draw and give AMD the clean copy for the matching present, so it can distinguish the HUD from the world.For a comparison at 1440p → 4K with FG3, use the existing FG3 setup and add
VICTORY_FRAMEGEN_HUDLESS='1'to the launcher's-Moresettings. Keep the regular HUD visible. The lineFidelityFX FG3: using matched HUD-less colorconfirms AMD received the clean scene. That log and a quick note about what you see while turning the camera would be plenty. Thanks to anyone who can try it.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.