Search Issue Tracker

By Design

Votes

1

Found in

2019.4

2021.2

2021.2.12f1

Issue ID

1404970

Regression

Yes

Building Asset Bundles takes longer when using URP

Asset Bundles

-

How to reproduce:
1. Open the attached "Bundler_2021_URP.unity.zip" project
2. Open the "SampleScene" Scene
3. Select the "Bundler" GameObject in the Hierarchy
4. In the Inspector select only the system you are using
5. Press "Make Bundle"

Expected result: Building Asset Bundles takes the same or similar amount of time to finish
Actual result: Building Asset Bundles takes significantly longer to finish

Reproducible with: 7.7.1( 2019.4.37f1), 12.1.6 (2021.2.19f1)
Not reproducible: 10.8.1 (2020.3.33f1, 2021.2.19f1), 12.1.5 (2021.2.19f1), 13.1.7 (2022.1.0b16), 14.0.2 (2022.2.0a10)

Note:
- 7.7.1 is the latest usable version for 2019.4
- Built-in Render Pipeline does not have this issue

  1. Resolution Note (2022.2.X):

    The majority of time when building the sample project was spent switching platform and then restoring it back. The code was building BuildTarget.StandaloneWindows, which is the 32 bit build, and the build project settings were for 64 bit, so even building only Windows on a Windows machine would take a lot of time to switch. When the Build Settings had been set to 32 bits the build time became very quick. This overhead for switching targets as part of a build will be more dependent on the size of the project, rather than the content of the Asset Bundle, including whatever additional projects are included such as URP.

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.