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

Image.fillAmount and memory allocation

$
0
0
Hello All,
While profiling my app I found out that changing Image.fillAmount property allocates 20B of memory.
It is not much but in my case when I have timer made with Image.fillAmount, this memory is allocated every frame.

Screenshot:
View attachment 142693

It is of course handled by GarbageCollector at some point but we all know how GC can decrease framerate when collecting garbage. Especially on mobile.

One of my goals is to use pooling and not give GC reason to work. I am...

Image.fillAmount and memory allocation

Viewing all articles
Browse latest Browse all 23263

Latest Images

Trending Articles



Latest Images

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