Frame generation: depth and motion copied at the upscaling (grain with the minimap) #3690
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3690
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3690"
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?
@xteral67 on GitHub · 2026-11-30 04:06 UTC · original
xteral67:fsr-fg-depth-motion-copy→main· +95 −0 · 1 files · 1 commits · openWhat it changes
FSR 3 frame generation was given the title's own depth and motion-vector textures as they are at the present (
streamline::fresh_inputs→Source::Host). The present comes after the rest of the frame, and the title draws its minimap after the upscaling with the same depth and motion targets. Frame generation then got the minimap's depth and motion for the whole screen: every generated frame broke up into grain over the whole picture whenever the minimap showed (by its key, at world load, and in any car, where it opens by itself). Real frames were fine, which is why screenshots rarely caught it; DLSS, recorded at the upscaling, was right.Now
notecopies depth and motion (CopyResource, in the title's order, right where the upscaling reads them) into textures of our own, three frames round, and the present gives FidelityFX those copies (Source::Fixed). On by default;VICTORY_FG_SNAPSHOT=0gives the title's textures as before. If a copy cannot be made, it falls back to the title's texture and logs once. Cost: two copies of the render size a frame (about 13 MB at 1706x960).How it was tested
cargo build --locked --profile diag -p victory --features diagnostics(the same code behind an opt-in switch);cargo testnot run for this change.Checked for overlap
VICTORY_FRAMEGEN_SNAPSHOT=1,native_fg && dlssonly); the FSR 3 frame generation path (fsr::before_present→fresh_inputs) still reads the title's textures at the present, which is what this fixes. #2369 (closed, not merged) copied only aliased inputs, for DLSS-G. If #1978 lands, the two copies can share one pool.609169b7f1to2abba8ef80@xteral67 on GitHub · 2026-12-01 03:58 UTC · original
Rebased onto current
main(5fabb46e); still one commit,crates/victory-gpu/src/streamline.rsonly.Since #1978 landed,
note()already takes DLSS frame-generation copies whenVICTORY_FRAMEGEN_SNAPSHOT=1. This change now copies depth and motion only when those were not taken (FSR 3 frame generation, or DLSS-G with that switch off), so nothing is copied twice.Tested: the same change in a tree based on v2026.11.30.03, diagnostics build, RTX 3080 Ti, 1440p, DLSS quality, FSR 3 frame generation 2x: builds; a 7-minute scripted walk and a 9-minute play session in town, no grain with the minimap.
cargo testnot run.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.