Fixing game stuttering under Proton in Steam

by CodeF0x | 2021-06-17

Disclaimer: This only works for NVIDIA cards!

When I first tried out Steam's Proton support, I noticed that DOOM Eternal wasn't running smooth at all. I would be at a constant 75 FPS according to my FPS counter, but I still experienced a lot of stutters / micro lags while playing.

How I fixed the stuttering issue

However, this only fixes it for your current session. To make the fix persistent through out system reboots, add these two lines to your /etc/profile file, respectively the file your shell uses.

It should looks like this:

export __GL_SHADER_DISK_CACHE_PATH=/home/you/Shaders


The problem is that NVIDIA has a limit of 128 MB for its shader cache.

As there's no way to increase the cache size, we tell the NVIDIA driver to use deticated directories for each game to store shaders in instead of caching them.

This also fixes the problem that Steam compiles VULKAN shaders everytime your launch a game via Proton.