Repository navigation
runtime: --precompile-pipelines builds the skip-listed programs unless --skip-listed (RT-PRECOMPILE-SKIP-LIST-EXPLICIT) - #2393
Merged
aslan2142 merged 1 commit intoNov 26, 2026
Conversation
…--skip-listed LEONIDA_SKIP_COMPUTE is a play-time setting: the game drops the listed programs' dispatches. The precompile also refused to build them, one "not built (LEONIDA_SKIP_COMPUTE)" line each and no override. Players run it with the game's environment (docs/running.md), so their skip list kept those programs out of the journal for good, and a later run without the list compiled them in the game. - precompile_compute_pipelines builds every compute entry; with the list set it says how many entries it names. --skip-listed leaves them out on purpose, one line each. - The last line counts the whole run: built (compiled, from a cache), journaled already, being built by another process, failed; left out: of those the list names, not buildable, filtered out (--filter, the size bounds and now --limit too). - BuildHost::unbuildable no longer checks the list. The compile server checks it itself, as before: the game that starts it drops those dispatches. Docs: running.md, linux_proton.md and d3d12_vulkan.md no longer give compile time as the reason for the skip list. The 89-167 s per program came from wave64-emulated packs; with a native wave64 pack on an RX 7900 XTX (RADV, Mesa 26.3.1, Wine) all 721 library programs of 2 MiB or more built, 360 of them in 170 s on 32 threads, 2.5-32 s each, the largest (13 MiB) in 28.5 s alone, at a peak of 14 GiB of RAM. Two world runs on that card with all of them journaled and no skip list took them all from the journal and got no further than runs with the list (a stop with the GPU idle at 404 s; an idle-queue device loss at about 214 s, which also happens with the list set). Their output is not checked, so the docs keep the skip list and LEONIDA_RT_AS=off as the setting of our longest runs. Test: precompile_skip_list (test/check_precompile_skip_list.cmake) precompiles two synthetic compute modules, one of them listed, three times: with the list set both are built; with --skip-listed only the other one is, and the listed one is named; a second run into the first journal finds both journaled. It fails on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Merging. This is a self-merge.
The method is @MoonEyes's finding; see the description. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2) |
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.
gta6rt --precompile-pipelinesnow builds the compute programsLEONIDA_SKIP_COMPUTEnames. It leaves them out only when given--skip-listed, and its last line counts what it built and what it left out.Claim: #1608 (comment)
Credit: the method is @MoonEyes's finding. They showed first, on an RTX 4060, that the large library programs build offline with the skip list unset and that the journal then serves them in the game. This PR makes the precompile do that by default; the measurements below repeat their test on an AMD card.
What changes
precompile_compute_pipelinesbuilds every compute entry, whetherLEONIDA_SKIP_COMPUTEnames it or not. When the list names some, one line says how many and that they are built anyway.--skip-listed, next to--filter: it leaves the listed entries out, onenot built (LEONIDA_SKIP_COMPUTE, --skip-listed)line each.[precompile] done: 1 built (1 compiled, 0 from a cache), 0 journaled already, 0 being built by another process, 0 failed; left out: 1 of 1 listed in LEONIDA_SKIP_COMPUTE (--skip-listed), 0 not buildable, 0 filtered out; in 0 s--limitnow count as filtered out.BuildHost::unbuildableno longer checks the list.--compile-serverstill leaves listed programs out, as before: it runs for a game that drops their dispatches.docs/running.md,docs/linux_proton.mdanddocs/d3d12_vulkan.mddescribe the new behaviour and no longer give compile time as the reason for the skip list. The lines about thepipelinesstage are untouched (MAKE-GAME-PIPELINES-VIA-RUNTIME).Why
LEONIDA_SKIP_COMPUTEis a play-time setting: the game drops the listed programs' dispatches.docs/running.mdtells them. So their skip list kept those programs out of the journal for good, and a later run without the list had to compile them in the game.pipelinesstage that calls this precompile would have inherited the same behaviour.Measurements
RX 7900 XTX, RADV (Mesa 26.3.1), Wine, native wave64 pack (
--wave64-emulate off):library/programs of 2 MiB or more built.LEONIDA_RT_AS=offand no skip list (one run per condition):main56bdd7e88plus four then-open PRs) reached the world with no GPU fault for 404 s, then the game stopped submitting with the GPU idle (a lock in the runtime is suspected; cause not found);mainbd6ba97ab) hit a read page fault at about 214 s, then a graphics-ring timeout 30 s later and a lost device, with every queue idle in the dispatch markers.LEONIDA_RT_AS=offas the setting our longest runs used. The RTX 3090 Linux/Proton report stays as its author's.Tests
The branch is one commit on
mainbd6ba97ab. The rebase from935a2cd5bhad no conflicts. The full Wine suite ran before the rebase; the other checks below were run again onbd6ba97ab.precompile_skip_list(runtime/test/check_precompile_skip_list.cmake). It uses two synthetic compute modules, one of them listed, and runs the precompile three times:--skip-listed, only the unlisted one is built and the listed one is named;main(a56bdd7e88build): main leaves the listed entry out, writes 1 journal file instead of 2, and rejects--skip-listed. It passes on this branch, before and after the rebase ontobd6ba97ab(under Wine, iGPU).mainat56bdd7e88the only changes are the new test andxmem_write_watch(a known flake) going from fail to pass. No test went from pass to fail.ctestonbd6ba97ab(iGPU): 112 of 112 passed, 2 skipped.tests/test_docs_*.py,tests/test_ci_registration.py,tests/test_ctest_registration.py,tests/test_text_write_line_endings.py: pass.scripts/check_no_game_data.pyon the changed files: clean.Not tested
/W4 /permissive-) and native Windows: left to CI.--big-threadsand--skip-listedthere.--filterruns of the same code path.--verify): it touches the same selection loop, the usage line andPrecompileOptions. Expect a small textual conflict but none in behaviour: its check runs with everyLEONIDA_*variable cleared and looks for0 failed, which the new last line keeps.AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)