diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 12:36:34 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 12:40:56 -0500 |
| commit | 76109561f4e392fd0da97a2d4b936b35c83e821a (patch) | |
| tree | 266b133c2c5c0ade756d0efc51bb0ea4093fdb84 /docs/linux_proton.md | |
| parent | bd6ba97ab6366777f76a080861017df5366f5a28 (diff) | |
d3d12: --precompile-pipelines builds the skip-listed programs unless --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>
Diffstat (limited to 'docs/linux_proton.md')
| -rw-r--r-- | docs/linux_proton.md | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/docs/linux_proton.md b/docs/linux_proton.md index b981c2ef2..42487ed49 100644 --- a/docs/linux_proton.md +++ b/docs/linux_proton.md | |||
| @@ -198,6 +198,8 @@ they were found. | |||
| 198 | with the environment of the game run (`LEONIDA_SHADERS`, `LEONIDA_PIPELINE_CACHE_DIR`, `LEONIDA_DEVICE_FAULT`; | 198 | with the environment of the game run (`LEONIDA_SHADERS`, `LEONIDA_PIPELINE_CACHE_DIR`, `LEONIDA_DEVICE_FAULT`; |
| 199 | `--precompile-pipelines` in [d3d12_vulkan.md](d3d12_vulkan.md)). It built 3,693 compute pipelines; the next boot took | 199 | `--precompile-pipelines` in [d3d12_vulkan.md](d3d12_vulkan.md)). It built 3,693 compute pipelines; the next boot took |
| 200 | 1,900 of them from the journal in 0.1 s of driver time, and the menus ran at 30 frames/s instead of under one. | 200 | 1,900 of them from the journal in 0.1 s of driver time, and the menus ran at 30 frames/s instead of under one. |
| 201 | That run left out the programs `LEONIDA_SKIP_COMPUTE` named, which kept them out of the journal; the pre-compile | ||
| 202 | now builds them too unless it is given `--skip-listed`. | ||
| 201 | The `pipeline_cache.bin` that `make_game.py`'s pipelines stage writes with `vk_pipeline_check` gave no hits: 0 of | 203 | The `pipeline_cache.bin` that `make_game.py`'s pipelines stage writes with `vk_pipeline_check` gave no hits: 0 of |
| 202 | 5,526 journal pipeline keys were in its 29,861 objects (9 shader binaries were identical, so the machine code | 204 | 5,526 journal pipeline keys were in its 29,861 objects (9 shader binaries were identical, so the machine code |
| 203 | matched and the keys did not). Each of three differences is enough for a miss on RADV: | 205 | matched and the keys did not). Each of three differences is enough for a miss on RADV: |
| @@ -212,10 +214,17 @@ they were found. | |||
| 212 | hashes the whole set layout and the stage flags. Graphics would miss anyway: the checker pairs each stage with a | 214 | hashes the whole set layout and the stage flags. Graphics would miss anyway: the checker pairs each stage with a |
| 213 | stub and fixed state, and RADV hashes the full graphics state. | 215 | stub and fixed state, and RADV hashes the full graphics state. |
| 214 | 4. **Leave out the ray-tracing programs.** 724 library compute programs have 2 MiB of SPIR-V or more (676 of them | 216 | 4. **Leave out the ray-tracing programs.** 724 library compute programs have 2 MiB of SPIR-V or more (676 of them |
| 215 | ray-tracing resolve) and take 89-167 s each in the driver. `LEONIDA_RT_AS=off` drops acceleration-structure builds | 217 | ray-tracing resolve). The 89-167 s each in the driver were measured with wave64-emulated packs; with the native |
| 216 | and copies, and `LEONIDA_SKIP_COMPUTE=<name>,<name>,...` with those programs' `lib_cs_NNNNN` names (picked by | 218 | pack of step 2 they build in seconds, so compile time is not the reason any more. Measured afterwards on the same |
| 217 | module size from `library/index.json`) never builds or dispatches them. The picture then lacks whatever those | 219 | machine (RX 7900 XTX, RADV, Mesa 26.3.1, Wine): all 721 such programs of that pack built, 360 of them in 170 s on 32 |
| 218 | passes draw. | 220 | 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 with all |
| 221 | of them in the journal and no skip list (one run per build) took them all from the journal and got no further | ||
| 222 | than runs with the skip list: one stopped submitting after 404 s with the GPU idle, the other lost the device | ||
| 223 | about 214 s in with every queue idle, a loss that also happens with the skip list set | ||
| 224 | ([running.md](running.md#settings-every-platform-needs)). Whether their output is correct is not measured, so the | ||
| 225 | longest runs still leave them out. `LEONIDA_RT_AS=off` drops acceleration-structure builds and copies, and | ||
| 226 | `LEONIDA_SKIP_COMPUTE=<name>,<name>,...` with those programs' `lib_cs_NNNNN` names (picked by module size from | ||
| 227 | `library/index.json`) drops their dispatches at play. The picture then lacks whatever those passes draw. | ||
| 219 | 5. **Keep the title's hang watchdog kicked.** The title exits on purpose (a write to address 0) when its main loop has | 228 | 5. **Keep the title's hang watchdog kicked.** The title exits on purpose (a write to address 0) when its main loop has |
| 220 | not reported for 30 s, which a world load under the runtime exceeds. `LEONIDA_TITLE_WATCHDOG=0` defuses it only | 229 | not reported for 30 s, which a world load under the runtime exceeds. `LEONIDA_TITLE_WATCHDOG=0` defuses it only |
| 221 | together with `LEONIDA_TITLE_WATCHDOG_KICK=<trap RVA>,<kick RVA>` (hex; `runtime/src/main.cpp`); the two values are | 230 | together with `LEONIDA_TITLE_WATCHDOG_KICK=<trap RVA>,<kick RVA>` (hex; `runtime/src/main.cpp`); the two values are |