Unity Issue Tracker - Long scheduler times on main thread when using InstantiateAsync with a singular massive Prefab
Fixed
UUM-102307
Long scheduler times on main thread when using InstantiateAsync with a singular massive Prefab
Unity: Scripting Runtime
Fixed
6.3.X
6.2.X
6.1.X
6.0.X
Won't Fix
2022.3.X
2021.3.X
Too risky to backport to such an old and stable LTS
InstantiateAsync was introduced on 2022, nothing to be done on 2021
How to reproduce:
1. Open the attached “IN-98225-AsyncInstantiate6_1.zip“ project in Unity Editor
2. Navigate to Menu Bar > Window > Analysis > Profiler and click on it
3. Enter play mode and open the Profiler Window
4. Click Start Capture and observe the Profiler Graph
Expected result: Processing time keeps spiking up to over 33ms
Actual result: Processing time is inconsistent, usually taking longer than expected.