FidelityFX frame generation on the -Fsr4K path (-FrameGen) #361
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!361
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-361"
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?
@tightfall on GitHub · 2026-11-26 21:59 UTC · original
tightfall:belobug-framegen→a-publier· +1164 −1 · 7 files · 2 commits · openAMD frame generation between the frames the PC FSR 4.1.2 upscales on the
-Fsr4Kpath:scripts\play.ps1 -Fsr4K quality -FrameGen(orVICTORY_FIDELITYFX_FRAMEGEN=1, diagnostics builds).Where it comes from: the frame generation of avatarmanz/VIctory-7900XTX#53 by @AwkGrep256.
framegen.rsandframegen/camera.rsare taken as they are there, plus the presenter's proxy swap chain inhost.rs. Credit for the hard part is theirs. What I changed is only the glue to this tree's FidelityFX module (the one from DexNom ab34a8b2):use_host_dir),VICTORY_FIDELITYFX_FRAMEGEN=1loadsamd_fidelityfx_framegeneration_dx12.dllfrom the same FidelityFX folder, and the presenter's swap chain becomes its proxy.record_dispatch), the depth and motion textures (the title's, saved before they are swapped for host textures) and the dispatch's constants go to frame generation through a newRecording::frame_generation_inputs, inside the recording. So the host list is the one the upscale went into, also underVICTORY_THIN.play.ps1 -FrameGen.Limits: only the analytical mode (
1). #53's mode 4 (the title's camera from its velocity pass) needs its camera trace indraw.rs, which I left out to keep this small. The UI is interpolated with the scene (no HUD-less colour).Tested on an RX 9070, Windows 11, Adrenalin 26.11.2 (diag build of
a-publiercd8dfc0+ this; my run also carried the RDNA 4 record-count fix from avatarmanz/VIctory-7900XTX#55 and hadVICTORY_PORT_DESCRIPTORS=0, see #353).-Fsr4K quality, renderer ports 1, 5, 6 and 7:provider="3.1.7"), the generator (3.1.6, render 2560x1440, screen 3840x2160) andrendered=3 generated=3 presents=6.cargo checkpasses with and without--features diagnostics. I did not run the test suite.Made with AI assistance (Claude Code).
@tightfall on GitHub · 2026-11-26 22:26 UTC · original
Added one commit:
VICTORY_FRAMEGEN_AHEAD=1(off by default) lets frame generation's present go in a list sent ahead like any other present.As in #53, the present with frame generation waited for its one list to run. On the RX 9070 that wait was 11-49 ms a frame (the
settles ... a synchronous submission or presentline), and 0 without frame generation. With the switch:VICTORY_FRAMEGEN_AHEAD=1About 28 fps on screen. 10+ minutes in the world without a fault so far. It stays off by default because #53 notes that a present sent ahead crashed a run there once after 4 minutes; longer runs would tell.
@AwkGrep256 on GitHub · 2026-11-26 23:00 UTC · original
Thanks @tightfall for testing this and sharing both the wait time and the rendered FPS. Going from 11 ms of synchronous wait to 0 ms is interesting. The move from 13.3 to 14.3 rendered FPS gives us a sense of how much it helped in that run.
Keeping
VICTORY_FRAMEGEN_AHEADopt-in sounds right to me. With the present queued ahead, we need to make sure the previous frame's textures and command-list resources stay alive until the GPU finishes using them, even when the game stalls or changes scenes. Our earlier ahead-path crash happened during cleanup, so I'd want a longer same-route on/off test with a loading transition before making it the default. If you already plan to run it again, frame pacing and any crash log would be great to see.For comparison, @thejacte's run on our refresh branch reproduced FG3 compass and tree flicker at 1440p → 4K, while FG4 looked clean in the same scene. We're working on the FG3 flicker separately. Thanks again for getting the port running here.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.