Skip to content

FSR 3 frame generation: a menu's full-screen blur starts its history again (weapon wheel cracks) - #2746

Open
nick0451 wants to merge 1 commit into
trustno1-coder:mainfrom
nick0451:fix/fg-blur-reset
Open

nick0451 wants to merge 1 commit into
trustno1-coder:mainfrom
nick0451:fix/fg-blur-reset

Conversation

@nick0451

Copy link
Copy Markdown

What happens

With FSR 3 frame generation on (RTX 30 class, FG 2x), holding LB for the weapon wheel fills the blurred world behind it with black cracks, specks and smears along the outlines of what is behind the menu (railings, palm leaves), in the generated frames, for as long as the wheel is held. Frame generation off: clean. Found in play on main 568c5e5 (FSR 3 frame generation on, LB held).

Why

The wheel (and menus like it) draws the world behind it with the title's full-screen blur — PS_GaussianAberrativePrePass with its PS_DownsampleCopy / PS_UpsampleCopy (VS_BlurFilter) and PS_LateComposite, first bound one frame after LB goes down. The title keeps rendering and upscaling the 3D scene underneath and gives frame generation the sharp scene's depth and motion vectors (logged per second while the wheel was held: frame time ~45 ms, reset=false, jitter moving, the same depth/motion textures), while the picture frame generation interpolates is the blurred one. It moves blurred pixels along edges that are not in the picture.

Evidence (RTX 3090, driver 610.88, Series S, DLSS performance, FSR 3 2x, a frozen balcony save, LB held 30-40 s, ~40 window captures per hold, dark-pixel count in a patch of blurred sky)

build captures with the wheel open damaged
main 568c5e5 (2 runs) ~53 11 (on and off, about every 4th)
experiment: frame generation's reset every frame (2 runs) 80 0
this change (main 829188e9 + it, 2 runs; VICTORY_COMPILE_MEMORY=0 to get past #2392's start regression on this PC) 74 0

The change

  • Shader::blur: a pixel shader whose container names PS_GaussianAberrativePrePass (by name in the container, as ambient and mirror roles are found).
  • draw.rs: a draw with such a shader notes the frame (streamline::fsr::note_screen_blur).
  • fsr.rs: the prepare dispatch passes reset while the blur drew in the last two frames. Logged once. VICTORY_FG_BLUR_RESET=0: not.
  • Normal play is untouched: the reset only applies in frames with the full-screen blur.

Tested

  • cargo test -p victory-gpu --lib -- --test-threads=1: 916 passed (1 new: the blur is known by its name). (A parallel run fails 1-3 tests in card_steps / uav_pool / menu on main as well.)
  • clippy: nothing in the changed lines.
  • In game: see the table: 0 of 74 with this change; the log line FSR 3 frame generation: a menu's full-screen blur is drawn… appears when the wheel opens, not in normal play.

DLSS frame generation (RTX 40/50) gets the same inputs and may show the same; not testable here (RTX 3090).

🤖 Generated with Claude Code

…again

While the weapon wheel (or a menu like it) is held, the title draws the
world behind it with its full-screen blur (PS_GaussianAberrativePrePass, with
its down/upsample copies and PS_LateComposite) but still gives frame
generation the depth and motion vectors of the sharp scene under it. Frame
generation moved the blurred picture along those edges: black cracks and
smears along the outlines behind the menu in the generated frames, for as
long as the wheel was held (RTX 3090, FSR 3 2x: 11 of 53 captures damaged;
with the history reset every frame, 0 of 80).

A shader whose container names the blur is marked (Shader::blur, as mirror
and ambient roles are); a draw with it notes the frame; frame generation's
prepare passes reset while the blur drew in the last two frames.
VICTORY_FG_BLUR_RESET=0 turns it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nick0451

Copy link
Copy Markdown
Author

Note on the failing check job: it stops at victory-loader (function unwind_copy is never used, crates/victory-loader/src/crash.rs:804), a crate this PR doesn't touch. cargo clippy -p victory-loader --all-targets -- -D warnings fails the same way on main 55d06914 itself, so it isn't from this change. Clippy has nothing on this PR's own lines.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant