ValveSoftware / Fossilize

A serialization format for various persistent Vulkan object types.
MIT License
585 stars 47 forks source link

Extremely long shader compilation times #256

Open Daktyl198 opened 2 months ago

Daktyl198 commented 2 months ago

Using Proton Experimental as my default proton version, I'm seeing EXTREMELY long shader compilation times. I'm talking over an hour for certain games. Deadlock takes 15 minutes and re-compiles every time there's an update. I'm trying to run Once Human right now and it's been compiling shaders for 45 minutes and it's only at 57%.

I have a Ryzen 3700X and 32GB of RAM, along with 7900XT. I can compile the Cosmic desktop environment from source code faster than I can most of these shaders. I believe there's something wrong with Proton and how it's handling the compilation of shaders. If this is unusual or there's anything I can do to improve the situation, I'd love to know.

kisak-valve commented 2 months ago

Hello @Daktyl198, this reads like Steam's shader pre-cache subsystem, which is run through Fossilize, not Proton, so I've transferred this issue to the Fossilize issue tracker.

Daktyl198 commented 2 months ago

You are correct. I had not looked at the process name, and assumed the two were related. Thank you for the assistance.

cryticx commented 1 month ago

Can confirm that Deadlock frequently needs to recompile shaders and takes a long time too. Even just skipping the compile takes a minute.