Suspend the title when the fallback window closes #3888

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

@⁠Yoruiopz on GitHub · 2026-11-30 10:35 UTC · original
Yoruiopz:fix/fallback-window-title-shutdown → main · +52 −3 · 4 files · 1 commits · open

What it changes

When the renderer finds no visible title window, it creates one for presentation. Its default window procedure could destroy that window on close while the title continued rendering in the background. This reproduced twice on official v2026.11.29.05.

Register the HLE shutdown callback before creating the graphics device. The presenter's fallback window invokes it on WM_CLOSE or SC_CLOSE, releasing input capture and using the existing asynchronous title suspension and exit path. Without a registered title callback, close dispatch continues through the default window procedure.

How it was tested

  • Windows 11, RTX 5070 Laptop, Series S, windowed 1920×1080 output with DLSS Performance and frame generation off. With official .05, the log reported zero visible title windows at presentation. Closing the fallback window removed its handle. The process kept rendering after the 30-second exit wait.
  • A locked release build of exact .05 plus this change took the same fallback path and entered the copied gameplay scene. The same SC_CLOSE logged one constraint handler, two suspend routines, and completed title suspension. The process exited within 3.3 seconds of starting the close request.
  • All five GPU title-window tests and the HLE lifecycle close test passed on Windows. The new asset-free test covers WM_CLOSE, SC_CLOSE, unrelated messages, destruction, and operation without a title callback. App/GPU/HLE checks, staged asset policy, and diff check passed.

Checked for overlap

  • Checked the open PRs. Related prior work: #753 handles close on the title's own window and supplies the shutdown path that this PR also uses.
**@⁠Yoruiopz** on GitHub · 2026-11-30 10:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3888) `Yoruiopz:fix/fallback-window-title-shutdown` → `main` · +52 −3 · 4 files · 1 commits · open ## What it changes When the renderer finds no visible title window, it creates one for presentation. Its default window procedure could destroy that window on close while the title continued rendering in the background. This reproduced twice on official v2026.11.29.05. Register the HLE shutdown callback before creating the graphics device. The presenter's fallback window invokes it on WM_CLOSE or SC_CLOSE, releasing input capture and using the existing asynchronous title suspension and exit path. Without a registered title callback, close dispatch continues through the default window procedure. ## How it was tested - Windows 11, RTX 5070 Laptop, Series S, windowed 1920×1080 output with DLSS Performance and frame generation off. With official .05, the log reported zero visible title windows at presentation. Closing the fallback window removed its handle. The process kept rendering after the 30-second exit wait. - A locked release build of exact .05 plus this change took the same fallback path and entered the copied gameplay scene. The same SC_CLOSE logged one constraint handler, two suspend routines, and completed title suspension. The process exited within 3.3 seconds of starting the close request. - All five GPU title-window tests and the HLE lifecycle close test passed on Windows. The new asset-free test covers WM_CLOSE, SC_CLOSE, unrelated messages, destruction, and operation without a title callback. App/GPU/HLE checks, staged asset policy, and diff check passed. ## Checked for overlap - [x] Checked the open PRs. Related prior work: #753 handles close on the title's own window and supplies the shutdown path that this PR also uses.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 10:40:54 +00:00
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/3888/head:github-bot/gh-3888'
git switch 'github-bot/gh-3888'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3888'
git switch 'github-bot/gh-3888'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3888'
git switch 'github-bot/gh-3888'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3888'
git switch 'main'
git merge --squash 'github-bot/gh-3888'
git switch 'main'
git merge --ff-only 'github-bot/gh-3888'
git switch 'main'
git merge 'github-bot/gh-3888'
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!3888
No description provided.