Spawn game as parent process #601
Open
Xnick417x wants to merge 7 commits into
Open
Conversation
The scanout size guard rejected frames smaller than the window, falling back to a CPU copy of a GPU-only buffer that drew nothing. Allow scanout of smaller frames and scale the presented source span to fill the window instead of cropping.
Games that switch resolution showed a black screen because the game ran as a child of the winhandler.exe desktop shell. Add winlauncher.exe to the container and launch the game through it so it runs as a decoupled top-level process; winhandler stays the shell and keeps handling input.
Pass /affinity to the launch helper so the game is pinned to the container's CPU set from process start, before the per-window affinity applies.
…ervice The game now launches under winlauncher.exe as the wine desktop shell, while winhandler.exe runs as a separate input/process service, instead of the game running as a child of winhandler.exe.
The in-process Steam launcher received the game exe on argv[1], but the desktop shell splits that argument on the first space, so a path like C:\Program Files (x86)\... arrived as C:\Program. The launcher then never matched the running game and never emitted a launch-complete marker, so the preloader hung until the watchdog killed the session. Pass the game exe to the launcher via the WN_STEAM_GAME_EXE environment variable (argv[1] kept as fallback) so the shell launches a bare steam.exe with no space-bearing argument to split.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.