Search Issue Tracker
In Progress
Fixed in 2023.1.0a10
Fix In Review for 2021.3.33f1, 2022.3.14f1
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.
-
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.
-
Lynxbird
Oct 29, 2023 10:52
Hey, still an issue in 2020.3.48f1 (LTS)
-
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?
-
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?
-
sdargiewicz
Jan 16, 2023 02:06
Will this fix make it into 2021.3 LTS? 60+ms for TerrainData.AwakeFromLoad
-
mrc_akka
Jul 11, 2022 08:00
Append in 2021.3.
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
- Build fails when building with ILCPP Scripting Backend and ARMv7 as the Target Architecture
- Textures turn black in Player when they are referenced by a script instance
- [Android] Virtual device crashes with "Scudo ERROR: invalid chunk state when deallocating address" error in Firebase Test Lab when Optimized Frame Pacing is enabled
- Particle System does not resume when its Culling Mode is set to "Pause" or "Pause and Catch-up," and particle position simulate in world space
- "Custom Render Queue" field cannot be set above "2000" when changing it in the Inspector window using Debug mode
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.
Resolution Note (fix version 2022.3.14f1):
Backported from 2023.1
Resolution Note (fix version 2021.3.33f1):
Backported from 2023.1