When you first boot a game, the process of compiling its shader cache can be a tedious wait, especially for older titles or games with extensive graphics. However, this process is essential for translating shaders into native code that your GPU can execute efficiently. Unfortunately, this cache can sometimes be accidentally wiped out, leading to stuttering as the CPU has to recompile shaders. Thankfully, you can fix this issue with a single tweak in the Nvidia Control Panel, ensuring your games won't have to recompile shaders after the first attempt. Here’s how to do it and some standout recommendations to enhance your gaming experience.
Why Your Shader Cache Keeps Getting Wiped
Shader compilation is typically a one-time process, and your GPU saves the compiled data in your driver's folder on the C: drive. However, this data can sometimes become overwhelming across multiple games, causing the GPU's driver to expel the cache for other games to make room for newer ones. This usually happens because the GPU's driver sets a fixed, sometimes inadequate, cache-size limit, which can clear the cache and prompt the game to recompile shaders, causing stutters. When you re-launch a game whose shaders got wiped, your CPU gets burdened with compilation, leading to stutters that only go away once the shaders are fully compiled. Additionally, switching to another game may wipe the previous game's shaders if the cache is filled, and so on.
How to Raise the Shader Cache Limit
One toggle in the Nvidia Control Panel can solve this issue. Both AMD and Nvidia let you set a specific size limit for the game's cache, and if you have a big library like mine, you'll likely experience frequent shader recompilation. To avoid this, set a custom size limit for your shader cache. Go to Manage 3D settings and then Global settings. Find