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
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