Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

UI Garbage Collection

$
0
0
So i recently started optimizing my game by reducing the number of Garbage Collector calls and I noticed, that set the UI elements to parent will trigger a GC call.

As can be seen in the attached picture that every time I set the parent of an UI element, the GC allocs 8.7kb. I don't know if it intended or it is a bug, but if I have many UI elements and manipulate their properties over time I will get a huge amount of GC calls.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>