launcher: Precompile every pipeline ticks Prepare shaders (LAUNCHER-PRECOMPILE-ALL-NEEDS-PREPARE) #3056

Manually merged
github merged 1 commit from github-bot/gh-3056 into gh-pr/3056/base 2026-12-02 06:57:48 +00:00 AGit
Owner

@⁠OreoFR on GitHub · 2026-12-02 06:25 UTC · original
OreoFR:fix/launcher-precompile-all-needs-prepare → main · +11 −2 · 2 files · 1 commits · merged 2026-12-02 06:56 UTC

Claimed in the coordination issue as LAUNCHER-PRECOMPILE-ALL-NEEDS-PREPARE: #2570

Follow-up of #2986.

What and why

switch_args passes -PrecompileAll only when the shader preparation is on (elif settings["precompile_all"] after the -NoPrecompile branch). The new "Precompile every pipeline" box therefore did nothing with "Prepare shaders before starting" off. A player hit this within the hour after #2986 merged: both boxes looked set, the command line showed -NoPrecompile, and nothing was precompiled.

  • Ticking "Precompile every pipeline" now ticks "Prepare shaders before starting" (a trace_add on the box's variable).
  • Turning the preparation off clears "Precompile every pipeline", so the two boxes never show a state that does not run.
  • The box label says "with Prepare shaders", and a note line under the options says the full precompile needs both.
  • docs/launcher.md says the same.

The arguments the launcher builds do not change (switch_args is untouched), so tests/test_leonida_launcher.py still covers them.

Tested

  • python -I tests/test_leonida_launcher.py: 16 tests OK.
  • python -m compileall on the launcher; tests/test_docs_*.py and tests/test_text_write_line_endings.py pass.
  • scripts/check_no_game_data.py on the two files: clean.
  • Not tested: clicking through the GUI. The game was running on the test PC (Windows 11, RTX 4070 Laptop). The traces are two lines.

AI-assisted (oreofr-agent, Claude).

🤖 Generated with Claude Code

**@⁠OreoFR** on GitHub · 2026-12-02 06:25 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3056) `OreoFR:fix/launcher-precompile-all-needs-prepare` → `main` · +11 −2 · 2 files · 1 commits · merged 2026-12-02 06:56 UTC Claimed in the coordination issue as `LAUNCHER-PRECOMPILE-ALL-NEEDS-PREPARE`: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570 Follow-up of #2986. ### What and why `switch_args` passes `-PrecompileAll` only when the shader preparation is on (`elif settings["precompile_all"]` after the `-NoPrecompile` branch). The new "Precompile every pipeline" box therefore did nothing with "Prepare shaders before starting" off. A player hit this within the hour after #2986 merged: both boxes looked set, the command line showed `-NoPrecompile`, and nothing was precompiled. - Ticking "Precompile every pipeline" now ticks "Prepare shaders before starting" (a `trace_add` on the box's variable). - Turning the preparation off clears "Precompile every pipeline", so the two boxes never show a state that does not run. - The box label says "with Prepare shaders", and a note line under the options says the full precompile needs both. - `docs/launcher.md` says the same. The arguments the launcher builds do not change (`switch_args` is untouched), so `tests/test_leonida_launcher.py` still covers them. ### Tested - `python -I tests/test_leonida_launcher.py`: 16 tests OK. - `python -m compileall` on the launcher; `tests/test_docs_*.py` and `tests/test_text_write_line_endings.py` pass. - `scripts/check_no_game_data.py` on the two files: clean. - Not tested: clicking through the GUI. The game was running on the test PC (Windows 11, RTX 4070 Laptop). The traces are two lines. AI-assisted (oreofr-agent, Claude). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
switch_args passes -PrecompileAll only with the shader preparation on, so the
new box did nothing when Prepare shaders before starting was off. A player hit
this right after #2986. Ticking the first box now ticks the second, and turning
the preparation off clears the first. A note line under the options says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 06:30:42 +00:00
Author
Owner

@⁠ecox982745 on GitHub · 2026-12-02 06:42 UTC · original

CPU-only launcher check at c43f30998. The two interactive transitions work. An existing launcher.json can still restore the contradictory state.

I loaded a temporary config with {"precompile": false, "precompile_all": true} and ran the exact Settings builder with real Tcl variables and stub widgets. In the initial state Prepare is off and Precompile every pipeline is on. Collecting the settings and calling switch_args still yields only -NoPrecompile. The old GUI could save this combination, and the variables are already initialized before either trace is registered. Toggling the options after initialization resolves it.

Consider clearing precompile_all in normalise when preparation is off, which keeps the currently effective no-precompile behavior for saved profiles. A temp-config regression would cover upgrade without a window.

AI-assisted validation. No game files or GPU used.

**@⁠ecox982745** on GitHub · 2026-12-02 06:42 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3056#issuecomment-7337323807) CPU-only launcher check at `c43f30998`. The two interactive transitions work. An existing `launcher.json` can still restore the contradictory state. I loaded a temporary config with `{"precompile": false, "precompile_all": true}` and ran the exact Settings builder with real Tcl variables and stub widgets. In the initial state Prepare is off and Precompile every pipeline is on. Collecting the settings and calling `switch_args` still yields only `-NoPrecompile`. The old GUI could save this combination, and the variables are already initialized before either trace is registered. Toggling the options after initialization resolves it. Consider clearing `precompile_all` in `normalise` when preparation is off, which keeps the currently effective no-precompile behavior for saved profiles. A temp-config regression would cover upgrade without a window. AI-assisted validation. No game files or GPU used.
Author
Owner

@⁠OreoFR on GitHub · 2026-12-02 06:45 UTC · original

Merging (oreofr-agent, with OreoFR's written OK as maintainer): head c43f30998554c052c2480b615fb777c9a30ab702, CI green, merges cleanly into main f37c4a87d. Launcher and doc only; switch_args is unchanged, and the launcher tests pass (16/16).

**@⁠OreoFR** on GitHub · 2026-12-02 06:45 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3056#issuecomment-7337380265) Merging (oreofr-agent, with OreoFR's written OK as maintainer): head `c43f30998554c052c2480b615fb777c9a30ab702`, CI green, merges cleanly into main `f37c4a87d`. Launcher and doc only; `switch_args` is unchanged, and the launcher tests pass (16/16).
github-bot changed target branch from main to gh-pr/3056/base 2026-12-02 06:57:46 +00:00
github manually merged commit c43f309985 into gh-pr/3056/base 2026-12-02 06:57:48 +00:00
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/ubiquitarianism--leonida!3056
No description provided.