Search Issue Tracker

Fixed

Fixed in 2021.3.33f1, 2022.3.14f1, 2023.1.0a10

Votes

5

Found in

2020.3.26f1

Issue ID

UUM-1883

Regression

Yes

TerrainData.AwakeFromLoad takes around 13-19 ms after loading a Terrain from an asset bundle

--

-

How to reproduce:
1. Open the attached project ("TerrainBundleTest.zip")
2. Open Profiler if it's not open (Ctrl/command + 7)
3. Enter Play Mode, wait for the terrain to load, and exit Play Mode
4. In the Profiler hierarchy view search for the keyword "TerrainData.AwakeFromLoad" in the first few frames of the Profiler data

Expected result: TerrainData.AwakeFromLoad does not take 13-19 ms of time
Actual result: TerrainData.AwakeFromLoad takes 13-19 ms of time

Reproducible with: 2020.2.0b10, 2020.3.26f1
Not reproducible with: 2019.4.34f1, 2020.2.0b9, 2021.2.8f1, 2022.1.0b4, 2022.2.0a2

Note:
- If you select the Assets/Terrain and change the heightmap resolution of the terrain to 513 * 513, rebuild the asset bundle that contains the terrain asset (I.e. Go to the addressables group window and perform a rebuild there) and repeat steps 1 - 5, the delay for TerrainData.AwakeFromLoad reduces to less than 5 ms.

  1. Resolution Note (fix version 2023.1.0a10):

    The fix reduces the amount of time taken on the main thread to async load a terrain. The physics system still takes some time on the main thread to set up the terrain collider.

  2. Resolution Note (fix version 2022.3.14f1):

    Thank you for your patience. This issue has been resolved and a fix has been pushed in 2022.3.14f1.

  3. Resolution Note (fix version 2021.3.33f1):

    Thank you for your patience. This issue has been resolved and a fix has been pushed in 2021.3.33f1.

Comments (6)

  1. Lynxbird

    Oct 31, 2023 09:33

    This bug is NOT fixed on 20023.1

    To reproduce it add few textures of grass to terrain (10+ textures) and you will experience big freezes.

    When you async load terrain, it will freeze the main thread for 0.2-0.5 seconds while it is auto combining those grass textures into atlas image in TerrainData.AwakeFromLoad.

  2. Lynxbird

    Oct 29, 2023 10:52

    Hey, still an issue in 2020.3.48f1 (LTS)

  3. joeysipos

    Jun 22, 2023 18:52

    I am getting a 80+ ms delay in 2021.3 loading a terrain. Any way to get a fix for this in 2021.3?

  4. Ormy

    Feb 18, 2023 14:43

    Updated our game from 2019 lts to 2021.3 and load times tripled due to this issue. Will this be fixed in 2021 lts?

  5. sdargiewicz

    Jan 16, 2023 02:06

    Will this fix make it into 2021.3 LTS? 60+ms for TerrainData.AwakeFromLoad

  6. mrc_akka

    Jul 11, 2022 08:00

    Append in 2021.3.

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.