Skip to content

cachyos-gaming-meta: raise shader cache max size to 12GB - #1772

Open
steven-s-martins wants to merge 1 commit into
CachyOS:masterfrom
steven-s-martins:gaming-meta-shader-cache
Open

cachyos-gaming-meta: raise shader cache max size to 12GB#1772
steven-s-martins wants to merge 1 commit into
CachyOS:masterfrom
steven-s-martins:gaming-meta-shader-cache

Conversation

@steven-s-martins

@steven-s-martins steven-s-martins commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • Ship /usr/lib/environment.d/40-cachyos-gaming-shader-cache.conf from cachyos-gaming-meta, setting Mesa (MESA_SHADER_CACHE_MAX_SIZE=12G) and NVIDIA (__GL_SHADER_DISK_CACHE_SIZE=12000000000) to the same 12GB ceilings recommended in the gaming wiki tip.
  • Addresses CachyOS/distribution#373 via cachyos-gaming-meta so non-gaming installs are unaffected.
  • Print a short reboot/re-login notice on install and on upgrades from older package versions.

Users can override via /etc/environment.d/ (prefer a 60–90 prefix) or ~/.config/environment.d/. Values only raise the max; they do not preallocate disk.

Wiki follow-up: CachyOS/wiki#634

Test plan

  • Install/upgrade cachyos-gaming-meta and confirm the conf is at /usr/lib/environment.d/40-cachyos-gaming-shader-cache.conf
  • Confirm install/upgrade message mentions reboot/re-login
  • After reboot (or re-login), confirm MESA_SHADER_CACHE_MAX_SIZE / __GL_SHADER_DISK_CACHE_SIZE appear in the user session environment (systemctl --user show-environment)
  • Confirm a user override in ~/.config/environment.d/ wins over the package default

Ship an environment.d drop-in so gaming installs get the wiki-recommended
Mesa/NVIDIA shader cache ceilings without manual per-user setup.
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.

1 participant