Repository navigation
startup: let run.ps1 and run.sh turn off the hook thread holding - #3332
Merged
Merged
Conversation
R0Y00#1408 holds every other thread while the debugger steps one over a hooked function. In a long title run that is tens of thousands of windows with about 100 threads alive, and it slows the load after the first-run pages 3-4x. debug_launch.py already has --suspend-others 0; the launchers now pass it (run.ps1 -SuspendOthers 0, run.sh --suspend-others 0, default 1 = hold). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks done
JohnConnorNPC
pushed a commit
that referenced
this pull request
Nov 29, 2026
tools/startup/run_preset.py takes three choices (--console x|s, --gpu nvidia|amd, --os win11|win10|linux, default this host) and reads every other setting from tools/startup/run_presets.json: a base layer, then one layer per choice, each entry with the reason it is there. The launcher stages the executable's PE files (hard links, else copies) so the package is never written, gives every run an empty storage folder, maps the package on its drive letter with subst for the run, starts run.ps1 or run.sh, and runs triage_run.py. The base layer turns off #1408's thread holding (run.ps1 -SuspendOthers 0, #3332) and uses subst rather than run.ps1 -MapDrive; the measurements behind both, and behind the D3D12 switches it sets, are in the preset's "why" text and docs/startup-runtime.md. tests/startup_run_preset_check.py checks all 12 choices against the switches run.ps1 and run.sh define, the layer rules, drive mapping through a fake subst, and staging on a synthetic package, with refusal controls. Registered in CTest and the python-linux check list.
This was referenced Nov 29, 2026
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.
Change
Fixes #3331.
run.ps1 -SuspendOthers 0andrun.sh --suspend-others 0pass--suspend-others 0todebug_launch.py(#1408's option). The default stays 1 (hold).run.shrefuses values other than 0 and 1 with exit 64.The docs say when to use it (timing runs vs complete
files.txt).Verification
main3f780716, Windows 10 + WSL Ubuntu:tests/startup_run_ps1_check.py(powershell, pwsh)tests/startup_run_sh_check.py(WSL)AI-assisted (Claude Code).
🤖 Generated with Claude Code