Not signed in
Copyright © 2026 Unity Technologies
The reason for the increased shader compilation times, in this case, was due to an increase in array sizes for Additional Light Shadow in URP Shaders. That change has now been reverted. Additionally, we remove any shader parameters for Additional Light Shadows if the feature is disabled in the URP Asset. To further improve compilation times we have also added Shader Prefiltering, which helps with stripping out unused shader variants early in the shader processing stage.
The reason for the increased shader compilation times, in this case, was due to an increase in array sizes for Additional Light Shadow in URP Shaders. That change has now been reverted. Additionally, we remove any shader parameters for Additional Light Shadows if the feature is disabled in the URP Asset. To further improve compilation times we have also added Shader Prefiltering, which helps with stripping out unused shader variants early in the shader processing stage. Fixed in 2022.2.2f1
Canceling 2022.1 port due to product end-of-life.
The reason for the increased shader compilation times, in this case, was due to an increase in array sizes for Additional Light Shadow in URP Shaders. That change has now been reverted. Additionally, we remove any shader parameters for Additional Light Shadows if the feature is disabled in the URP Asset. To further improve compilation times we have also added Shader Prefiltering, which helps with stripping out unused shader variants early in the shader processing stage.
Reproduction steps:
1. Open the “ShaderCompilation” project
2. Make sure “Library/ShaderCache” is deleted
3. Open the “Addressables Groups” window
4. Select “Build > Clear Build Cache > All”
5. Select “Build > New Build > Default Build Script”
6. Observe the build duration in the Console
Expected result: the duration is not higher than in 2020.3, e.g. 15 minutes or less
Actual result: the duration is higher than in 2020.3, e.g. 28 minutes or more
Reproduced in: 2021.1.0a10, 2021.3.12f1, 2022.1.21f1, 2022.2.0b12, 2023.1.0a13
Not reproduced in: 2020.3.41f1, 2021.1.0a9, 2023.1.0a14, 2023.1.0a16
Reproduced using: macOS Monterey 12.0.1 (2.4 GHz 8-Core Intel Core i9, 32 GB 2667 MHz DDR4)
Note: if the Console doesn’t log the duration, use the “dur” value of “Building Default Build Script“ in “Library/com.unity.addressables/AddressablesBuildTEP.json”
Sign in to see your voted issues