FidelityFX: DLSS frame generation on frames the title upscales (stacked on #1704) #1715
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!1715
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1715"
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?
@marquezinii on GitHub · 2026-11-24 21:08 UTC · original
marquezinii:gpu/dlss-frame-generation→main· +3359 −68 · 11 files · 5 commits · openStacked on #1704 (DLSS upscaling), which is stacked on #1868, all on
mainat940d32f. Only the last commit (6aaec93) is new here.What
With
VICTORY_DLSS_FG=<n>besideVICTORY_DLSS_DIR, DLSS frame generation (DLSS-G) addsnframes between the presented ones: 1 for 2x, 2 for 3x, 3 for 4x on GPUs that offer multi frame generation. It needs an RTX 40 or newer and hardware-accelerated GPU scheduling. Streamline reports when either is missing, and the log says frame generation is unavailable.The title asks for no frame generation, so the inputs come from the title's upscale.
eOnlyValidNow, so Streamline copies them on the list. The title may reuse them before the present. The frame's constants are the upscale's.presentCommonruns. DLSS-G needs it too, since in manual hooking that is how it gets the back buffer and inserts its frames. This PR adds the start of the first frame there.Without
VICTORY_DLSS_FGnothing changes from #1704: no markers, no Reflex, and the upscale numbers frames per dispatch.Tested
Windows 11 26300, RTX 5070 (driver 621.40), Streamline SDK 2.14.16, on this branch rebased on
940d32f:dlss::tests::frame_generation_presents_generated_framesopens a window and gets its swap chain from the proxy factory. It then runs 120 frames, each with a DLSS upscale on the list, a present and the markers, and checks that DLSS-G reportsn + 1frames among the last 10 presents, and never more. It passes forVICTORY_DLSS_FG=1,2and3, that is 2x, 3x and 4x. It skips without both variables.VICTORY_DLSS_FG=1, #1704's title-shaped test (victory-hle/tests/dlss.rs, FP16 and RGB9E5 outputs) still passes, and so does the upscale-only path without it.-D warningspasses, with and without--all-features.Not tested: frame generation in the title. #1704 ran there (see its description), but I didn't turn DLSS-G on in the title. Several things are unchecked:
dlss: frame generation presentinglogs the status.@Marvisak on GitHub · 2026-11-25 01:35 UTC · original · edited 2026-11-25 06:26 UTC
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. This adds DLSS frame generation (
VICTORY_DLSS_FG) on top of #1704 (DLSS upscaling through Streamline), which sits on #1868. The diff againstmaintherefore carries all three: the newcrates/victory-gpu/src/dlss.rs,rgb9e5.rs, and changes toresource.rs,host.rsandvictory-hle'sfidelityfx.rs. Only6aaec93is new here. The stack makes VICTORY load and run third-party native code:LoadLibraryWonsl.interposer.dlland its plugins, from the folderVICTORY_DLSS_DIRnames (dlss.rs). The swap chain then comes from Streamline's proxy factory. Loading outside DLLs is the maintainer's call, so this cannot be a merge candidate on its own. Two more things before a content review is worth it:main.frame_generation_presents_generated_framesfails about one run in five, by the description's own account, with no cause found. Please confirm the cause (window focus or occlusion) or make the test tolerate it before it lands.Thanks for the rebase and the clear notes on what is untested. It merges cleanly with
mainnow.CI: passing (
check).Generated by Claude Code
@marquezinii on GitHub · 2026-11-25 04:48 UTC · original
Rebased on
940d32fwith #1704, which is now stacked on #1868. Thehost.rsconflict is gone, because #1704 now routes the swap chain through Streamline whenever DLSS is on, and this PR only adds the frame-generation start there. The FG test now checks the last 10 presents and prints DLSS-G's status when it fails. Its flakiness is described in the updated description.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.