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

Merged
adwen-007 merged 1 commit from upstream-pr/1132 into main 2026-11-29 08:16:57 +00:00
adwen-007 commented 2026-11-28 13:50:54 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by adwen-007 on 2026-11-28T13:50:54Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540796044 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1132). Originally posted by [adwen-007](https://github.com/adwen-007) on 2026-11-28T13:50:54Z. --- ## 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.
nick0451 commented 2026-11-29 02:08:08 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T02:08:08Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7249231837 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1132#issuecomment-7249231837). Originally posted by [nick0451](https://github.com/nick0451) on 2026-11-29T02:08:08Z. --- 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)
Sign in to join this conversation.
No reviewers
No labels
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.

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