steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Game is rebuilding shader everytime I launch it.

Open Turmfalke2 opened this issue 6 years ago • 118 comments

hi, Everytime I start dota it is rebuilding the shader cache. Feels like something is broken here. Recently it even broke the translations string for it. screen02

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist: https://gist.github.com/Turmfalke2/846b08702f77c1bdd679ad397a4165e4
  • Have you checked for system updates?: no
  • Are you using the latest stable video driver available for your system? no
  • Have you verified the game files?: yes

Turmfalke2 avatar Aug 06 '20 18:08 Turmfalke2

Hello @Turmfalke2, Shader Pre-Caching is handled by the Steam client, not Dota 2, so I've transferred this issue to the steam-for-linux issue tracker.

kisak-valve avatar Aug 06 '20 18:08 kisak-valve

I also experience the Shader Cache building everytime I try to start the game after a restart of steam.

polo123qwe avatar Aug 07 '20 18:08 polo123qwe

confirmed on another games, everytime rebuilding

sinaflan avatar Aug 30 '20 13:08 sinaflan

I have the same problem with those shaders. Week after week seems to be worse.

rkozlo avatar Sep 26 '20 15:09 rkozlo

Same issue here on Linux. I have enabled Shader precaching and allow background processing of Vulkan shaders. My procedure for now is to let steam fully precache it and disable background processing after that. Everytime when it wants to precompile when starting a game I quit the process. Hopefully the issue is solved soon.

helmchenlord avatar Oct 12 '20 17:10 helmchenlord

I'm having this issue on steam for Linux. The worst offender is Rise of the Tomb Raider. Shader caching can take 20-30 minutes, every single time I launch the game.

DLeich avatar Oct 16 '20 00:10 DLeich

Can confirm this issue on Linux and it's a major pain. Haven't timed it but definitely feels like a 10-20 minute wait every time I try launching a particular Valve game, especially after an update. Considering many games push daily or semi-daily updates through Steam, this is a no-go and it's making me opt out Vulkan and into OpenGL when that's easily done in-game.

EDIT: I don't think it's opting out of OpenGL that stopped this problem but disabling the pre-caching. Haven't tried to reproduce.

I am sure this feature is well-intended as a quality-of-life feature but it's absolutely killing Vulkan support for me. My suggestion is to consider disabling it by default until a proper implementation is achieved because this is not on-par with Steam standards.

Imagine someone having to run 15 minutes of shader pre-compilation on battery on a laptop. I'm sorry but this is unacceptable.

tukkek avatar Oct 16 '20 04:10 tukkek

Just for the record, if this pre-shading step took the same time it took today but happened once and as part of the installation of a product rather than as part of launching it, I would be 100% fine. I can leave the game downloading, installing and pre-caching as long as it needs to but waiting over 10+ minutes (or double that) when I try launching a game is not what I expect from Steam or any game.

I would say the same for game updates but as I said in my last comment, games can push very small updates multiple times a day and waiting 20 minutes for each of those (especially if updates are running on the background) is also not par for the course.

tukkek avatar Oct 16 '20 04:10 tukkek

Issue started occurring for me a couple of days ago, too. Cache starts building every time I launch the game. No game/driver updates that might trigger it. The biggest offender so far is Warframe (for some reason, it takes a whopping 6 hours for Warframe's cache to be built, and this is successful scenario - most of the time it will hang at about 60% and won't progress after that).

Fieneppi avatar Oct 16 '20 07:10 Fieneppi

Grand Theft Auto V does this too. Every darn time and hogging the CPU severely while at it. Valve, this is a SEVERE ISSUE with the Steam client and should not be left without any action for 2+ months. Give it some priority.

mischa85 avatar Oct 16 '20 23:10 mischa85

I have a lot of games installed - and a lot of shaders get processed every time i start the machine. Every 2nd start of dota (my most played game) it processes again. Even 1 time it happened that dota crashed and then the shader processing went so long that I got an abbandon. Very annoying.

ChrisLauinger77 avatar Oct 17 '20 07:10 ChrisLauinger77

Same issue, specifically with Warframe. At this point I've disabled "Allow background processing..." as it happens after every restart, and after every time I play the game. Only uses a few threads, for some reason really likes using swap despite plenty of memory, and seems to really churn on my M.2.

jnines avatar Oct 17 '20 18:10 jnines

Its just a bug

How does it being a bug change the fact that I'm suggesting an improvement over the current implementation?

EDIT: why did byte1024 delete his comments, too many thumb downs?

tukkek avatar Oct 18 '20 21:10 tukkek

Same here. Processing shaders on Dota 2 takes about 40 min and start at every system boot. Worth to add other games (mostly steamplay/proton) affected too.

AngryPenguinPL avatar Oct 23 '20 17:10 AngryPenguinPL

Same here, on my crappy laptop with hybrid graphics Rise of the Tomb Raider takes like one hour to process Vulkan shaders, every time I start it.

protoroto avatar Oct 25 '20 20:10 protoroto

Same here, almost every time when I start Dota2, steam will rebuild it again.

Ca11back avatar Oct 26 '20 22:10 Ca11back

Every time I start GTAV it builds shaders again. This process takes about 20 minutes.

Lyle-Tafoya avatar Oct 26 '20 23:10 Lyle-Tafoya

Same here - nvidia 1060 - driver : 455.28

Shadow of the Tomb raider takes about 30 mins to start

Every time.

morgancoxuk avatar Oct 29 '20 23:10 morgancoxuk

For me - I resolved this by removing Nvidia 455.28 and replacing with 450.80.02 - after i had to download the entire shader cache once more (i disabled then re-enabled pre-caching in steam) - after then it hasn't re-downloaded again (so far)

So is this purely a nvidia driver with 455.x series ?

morgancoxuk avatar Oct 30 '20 13:10 morgancoxuk

So is this purely a nvidia driver with 455.x series ?

This is problem also with AMD GPU.

AngryPenguinPL avatar Oct 30 '20 14:10 AngryPenguinPL