Extremely Long Shader Compilation Times

Unityyyyy

Hello there. I’ve switched to the “Forward +” renderer, along with Vulkan to do a new build of my project. I’ve also updated from Unity 2022 → Unity 6. The update went smooth enough outside of a few minor things.

I am aware the first build always takes a bit for the shaders to compile, however I recall in Unity 2022 it was definitely less than 12 hours. Was just wondering if this is a norm? This time seems a bit excessive for the projects size. Especially when comparing it to old first build times. Graphically the project hasn’t had a lot added onto it since the original first build on 2022.

PC Specs
CPU: AMD Ryzen 7 3700X 8-Core 3.59GHz
GPU: Nvidia 2080 Super
RAM: 16 GB

2 Likes

Bump.
image

image

Bump.

1 Like

Oh man, you just broke the Unreal Engine’s world records with that!

lol it completed at about 86ish hours. Wild.

2 Likes

I’m also getting insane shader build times. My project is still pretty small and it just took NINTEEN hours to do the shader variants on an i9-12900K.

What’s worse, is I flipped the addressable state on some of the shaders and now it appears to have forgotten that it ever compiled them so now I need to wait almost another whole day to build the client.

This isn’t practical at all.

1 Like

I can confirm.
Going from 2022.3.51 to 6000.1.7 increased shader compilation time from 4h to 24h with cleared shader cache.

I wonder if this will ever get answered. Ours went from an hour at most to 12 hours. 2021.3.x → 6.0.x
We can’t have that sort of delay for everyone on the team that uses unity to build.

Maybe unity should cover the costs for everyone on our team waiting for shaders to compile. Just kidding… mostly.

1 Like