MaxAnisotropy = 16; EnableTextureRecompression = true; ShaderCompileThreads = Environment.ProcessorCount * 2;
The shader cache is a stored collection of compiled GPU shader programs that a Nintendo Switch game requires to render frames. On the Switch, the GPU makes heavy use of shaders that are either precompiled or compiled quickly on the device. When emulating the Switch, the emulator must translate the Switch GPU shader code into shaders that the host GPU and graphics API (Vulkan, OpenGL, Direct3D, Metal) understand. Compiling those translated shaders at runtime is expensive: it causes stutters and long hitches when a game requests a shader that hasn’t been compiled yet. A shader cache preserves those compiled host-side shaders so they don’t need to be recompiled every time the same rendering path is used. shader cache ryujinx
Right-click the game in Ryujinx's game list, navigate to . This will open the folder containing the cache files for that specific game. Compiling those translated shaders at runtime is expensive:
Shader caching requires constant reading and writing to your storage drive. Running the emulator from a fast Solid State Drive (SSD) instead of a traditional Hard Disk Drive (HDD) ensures that shader files load fast enough to prevent noticeable hitching. This will open the folder containing the cache
To make the most out of shader caching and Ryujinx performance, adhere to these simple rules:
: The first time you see an effect (like an explosion or a new area), the emulator pauses for a fraction of a second to translate it.
Optimizing Performance: The Ultimate Ryujinx Shader Cache Guide