fix(gpu): disable DXGI Alt+Enter exclusive fullscreen on FSR 3 swap chain #1132

Manually merged
github merged 1 commit from github-bot/gh-1132 into main 2026-11-29 08:21:30 +00:00 AGit
Owner

@⁠adwen-007 on GitHub · 2026-11-28 13:50 UTC · original
adwen-007:pr/fix-fsr-alt-enter → main · +6 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

Problem

host.rs calls MakeWindowAssociation(hwnd, DXGI_MWA_NO_ALT_ENTER) when Streamline creates the swap chain, but streamline::fsr::swap_chain did not. On RTX 30-series / non-DLSS-FG cards running FSR 3 Frame Generation, pressing Alt+Enter lets DXGI attempt an exclusive fullscreen transition on FidelityFX's frame interpolation swap chain, freezing video output while audio continues playing.

Fix

Call factory.MakeWindowAssociation(hwnd, DXGI_MWA_NO_ALT_ENTER) in crates/victory-gpu/src/streamline/fsr.rs right after creating the FidelityFX swap chain, matching the Streamline path.

Verification

  • cargo check -p victory-gpu passes cleanly on v2026.11.28.01 (63b902f).
  • Verified in live title gameplay on Windows 10 x64 + RTX 3060 Ti with VICTORY_FSR_FRAMEGEN=1: pressing Alt+Enter no longer freezes the frame interpolation swap chain.
**@⁠adwen-007** on GitHub · 2026-11-28 13:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1132) `adwen-007:pr/fix-fsr-alt-enter` → `main` · +6 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC ## Problem `host.rs` calls `MakeWindowAssociation(hwnd, DXGI_MWA_NO_ALT_ENTER)` when Streamline creates the swap chain, but `streamline::fsr::swap_chain` did not. On RTX 30-series / non-DLSS-FG cards running FSR 3 Frame Generation, pressing `Alt+Enter` lets DXGI attempt an exclusive fullscreen transition on FidelityFX's frame interpolation swap chain, freezing video output while audio continues playing. ## Fix Call `factory.MakeWindowAssociation(hwnd, DXGI_MWA_NO_ALT_ENTER)` in `crates/victory-gpu/src/streamline/fsr.rs` right after creating the FidelityFX swap chain, matching the Streamline path. ## Verification - `cargo check -p victory-gpu` passes cleanly on `v2026.11.28.01` (`63b902f`). - Verified in live title gameplay on Windows 10 x64 + RTX 3060 Ti with `VICTORY_FSR_FRAMEGEN=1`: pressing `Alt+Enter` no longer freezes the frame interpolation swap chain.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:33:57 +00:00
Author
Owner

@⁠nick0451 on GitHub · 2026-11-29 02:08 UTC · original

Tested on the card class this PR is for: RTX 3090 (Ampere, no DLSS FG, so FSR 3 FG), driver 610.88, Windows 11, windowed. This PR merged onto main d148613 against main d148613, Series S, DLSS performance, F1 FRAME GENERATION 2X with FG type FSR. Same frozen save. About 30 s into the world, the game's window gets one Alt+Enter (keybd_event, window in front). The whole screen is captured 4, 7 and 10 s later, and Windows' SHQueryUserNotificationState is read before and after.

FSR 3 FG active after Alt+Enter screen 4 → 7 → 10 s
main yes (FSR 3 frame generation: 209 presents with it on) state 3 = D3D exclusive fullscreen identical, the overlay frozen at FPS 16.2 FG 32.4: a frozen picture
this PR yes (175 presents with it on) state 5, stays in its window changes every capture; FG keeps generating (overlay FG 33.8 → 25.4)

So on main, Alt+Enter with FSR 3 FG on takes FidelityFX's swap chain into exclusive fullscreen and the output freezes, as described. With this PR, DXGI leaves it alone. No crash in either run.

🤖 Generated with Claude Code

**@⁠nick0451** on GitHub · 2026-11-29 02:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1132#issuecomment-7249231837) Tested on the card class this PR is for: **RTX 3090** (Ampere, no DLSS FG, so FSR 3 FG), driver 610.88, Windows 11, windowed. This PR merged onto main `d148613` against main `d148613`, Series S, DLSS performance, F1 FRAME GENERATION 2X with FG type FSR. Same frozen save. About 30 s into the world, the game's window gets one Alt+Enter (keybd_event, window in front). The whole screen is captured 4, 7 and 10 s later, and Windows' `SHQueryUserNotificationState` is read before and after. | | FSR 3 FG active | after Alt+Enter | screen 4 → 7 → 10 s | |---|---|---|---| | main | yes (`FSR 3 frame generation: 209 presents with it on`) | **state 3 = D3D exclusive fullscreen** | **identical**, the overlay frozen at `FPS 16.2 FG 32.4`: a frozen picture | | this PR | yes (`175 presents with it on`) | state 5, stays in its window | changes every capture; FG keeps generating (overlay `FG 33.8` → `25.4`) | So on main, Alt+Enter with FSR 3 FG on takes FidelityFX's swap chain into exclusive fullscreen and the output freezes, as described. With this PR, DXGI leaves it alone. No crash in either run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github manually merged commit 6b050617e1 into main 2026-11-29 08:21:30 +00:00
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!1132
No description provided.