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

Open
BlackpawNR wants to merge 1 commit from upstream-pr/2168 into main
BlackpawNR commented 2026-11-29 10:08:14 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BlackpawNR on 2026-11-29T10:08:14Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549690708 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2168). Originally posted by [BlackpawNR](https://github.com/BlackpawNR) on 2026-11-29T10:08:14Z. --- 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.
andrewpozdnakov7-jpg commented 2026-11-30 13:55:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T13:55:48Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7280576800 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2168#issuecomment-7280576800). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-30T13:55:48Z. --- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2168:upstream-pr/2168'
git switch 'upstream-pr/2168'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2168'
git switch 'upstream-pr/2168'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2168'
git switch 'upstream-pr/2168'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2168'
git switch 'main'
git merge --squash 'upstream-pr/2168'
git switch 'main'
git merge --ff-only 'upstream-pr/2168'
git switch 'main'
git merge 'upstream-pr/2168'
git push origin 'main'
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!2168
No description provided.