Search Issue Tracker
By Design
Votes
1
Found in
2019.1.0a1
2019.2.0a1
2019.2.0b5
2019.3.0a1
Issue ID
1162858
Regression
No
Resources.UnloadUnusedAssets gets called from LoadSceneAsync method, which causes performance issues
How to reproduce:
1. Open the attached project ("case_1162858-Galaxy_Forces_VR")
2. Open the repro scene ("PlayGame")
3. Enter Play Mode
4. Press "B" to start LoadSceneAsync
Expected results: Project continues to work smoothly
Actual results: Project "freezes" for approximately one second during the loading
Reproducible with: 2019.1.8f1, 2019.2.0b8, 2019.3.0a8
Couldn't test with 2017.4 and 2018.4 because of project errors after the downgrade
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note:
This is by design.
When ever you load a scene non-additive we have to cleanup unused assets to make sure you don't run out of memory.
A work around could be to load addtively and switch scenes yourself and unload the previous scene plus make sure to cleanup all unused assets or you could get in trouble later.