actionscript 3 - Is there a rule of thumb for worrying about flash garbage collection? -
my sprites 4kb (png)- black squares , creating 200 of them throughout game plus 2 small textfields each- should worried getting garbage collection right? 277 jpg kb image resides permanently(full basic colour) , 30 kb gifs of images. no moveiclips.
it depends how animation you're doing these objects. @ same time, garbage collecting can cause rendering pause momentarily... if you're seeing issue, consider using memory saving techniques such object pooling keep garbage collection minimum.
otherwise, let garbage collector it's designed for, , leave it.
Comments
Post a Comment