Group offscreen optimization

Hello.

If I put 100 sprites in a Group,
Does the group know the area of the result Drawing.

My question is if a group is offscreen, does the Solar2D engine know it and will directly skip the drawing of all child object.

Thank’s !
Etienne

Every object gets checked for visibility so lots of off screen objects will slow things down. Best to set objects to invisible if off screen.

Ok. thank’s a lot for your answer.

I have another question.
Does it faster to blit a group with X sprite ou to blit directly the X sprite.

In other words, does the group mainly used to simplify sprite minupulation or does it really improve performance?

It is just a place holder. For example, instead of moving 100 objects manually you move the group (and the engine will update all of the children).

okay !

Understood :+1: