Search Issue Tracker
Fixed
Fixed in 6000.2.0a8
Votes
0
Found in
2021.3.45f1
2022.3.51f1
6000.0.24f1
6000.1.0a1
6000.2.0a1
Issue ID
UUM-85249
Regression
No
GarbageCollector CPU usage spikes when a Scene is loaded
How to reproduce:
1. Open the attached "IN-86602" project
2. Enter Play mode
3. Open the Profiler window (Window → Analysis → Profiler)
4. In the Profiler window observe the CPU Usage module and look at Highlights for any spikes in CPU usage
Expected result: GarbageCollector does not cause any spikes in CPU usage
Actual result: GarbageCollector causes a CPU usage spike (~150-200 ms in the project)
Reproducible with: 2021.3.45f1, 2022.3.51f1, 6000.0.24f1, 6000.1.0a1
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
- The CPU usage spike seems to be related to Asset GarbageCollector whenever a Scene is loaded
Comments (1)
-
ZabAyAI
Oct 22, 2024 15:38
Isn't it developed by design? GC calls with scene unloading by unity
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
- Crash on JobQueue::HasJobGroupIDCompleted when closing the Editor while in Play mode on a specific project
- In "Preferences" section the “SpriteShape” menu item, the details page title “SpriteShape”, and “ControlPoint” entries are displayed as code strings rather than formatted UI strings
- Errors thrown constantly when Virtual Offset Debug is enabled and lighting was baked on AMD machine
- Persistent Memory Leak when reloading domain and using Distance-based Ghost Importance
- HDRP project doesn't render in standalone player when using High stripping
Resolution Note (fix version 6000.2.0a8):
Added a new option "Force GC on Scene Load"