Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X
Votes
1
Found in
2021.3.39f1
2022.3.31f1
6000.0.4f1
6000.1.0a7
6000.2.0a1
7000.0.0a1
Issue ID
UUM-72784
Regression
No
Shaders created with Shader Graph generate a large amount of shader variants and cause slow build times when using a baked lightmap in BIRP
How to reproduce:
1. Open the attached “shader_variants_birp” project
2. Open the Build Settings (File → Build Settings…) and ensure that “Development Build” is selected
3. Press “Build”
4. Take note of the build time
5. Observe the result in the Console window
Expected result: The build takes a short time to complete (less than a minute) and few shader variants are generated
Actual result: The build takes a long time to complete (several minutes) and a large amount of shader variants are generated (30 000 - 60 000)
Reproducible in: 2021.3.39f1, 2022.3.31f1, 6000.0.4f1
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
* Not reproducible in URP/HDRP
* The number of generated shader variants depends on the selected graphics API
** Direct3D11 - 50583
** Direct3D12 - 50583
** Vulkan - 33435
** OpenGLES3 - 32975
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Discussions] "NativePassData.GraphPasses()" has GC Alloc of ~256 B when using Render Pass
- Setting Shader Graph to Surface Type "Transparency" and Render Face "Both" breaks the preview
- Warning "Unknown pseudo class "multiline"" is logged when the Animator is loaded or in use after picking Motion in a States Inspector
- Deleting the property in the Blackboard and then creating the different type property with the same name throws an error
- Selector gets stuck in UI if scroll is used while dragging
Add comment