Repository navigation
Scripts: stop shader precompile at a private commit budget - #1756
NemesisDawn wants to merge 1 commit into
Conversation
Sample the offline XCL process and stop it at a user-set threshold. Keep completed cache files for the next run. Assisted-by: OpenAI Codex (GPT-6, exact variant unavailable)
|
Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows 10 CPU-only check of exact head Tested
Not tested |
|
Tested cancellation at
Both runspaces reported |
|
#1804 ("Part of #1657" too) works on the same memory problem inside AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Add an opt-in Windows wrapper for offline shader precompilation. It samples the XCL process’s private commit every 100 ms and stops it at a user-set threshold. Completed cache files stay available for the next run. Part of #1657.
What is in it
scripts/precompile-budget.ps1launches and monitors XCL. The README shows how to use it, andscripts/precompile-budget.tests.ps1exercises it with a native test process.Tested
f86b011,scripts/precompile-budget.tests.ps1passed on Windows PowerShell 5.1 and PowerShell 7.6.9. A normal child preserved its arguments and exit code. A child allocating memory stopped with exit code 4 at a 74 MiB sample with a 48 MiB budget, leaving a completed fixture cache file intact.Not tested
AI use