Search Issue Tracker
By Design
Votes
0
Found in
2019.3.0a3
Issue ID
1156341
Regression
Yes
SystemInfo APIs take enum parameter create GC.Alloc
Steps:
1. Open attached project, open repro scene
2. Hit play
3. Open Profiler > CPU Usage
4. Look at Hierarchy > PlayerLoop > Update.ScriptRunBehaviourUpdate > BehaviourUpdate > NewBehaviourScript.Update()
Actual: There is GC.Alloc under the item
Expected: There is no GC.Alloc
Reproducible in: 2019.3.0a3, 2018.4.1f1, 2018.2.20f1, 2018.1.0a5, 2018.1.0a4, 2018.1.0a3,
Not reproducible in: 2018.1.0a2, 2018.1.0a1, 2017.4.26f1, 2017.1.3p1
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2019.3.X):
GCAlloc is due to Textureformat enum check. To avoid GCAlloc, you just have to cache any systeminfo information. ( don't call it per frame )