[PR #1157] [CLOSED] Precompile separate shader indexes (BUILD-LIBRARY-PIPELINE-PRECOMPILE) #1190

Closed
opened 2026-11-26 20:20:24 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1157
Author: @silas-rbus
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: codex/library-pipeline-precompile


📝 Commits (1)

  • 66dc3ab Precompile separate shader indexes into shared Vulkan cache

📊 Changes

3 files changed (+125 additions, -25 deletions)

View changed files

📝 docs/pipeline_check.md (+9 -1)
📝 make_game.py (+61 -21)
📝 tests/test_make_game_pipeline_batches.py (+55 -3)

📄 Description

Claimed in the coordination issue as: BUILD-LIBRARY-PIPELINE-PRECOMPILE (claim)

What and why

The pipelines stage checked only the main translated shader index. The shader stage also writes separate library, FSPX and executable indexes. Their pipelines could therefore be compiled during boot even after an offline pipelines pass.

  • Check each available separate index before the main corpus, saving all passes into the same pipeline_cache.bin that the runtime loads. This includes the library compute pipelines requested through slot 67.
  • Keep separate in-flight, skip and JSON crash reports for each index. A module name skipped in one index can still compile in another, and a validation failure does not hide later indexes.
  • Require a checker with report and bounded-range support when separate indexes exist. The existing corpus-only fallback for older checkers remains.
  • Document the build order and reporting.

This changes offline cache coverage. A retail startup or cache-hit speedup has not been measured here. Related: #984 tracks BVH precompilation separately; this PR does not include BVH behavior.

Tested

  • Windows 11, Python 3.14.7: python -I tests/test_make_game_pipeline_batches.py (19 passed).
  • Windows 11, Python 3.14.7: python -I tests/test_make_game_pipelines.py (18 passed).
  • python -m compileall -q make_game.py tools tests.
  • python -I scripts/check_no_game_data.py make_game.py tests/test_make_game_pipeline_batches.py docs/pipeline_check.md.
  • git show --check HEAD.
  • Baseline translator suite: python -I scripts/run_semantic_tests.py tests/semantic (470 files, 6,168 tests, 0 failed). This run started before the pipeline-stage edit; translator code is unchanged.

GPUs tested: none for this change (the checker in these tests is synthetic). Host GPU: NVIDIA GeForce RTX 5060 Ti, driver 610.88, Windows 11.

AI-assisted: yes (OpenAI Codex).

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption, including in reports quoted here.
  • Translator contract table: not applicable; no translator rule changed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1157 **Author:** [@silas-rbus](https://github.com/silas-rbus) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/library-pipeline-precompile` --- ### 📝 Commits (1) - [`66dc3ab`](https://github.com/ubiquitarianism/leonida/commit/66dc3ab08db13ec82d9557db68f03a41fff92d4a) Precompile separate shader indexes into shared Vulkan cache ### 📊 Changes **3 files changed** (+125 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `docs/pipeline_check.md` (+9 -1) 📝 `make_game.py` (+61 -21) 📝 `tests/test_make_game_pipeline_batches.py` (+55 -3) </details> ### 📄 Description Claimed in the coordination issue as: BUILD-LIBRARY-PIPELINE-PRECOMPILE ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141674057)) ### What and why The pipelines stage checked only the main translated shader index. The shader stage also writes separate library, FSPX and executable indexes. Their pipelines could therefore be compiled during boot even after an offline pipelines pass. - Check each available separate index before the main corpus, saving all passes into the same pipeline_cache.bin that the runtime loads. This includes the library compute pipelines requested through slot 67. - Keep separate in-flight, skip and JSON crash reports for each index. A module name skipped in one index can still compile in another, and a validation failure does not hide later indexes. - Require a checker with report and bounded-range support when separate indexes exist. The existing corpus-only fallback for older checkers remains. - Document the build order and reporting. This changes offline cache coverage. A retail startup or cache-hit speedup has not been measured here. Related: #984 tracks BVH precompilation separately; this PR does not include BVH behavior. ### Tested - Windows 11, Python 3.14.7: python -I tests/test_make_game_pipeline_batches.py (19 passed). - Windows 11, Python 3.14.7: python -I tests/test_make_game_pipelines.py (18 passed). - python -m compileall -q make_game.py tools tests. - python -I scripts/check_no_game_data.py make_game.py tests/test_make_game_pipeline_batches.py docs/pipeline_check.md. - git show --check HEAD. - Baseline translator suite: python -I scripts/run_semantic_tests.py tests/semantic (470 files, 6,168 tests, 0 failed). This run started before the pipeline-stage edit; translator code is unchanged. GPUs tested: none for this change (the checker in these tests is synthetic). Host GPU: NVIDIA GeForce RTX 5060 Ti, driver 610.88, Windows 11. AI-assisted: yes (OpenAI Codex). ### Checklist - [x] Based on current main and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption, including in reports quoted here. - [x] Translator contract table: not applicable; no translator rule changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:24 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1190
No description provided.