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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
The build is not instant, but no actual variant compilation is happening.