Historical: Linux-based prototype
Shader compilation
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
A shader is a small program that runs on the GPU. The driver must compile it for the exact GPU before use, and doing that during play causes a pause. Khelforge has no shader feature and has measured no shader stutter.
General background
Section titled “General background”- Vulkan games build pipeline objects, and modern games can have many thousands of them. Building one at the moment it is first needed delays that frame.
- Games can compile ahead of time, on a loading screen. Some do and some do not.
- Drivers keep a cache on disk, so a second visit to the same scene is smoother. The cache belongs to one driver version and one GPU, so a driver update can empty it.
- Translated games have an extra step, because Direct3D shaders are converted before the Vulkan driver compiles them.
- A first run is therefore not comparable with a second one. Any benchmark must say which it is.
What Khelforge does today
Section titled “What Khelforge does today”Nothing. Mesa and NVIDIA’s driver behave as Arch ships them. Khelforge does not preload, share, move or clear shader caches, and does not change their size.
By default, drivers keep the cache in the user’s home folder. On an installed Khelforge system that is inside the encrypted home, so reading the cache includes decrypting it. The effect has not been measured.
What is planned
Section titled “What is planned”The benchmark plan lists shader compilation stutter as something to collect. No shader cache feature is planned.