Siccity / GLTFUtility

Simple GLTF importer for Unity
MIT License
976 stars 217 forks source link

Long Shader Compile/Build Time #223

Open PaxRon777 opened 1 year ago

PaxRon777 commented 1 year ago

I currently experience 7-8 hour initial build times on a 16 core machine, all 32 threads are 100% utilized, due to the shader variants. Successive builds GTLFUtility adds 5-6 minutes to builds where it takes 10 seconds without it, additionally application load time is increased by a few seconds.

Question is how do I limit the massive amount of shader variants and increase build and load times. This is very restrictive to do for every project.

Additional note, if there is any Ray Tracing enabled in the scene then the app will crash, remove the GLTFUtility shaders and it runs.