Frame generation: depth and motion copied at the upscaling (grain with the minimap) #3690

Open
github-bot wants to merge 1 commit from github-bot/gh-3690 into main AGit
Owner

@⁠xteral67 on GitHub · 2026-11-30 04:06 UTC · original
xteral67:fsr-fg-depth-motion-copy → main · +95 −0 · 1 files · 1 commits · open

What 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 note copies 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=0 gives 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

  • GPU and profile: RTX 3080 Ti, Series X, 2560x1440, DLSS quality, FSR 3 frame generation 2x, ray tracing off.
  • Before: frame generation on → grain over the whole picture with the minimap shown (car, minimap key, world load); frame generation off → clean.
  • After: no grain in the same places, minimap on, in a car and on foot. Checked by eye in three sessions.
  • Built with cargo build --locked --profile diag -p victory --features diagnostics (the same code behind an opt-in switch); cargo test not run for this change.

Checked for overlap

  • Searched the open pull requests. Related: #1978 does the same for DLSS Frame Generation (copies after a DLSS evaluation, opt-in VICTORY_FRAMEGEN_SNAPSHOT=1, native_fg && dlss only); 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.
**@⁠xteral67** on GitHub · 2026-11-30 04:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3690) `xteral67:fsr-fg-depth-motion-copy` → `main` · +95 −0 · 1 files · 1 commits · open ## What 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 `note` copies 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=0` gives 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 - GPU and profile: RTX 3080 Ti, Series X, 2560x1440, DLSS quality, FSR 3 frame generation 2x, ray tracing off. - Before: frame generation on → grain over the whole picture with the minimap shown (car, minimap key, world load); frame generation off → clean. - After: no grain in the same places, minimap on, in a car and on foot. Checked by eye in three sessions. - Built with `cargo build --locked --profile diag -p victory --features diagnostics` (the same code behind an opt-in switch); `cargo test` not run for this change. ## Checked for overlap - [x] Searched the open pull requests. Related: #1978 does the same for **DLSS** Frame Generation (copies after a DLSS evaluation, opt-in `VICTORY_FRAMEGEN_SNAPSHOT=1`, `native_fg && dlss` only); 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.
FSR 3 frame generation read the title's depth and motion textures as they
are at the present; the title draws its minimap after the upscaling with
the same targets, so every generated frame showed grain over the whole
picture while the minimap was up. They are now copied where the upscaling
reads them (VICTORY_FG_SNAPSHOT=0: as before).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 04:11:12 +00:00
github-bot force-pushed github-bot/gh-3690 from 609169b7f1 to 2abba8ef80 2026-12-01 04:03:25 +00:00 Compare
Author
Owner

@⁠xteral67 on GitHub · 2026-12-01 03:58 UTC · original

Rebased onto current main (5fabb46e); still one commit, crates/victory-gpu/src/streamline.rs only.

Since #1978 landed, note() already takes DLSS frame-generation copies when VICTORY_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 test not run.

**@⁠xteral67** on GitHub · 2026-12-01 03:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3690#issuecomment-7300257832) Rebased onto current `main` (5fabb46e); still one commit, `crates/victory-gpu/src/streamline.rs` only. Since #1978 landed, `note()` already takes DLSS frame-generation copies when `VICTORY_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 test` not run.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3690/head:github-bot/gh-3690'
git switch 'github-bot/gh-3690'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3690'
git switch 'github-bot/gh-3690'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3690'
git switch 'github-bot/gh-3690'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3690'
git switch 'main'
git merge --squash 'github-bot/gh-3690'
git switch 'main'
git merge --ff-only 'github-bot/gh-3690'
git switch 'main'
git merge 'github-bot/gh-3690'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3690
No description provided.