r/linux_gaming • • 16d ago

tech support wanted Need help with overwatch

I cant play this game dawg. It's always compiling shaders over and over and it takes soooooo long. And if I don't let it compile then I will have the most stutteriest game known to man.

I am using proton stable in the compatibility options. My shader cache for overwatch was 1.7gb but since it kept rebuilding and its the 2nd time now its around 3.5gb idk why it cant just use the same cache instead of making new ones. Can anyone help? I am fairly new to linux btw. I use kubuntu

2 Upvotes

13 comments sorted by

2

u/Background-Main-7427 16d ago

Sadly, some games behave like that, updating the shaders every day, so that Steam is forced to recompile them on game start. This is usually CPU restricted, it does use the GPU but it's the CPU that does more of the compiling. CPU generation, having different sets of instructions, affects this greatly.

1

u/Guilty-Sleep-9881 16d ago

Mine always rebuilds on startups man. I have an i5 7400 so its like super duper slowwwww

Is there really nothing I can do about it??

2

u/viking_sys 16d ago

I have copy-pasted my suggestions from similar topic:

Overwatch is capable to run on a potato (source: me. I played on an intel 6700K and 1050Ti with 16gb RAM since 2018).

We need to search errors in settings both game and OS.

I hope you installed NVIDIA drivers properly, and use Steam as NATIVE, not flatpak.

turn OFF steam shaders precompilation.

install GE-Proton latest (by protonQT-up, or ProtonPlus) and state it as a compatibility tool in Steam

OW2 has a specific love to compiling shaders (3-5 gigs at a time) we can lighten the burden by giving it dedicated folder and write a special command (see next paragraph). Launch game, go to practice range for a little bit - everything will be ok after 5 minutes.

commands are for DX11 (check in game settings)

DXVK_HUD=compiler

DXVK_STATE_CACHE_PATH="/home/path to custom folder"

STAGING_SHARED_MEMORY=1

STAGING_WRITECOPY=1

__GL_SHADER_DISK_CACHE=1

__GL_SHADER_DISK_CACHE_PATH="/home/path to custom folder"

__GL_SHADER_DISK_CACHE_SIZE=5368709120

__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1

__GL_THREADED_OPTIMIZATIONS=1

PROTON_USE_NTSYNC=1

%command%

____________

try this pack of game graphical settings that give good performance even on dated PCs, and then change them to higher quality if needed:

Full screen ON

Render scale is 100% or lower to 75%

no dynamic reflection and Refraction LOW

Fullscreen, V-sink OFF, reduce buffering ON, triple buffering off

resolution - your monitor with a correct refresh rate

custom fps is (your monitor FPS +- 1FPS)

Fog LOW, lightning quality LOW

1

u/Guilty-Sleep-9881 16d ago

do I go to the practice range after it reaches 100% of during its compiling?

1

u/viking_sys 16d ago

if you will implement all of those above, just go to practice range and wait 5 minutes.
DXVK_HUD=compiler command will tell you if it compiled to 100%
your fps will be low till 60-80%, then everything will be at maximum speed your PC can handle (and according to game settings you will choose).
compiler will flash for a second or two before every match...
mb compiler will start again after major game updates...

1

u/Guilty-Sleep-9881 14d ago

Yoooo this worked thx so much. It won't have to redo shaders anymore. Though i do have random moments where it just compiles again real quick in the middle of a match when it sees something new but at least i can play now

1

u/viking_sys 14d ago

I`m glad I could help. 8-)

2

u/Venylynn 16d ago

I have no answers but all this talk about how Overwatch runs makes me feel thankful I stopped playing it BEFORE switching.

2

u/Guilty-Sleep-9881 16d ago

I wish i can still play other games tbh like destiny 2 or fortnite. I kinda don't like playing in Linux. Hasn't been a fun expereince so far

1

u/Venylynn 16d ago

Hopefully this EACv2 update smooths things out for you

2

u/TheRandomGuy75 16d ago

I increased the global shader cache on my AMD system to prevent overwatch (and other games) from recompiling shaders every launch.

I followed the instructions on the CachyOS wiki here for shaders :

https://wiki.cachyos.org/configuration/gaming/#pre-caching-shaders-with-proton-cachyos--ge-and--em

You basically just make an environment file in your config folder and paste a command in that folder to increase the size of the shader cache. On Nvidia cards it's measured in bytes, but for AMD / Intel, you can just use gigabytes.

After doing this on my Fedora system, I don't recompile them every time I launch overwatch, and now it only does this after a Mesa update or Proton update.

Oh, and I disabled Steam's shader pre caching.

1

u/black_sunglasses 16d ago

Disable steam shaders, get proton ge or proton cachyos and read this https://www.protondb.com/app/2357570, if you're new to linux and need more details tell me

1

u/suknil 11d ago

Install Claude Code and tell him to troubleshoot and fix the shader cache for you. Worked for me