DaveInDev
Member
Hi,
Let say I have a very large room and a restricted viewport that I can move around the room.
This room is filled with many alive objects that interact with each other, even if they are not in sight of the user.
So I do not want to deactivate them if they are not in the viewport.
I want their step event to run at any time.
But I wonder if it could be useful to set them visible = false as soon as they leave the viewport, so that the draw event would not even be called, to save some cpu ?
Or does GMS2 takes care about that and only calls draw_self when needed ?
Let say I have a very large room and a restricted viewport that I can move around the room.
This room is filled with many alive objects that interact with each other, even if they are not in sight of the user.
So I do not want to deactivate them if they are not in the viewport.
I want their step event to run at any time.
But I wonder if it could be useful to set them visible = false as soon as they leave the viewport, so that the draw event would not even be called, to save some cpu ?
Or does GMS2 takes care about that and only calls draw_self when needed ?