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

  1. Resolution Note:

    The build is not instant, but no actual variant compilation is happening.

Comments (3)

  1. 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.

  2. 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

  3. 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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.