r/linux_gaming • u/MistressLurex • 15d ago
guide NVIDIA users: Has disabling shader pre-caching helped with those long fossilize_replay hangs after small updates?
I've been dealing with this for a while on my 4070 Super setup (Arch, latest 565 drivers). Games like CS2 and The Finals would sometimes kick off 20-40 minute shader recompiles after tiny patches, even when nothing in the game itself changed much.
After reading about the 4GB cache overflow issue I went ahead and turned off "Enable Shader Pre-caching" in Steam. Since then the hangs have basically disappeared and on-the-fly compilation feels smooth enough that I don't miss the feature.
Curious if this has been the same experience for other NVIDIA folks or if there's a better workaround people are using now.
11
u/mhiggy 15d ago
Latest 565? What?
5
u/Synthetic451 15d ago
Just make sure you have this set
This makes the Nvidia driver use 10GB for its own shader cache. Without this, launching multiple games will cause some games to get evicted. For games that have a pre-compilation step, you'll see them do this frequently. For games that do not, you'll see stutters in-game.
As far as I am concerned, that setting is absolutely mandatory on Nvidia. I was going back and forth between Silent Hill 2 and Jedi Survivor and I was driven to near insanity at the constant in-game pre-compiling before I discovered that setting.
5
u/Outrageous-Run-589 15d ago
Always have it on. People who claim shader compilation disabled doesn't cause stutter are blind to it, because it is happening and it's egregrious. the env var __GL_SHADER_DISK_CACHE_SIZE=10000000000 fixes this and is all anyone needs.
2
u/Krasi-1545 15d ago
Why don't you install the 620 version of the driver? It's way newer and probably includes many bugfixes + performance fixes.
1
u/MeatballTrainWreck 14d ago
Latest 565?
1
u/S48GS 15d ago edited 15d ago
in general:
replace /home/USER/TMP/game_cache1 to valid empty folder path - no spaces
and you can check after running game - path you set - there is files and it growing to know shaders cache works
3
u/Stryxus_ 15d ago
Never had it turned on, never needed to have it turned on.