Setting a sprite visible to FALSE could increase the performance or not?
Let say I have 100 of objects, then I set them all visible to FALSE.
Does this gives performance increase on the game?
A fast, easy to use, free, and community supported 2D game engine
Setting a sprite visible to FALSE could increase the performance or not?
Let say I have 100 of objects, then I set them all visible to FALSE.
Does this gives performance increase on the game?
Hello,
Yes, it does increase performance setting sprites property visible to FALSE.
BTW, this is not the correct forum to post this question.
Regards
oops, sorry..
Make sure you don't make invisible by setting scale = 0 or opacity = 0. Anything except .visible = false is a huge performance hit.
Also it's best to use a layer and add the sprites to a layer and make the layer invisible if all sprites are visible/invisible at the same time.
You must log in to post.