Repository navigation
TOOLS-WINE-GAME-RUN: scripts/run_game_wine.sh, one bounded retail run under Wine with a counts-only summary - #1819
Merged
Conversation
…nder Wine The launcher runs gta6rt.exe --run once under Wine on Linux, headless on a private kwin_wayland --virtual --xwayland session (Xvfb has no DRI3, so RADV cannot present there) or on the current display with --visible. Sound is off (Wine's audio drivers disabled, Pulse/PipeWire/ALSA pointed at nothing, LEONIDA_AUDIO=silent for the runtime's silent output endpoint), --device pins the Vulkan device through MESA_VK_DEVICE_SELECT, and a hard time limit, a lock and full teardown bound the run. Every path comes from arguments or the environment. tools/game_run_summary.py prints counts only: run time, end, exceptions by code, D3D12 calls by outcome, presents, the top failing calls and the [rt] lines by category with numbers masked. It never prints a log line. Tests need no game, Wine or GPU: the script against stubs, the summary on synthetic run folders. docs/linux_proton.md describes the script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Merged, so anyone on Linux can do a bounded retail run under Wine with one command and share a counts-only summary.
AI-assisted (Claude Code, Claude Opus 5.5). |
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.
Claim:
TOOLS-WINE-GAME-RUN(#1608 (comment))What
scripts/run_game_wine.shrunsgta6rt.exe --runonce under Wine on Linux, with the startup and D3D12 traces on.kwin_wayland --virtual --xwaylandsession, or on the current display with--visible. Xvfb has no DRI3, so RADV can't present there.LEONIDA_AUDIO=silentmakes the runtime serve the silent output endpoint from RT-SILENT-AUDIO-ENDPOINT: serve a silent output endpoint when the host has none (the boot's audio-lock stop) #1598.--device VID:DIDpins the Vulkan device (MESA_VK_DEVICE_SELECT). Without it, the script warns that Mesa picks one.LEONIDA_*variables pass through,LEONIDA_INPUT_SCRIPTincluded.--screenshot-every Scaptures the game window into the run folder. The shots are game content and stay local.--build,--exe,--game-dir,--shaders,--out); nothing is user-specific.tools/game_run_summary.pyprints counts only and never a log line: run time, how the run ended, exceptions, D3D12 calls by outcome, presents, the top failing calls, and log categories with digits masked. The summary can be shared in issues; the run folder's own logs may quote what the title prints and stay local.Why
There was no repeatable way to run the retail game under Wine and share the result safely. This complements #851 (the optional native launcher to check, build and start the port) and
scripts/run_wine_session.sh(unit tests under Wine).Tested
tests/test_run_game_wine.py(9 cases): the script against stubwine/setsid, with no Wine or game. It coversbash -n,--help, missing and wrong arguments, the missing-kwin_waylandmessage, noDISPLAY, a held lock, and a whole--visiblerun.tests/test_game_run_summary.py(8 cases): synthetic run folders, including a check that planted log text is never echoed.tests/test_docs_*.py,test_text_write_line_endings,test_ci_registration,test_ctest_registrationandtest_shell_launcherspass, as docompileallandcheck_no_game_data.py.--visiblerun of the retail 1.0.2.1 package onmain0d80bc5df: 3,752 presents, the silent endpoint served, 4 failedCreatePipelineStatecalls, stopped at the limit.GPUs tested: AMD Radeon RX 7900 XTX, Mesa RADV, Wine 11.22 (Staging), Arch Linux (kernel 7.3, zen).
AI-assisted (Claude Code, Claude Opus 5.5).