Skip to content

docs: the Mesa shader cache, sized, per prefix, and set in the play script - #93

Closed
oguska wants to merge 1 commit into
pablogonz12:mainfrom
oguska:docs/mesa-cache
Closed

oguska wants to merge 1 commit into
pablogonz12:mainfrom
oguska:docs/mesa-cache

Conversation

@oguska

@oguska oguska commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Closes #66.

What changes. A "Mesa shader cache" subsection in docs/linux.md §4: the measured numbers (751 programs, 37,672 ms cold against 148 ms warm, 8.7 MB in 253 files), the exact environment for a saved run (MESA_SHADER_CACHE_DIR inside the prefix, MESA_SHADER_CACHE_DISABLE=false, MESA_SHADER_CACHE_MAX_SIZE=8G, with 16 GiB named as planned and untested), the per-prefix consequence spelled out (another prefix pays the whole cold cost, which looks like a code regression), and MESA_SHADER_CACHE_READ_ONLY=1 mentioned as the only way to ship a prebuilt cache and not what the script does. The play script sets the three variables. Cross-links from docs/ROADMAP.md ("Mesa cache sizing") and the README quick start.

Evidence. Written against the page as a newcomer reads it; no game data, counts only. cargo xtask policy passes.

…cript

The 148 ms warm against 37,672 ms cold for the same 751 programs is
the biggest single number we have, and nothing in docs/linux.md told
a user how to keep it. The play script now sets MESA_SHADER_CACHE_DIR
inside the prefix, MESA_SHADER_CACHE_DISABLE=false and
MESA_SHADER_CACHE_MAX_SIZE=8G (16 GiB planned, untested), the new
section spells out the per-prefix consequence and the read-only
option, and ROADMAP and the quick start link to it.

Closes pablogonz12#66.
@pablogonz12

Copy link
Copy Markdown
Owner

Ported onto the unified core as #113 (docs/linux.md kept no Mesa cache section, so the section went in as written); branch kept.

pablogonz12 added a commit that referenced this pull request Nov 25, 2026
docs: the Mesa shader cache, sized, per prefix, and set in the play script (from #93)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs/linux.md: document the Mesa shader cache (per prefix, size, read-only)

2 participants