Search Issue Tracker
By Design
Votes
9
Found in
2020.3.34f1
2021.3.3f1
2022.2.0a15
2023.1.0a3
Issue ID
UUM-1457
Regression
No
[iOS] Shaders are recompiled on subsequent builds
Reproduction steps:
1. Download and open the attached "urp_template.zip" project
2. Build the project for iOS
3. Repeat step 2
Expected result: The shaders are not recompiled on subsequent builds
Actual result: The shaders are recompiled on subsequent builds
Reproducible with: 2019.39f1, 2020.3.34f1, 2021.3.3f1, 2022.1.2f1, 2022.2.0a15
Comments (3)
-
jhughes2112
Sep 07, 2022 23:15
Also happening on Windows PC only builds. Same code / shaders mostly for months, first build will be 1+hours, second build will be 10 minutes. Wait a day or two, first build is 1+hours. I didn't delete anything, AND I am running the UnityAccelerator. So not only is the shader compiler generating something that misses local cache, it misses remote cache as well. Please fix. This is killing productivity for thousands of people.
-
hineworks
Aug 09, 2022 16:07
Note that this is easily reproducible if you install the glTFast package and add the following shaders to the "Always Included Shaders" list in Project Settings > Graphics:
Packages/glTFast/Runtime/Shader/glTF-pbrMetallicRoughness
Packages/glTFast/Runtime/Shader/glTF-pbrSpecularGlossiness
Packages/glTFast/Runtime/Shader/glTF-unlit -
SpockBauru
Aug 03, 2022 21:09
Also happening on android. If you start on windows and build, go to Android and build, and them back to windows, it will recompile everything again. It recompiles every time you switch a platform.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
The build is not instant, but no actual variant compilation is happening.