Keep the native launcher alive for F1 and warm-up restarts under Proton #2168

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

@⁠BlackpawNR on GitHub · 2026-11-29 10:08 UTC · original
BlackpawNR:fix/proton-menu-restart → main · +193 −27 · 7 files · 1 commits · open

Fixes #1954

What it changes

Under Wine, the native victory play launcher stays alive while the game runs. F1 and the warm-up timer can ask it to start the game again, preload shaders, or clear the shader cache. The launcher waits for the previous game process to exit, then starts the same executable with its original arguments, working directory and terminal. An ordinary exit or crash ends the session with the original exit status.

A preload requested on the command line is consumed on the first start. Each later start reads the saved F1 settings again. This also prevents an explicitly configured warm-up timer from repeatedly restarting the same session.

How it was tested

  • Reproduced the old F1 failure with the native executable selected and PowerShell absent from the process search path. The menu returned SAVED, BUT THE RESTART FAILED.
  • Ran both new regression tests on Windows, Debian Wine 10.0, and UMU-Proton 11.0-2e. They exercise all three menu requests, a working directory containing spaces and Unicode, and propagation of success, ordinary error and NT exception exit codes.
  • End-to-end on Debian 13.8 under Proton with a small synthetic x64 title. One victory.exe play invocation launched the title four times. The fixture wrote a 60 FPS setting in the F1 settings file and verified it on each subsequent start. The launcher preloaded once, cleared the cache once, preserved a quoted argument, and returned the fixture's final exit code 37. Repeating with --preload added exactly one initial preload across the same four starts. This exercised the launcher with the Series S profile and DLSS off. Gameplay and rendering performance were outside this test.
  • cargo test --locked -p victory -p victory-gpu -p victory-hle passed on Windows. The three packages had 1,423 passing tests and 62 ignored. cargo xtask policy --staged and git diff --cached --check passed.

Checked for overlap

  • Searched open issues and PRs for #1954, Proton relaunches and PowerShell restarts, and checked PRs touching the menu. #563 covers script-launcher paths. #1630 and #1702 cover other Linux launch and test routes.

Implementation and verification were assisted by Codex.

**@⁠BlackpawNR** on GitHub · 2026-11-29 10:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2168) `BlackpawNR:fix/proton-menu-restart` → `main` · +193 −27 · 7 files · 1 commits · open Fixes #1954 ## What it changes Under Wine, the native `victory play` launcher stays alive while the game runs. F1 and the warm-up timer can ask it to start the game again, preload shaders, or clear the shader cache. The launcher waits for the previous game process to exit, then starts the same executable with its original arguments, working directory and terminal. An ordinary exit or crash ends the session with the original exit status. A preload requested on the command line is consumed on the first start. Each later start reads the saved F1 settings again. This also prevents an explicitly configured warm-up timer from repeatedly restarting the same session. ## How it was tested - Reproduced the old F1 failure with the native executable selected and PowerShell absent from the process search path. The menu returned `SAVED, BUT THE RESTART FAILED`. - Ran both new regression tests on Windows, Debian Wine 10.0, and UMU-Proton 11.0-2e. They exercise all three menu requests, a working directory containing spaces and Unicode, and propagation of success, ordinary error and NT exception exit codes. - End-to-end on Debian 13.8 under Proton with a small synthetic x64 title. One `victory.exe play` invocation launched the title four times. The fixture wrote a 60 FPS setting in the F1 settings file and verified it on each subsequent start. The launcher preloaded once, cleared the cache once, preserved a quoted argument, and returned the fixture's final exit code 37. Repeating with `--preload` added exactly one initial preload across the same four starts. This exercised the launcher with the Series S profile and DLSS off. Gameplay and rendering performance were outside this test. - `cargo test --locked -p victory -p victory-gpu -p victory-hle` passed on Windows. The three packages had 1,423 passing tests and 62 ignored. `cargo xtask policy --staged` and `git diff --cached --check` passed. ## Checked for overlap - [x] Searched open issues and PRs for #1954, Proton relaunches and PowerShell restarts, and checked PRs touching the menu. #563 covers script-launcher paths. #1630 and #1702 cover other Linux launch and test routes. Implementation and verification were assisted by Codex.
Let the original Wine process wait for the game and act on its menu restart requests. Preserve the command line, working directory and final exit status across restarts, including one-shot preload and clear actions.

Co-authored-by: Codex <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 10:12:07 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-30 13:55 UTC · original

I replayed 9d65f47 cleanly on the current release main 41adb551 (v2026.11.29.05) and tested the restart path on native Windows.

  • A synthetic menu test made the optional console launcher return NotFound. On main, the request returned SAVED, BUT THE RESTART FAILED and the regression assertion failed. With this PR, the supervised child returned the Play restart action to its parent and the assertion passed with the same unavailable-shell fixture.
  • The checked-in menu test passed for all three actions, Play, Preload and ClearShaders. It also checks that a supervised restart suppresses the one-time warmup timer.
  • The checked-in launcher supervisor test passed. For each of final statuses 0, 37 and synthetic 0xc0000005, it ran four child steps in the same Unicode working directory, preserved the requested preload and clear transitions, and forwarded the final status.

These are native Windows confirmations on the latest base. Your Debian Wine/Proton synthetic-title run remains the Linux end-to-end test. GitHub currently shows the label check only for this PR. A runner result and maintainer review are pending.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-30 13:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2168#issuecomment-7280576800) I replayed `9d65f47` cleanly on the current release main `41adb551` (`v2026.11.29.05`) and tested the restart path on native Windows. - A synthetic menu test made the optional console launcher return `NotFound`. On main, the request returned `SAVED, BUT THE RESTART FAILED` and the regression assertion failed. With this PR, the supervised child returned the `Play` restart action to its parent and the assertion passed with the same unavailable-shell fixture. - The checked-in menu test passed for all three actions, `Play`, `Preload` and `ClearShaders`. It also checks that a supervised restart suppresses the one-time warmup timer. - The checked-in launcher supervisor test passed. For each of final statuses `0`, `37` and synthetic `0xc0000005`, it ran four child steps in the same Unicode working directory, preserved the requested preload and clear transitions, and forwarded the final status. These are native Windows confirmations on the latest base. Your Debian Wine/Proton synthetic-title run remains the Linux end-to-end test. GitHub currently shows the label check only for this PR. A runner result and maintainer review are pending.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/menu.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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