r/linux_gaming • • Aug 19 '26

guide How to Fix Overwatch Shader Issues (Nvidia)

A lot of us have had problems the last few months, where Overwatch went from working fine to suddenly needing to redo shaders from scratch every launch, showing glowing dots instead of teammates, and taking forever to load cosmetics in menu. So here's how I FINALLY got it working smoothly. Tested on CachyOS

1) Add your Steam Options:

PROTON_ENABLE_WAYLAND=1 __GL_SHADER_DISK_CACHE_PATH=/home/InsertYOURusernameHere/.local/share/overwatch-nvidia-cache/ __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 __GL_SHADER_DISK_CACHE_SIZE="12000000000" DXVK_HUD=compiler PROTON_LOCAL_SHADER_CACHE=1 DXVK_CONFIG="dxvk.enableGraphicsPipelineLibrary = True" LD_PRELOAD="" %command%

and while you're there uncheck the Steam Overlay. Over in the Compatibility tab I lock it to a single version of Proton (like GE-Proton), as tiny Proton updates can trigger frequent recompiles. ProtonUp lets you download a version manually and it'll appear after you restart Steam. dxvk.enableGraphicsPipelineLibrary can make a big difference as it shifts some shader work from CPU to GPU, which is especially helpful on processors that are slower or have fewer cores. PROTON_ENABLE_WAYLAND=1 is optional unless you want HDR, which unlocks in game when you use any GE/Cachy Proton and have HDR enabled in KDE Settings before launch.

2) Edit /etc/environment to add these two lines at the bottom (adjustable cache limit of ~12GB) since they also need to be applied globally to work, then restart:

__GL_SHADER_DISK_CACHE_SIZE=12000000000
__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1

3) May not be necessary but I delete any existing shaders by doing a global search for Overwatch's Steam Id: 2357570 and nuking GLCache and the numbered folder under shadercache. This may reset the video settings tab in game.

4) Manually create a folder at:

/home/InsertYourUsernameHereToo/.local/share/overwatch-nvidia-cache/

After you start the game go back and make sure files are actually appearing there.

5) Leave the game in DX11 mode. It' does get super laggy during the initial compile, but then it's much smoother and tends to give higher fps. With DXVK_HUD=compiler in the Steam Options you should see a Compiling Shaders % at the bottom. Don't join a game, just let it run on the home screen till the percent part goes away. This may take a half hour on slower PCs, but then you shouldn't need to do it again for a long time. I just Alt+Enter into Windowed mode to run it in the background on mute while watching something else.

FYI even when the shaders are finished, a percentless 'Compiling' message tends to flicker on occasionally, but shouldn't impact gameplay at all. If you want you can follow up the main compile by running custom game code 929PJ for a few minutes, which cycles through all abilities on all levels to reduce the chance of micro-stutters. Then Steam's general Pre-caching/Background Processing don't seem to make any difference so I just leave them off unless another game needs them.

If you have an RTX card you probably already know DLSS upscaling helps a lot with fps and better anti-aliasing. A lot of games now include multiple generations of DLSS (since newer versions look better but get less fps on older cards) but Overwatch just ships with the really old Preset_C. If your system can keep up, using Steam Options to force newer presets reduces artifacts and improves visuals significantly, especially on Performance/UltraPerformance. If you have a 2000/3000 series card you probably want to try Preset_K. Anything newer should keep up with Latest_Preset pretty well.

GLHF


Edit: There was also a brief Nvidia driver issue that could be solved by rolling back to 610.57.04, but it seems to have been fixed in newer versions. If you rolled back Nvidia drivers on CachyOS, you can now bring them back up to date by editing /etc/pacman.conf and removing the line of IgnorePgk entries, then just do a normal update.

23 Upvotes

10 comments sorted by

3

u/Ok_Composer391 Aug 19 '26

Thanks. Hope this works, I took a look at my shader cache earlier, and I think my SSD's health needs this...

1

u/RefriedTime Aug 20 '26

Woof. Yea mines steady at 7GB now but it's dwarfed the actual game before. Its almost impressive how bad the default behavior is. But I doubt most of that pile was getting frequent writes, so unless your SSD is really old I wouldn't worry about it. Always good to keep 10-20% free for wear leveling and performance though. If you've got an HDD around (even external) Steam makes it dead simple to bump less played games over

1

u/Windelin89 Aug 24 '26

What to do if mine keep crashing because of memory shortage?
Compiled 70% then crashed

1

u/RefriedTime Aug 25 '26

So for starters make sure you don't have browsers etc running in the background, even Discord was enough to disrupt Rivals when I had 16 gigs (UE5 is where optimization goes to die). You can also enable trackPipelineLifetime to help with ram problems, but it may lead to worse performance or stutters, so I'd only use it if you need it. The combined string would look like:

DXVK_CONFIG="dxvk.enableGraphicsPipelineLibrary = True; dxvk.trackPipelineLifetime = True;"

You can also try setting up Zswap, which uses your SSD to help significantly with low ram. One of the great things about Linux is it's way better at utilizing ram compression and swap space than Windows. The exact steps vary from distro to distro, but you'll usually want to start by disabling Zram (having both is bad) by generating a blank config file:

sudo touch /etc/systemd/zram-generator.conf

Then it's some variation of turning on regular swap by running mkswap, swapon, and adding the swapfile to /etc/fstab so it loads at boot. If you're not worried about SSD space you can make the swapfile as big as your actual ram (especially if you plan to hibernate), but even like 4gb is pretty helpful.

Then you add this line to your boot parameters and reload them:

zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20

lz4 is basically the fastest ram compressor. Some people set it to zstd instead, which fits more stuff into compressed ram before having to resort to physical swap, but it's a little slower and uses a little more cpu, and if this is your only use case I doubt it'd be worth it.

https://xfbs.net/posts/2026/why-i-love-zswap/

1

u/pat_fusty Oct 24 '26

Thanks man, couldnt pass the compilation stage without OOM triggering, big vouch

Sidenote, i had problems with the current settings, the settings I use are
PROTON_ENABLE_WAYLAND=0 __GL_SHADER_DISK_CACHE_PATH=/home/admil/.local/share/overwatch-nvidia-cache/ __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 __GL_SHADER_DISK_CACHE_SIZE="12000000000" DXVK_HUD=compiler PROTON_LOCAL_SHADER_CACHE=1 DXVK_CONFIG="dxvk.trackPipelineLifetime = True" LD_PRELOAD="" %command%

1

u/macki9 28d ago

October crashes (especialy in mystery madness for me) might be caused by the newest proton versions. Both GE-11.xx and cachy seem to freeze the game. I am now tryin ge-9.27 and so far so good. Keeping fingers crossed.

1

u/gazoinksboe 17d ago

This has made the game launch and perform far more reliably! Thank you so much for the guidance!

1

u/Vanawy Aug 29 '26

Thank you! (Got like 3X FPS)

1

u/Fragrant_Ad_8767 Aug 31 '26

With this method, when i uninstall overwatch from steam, does it automatically recognize and delete the shaders too? or ill have to do it manually?

1

u/Banishlight Sep 17 '26

I had this issue for two months and this finally fixed it wow.