Hi,
I have a lot of entities on a big playing area. I guess this makes the game slower not only because of the rendering (I setp up the camerarange so this is shouldn't be a problem... I guess) but because of the collision detection. So I was thinking I would hide all entities that are not on screen.
What's the best way of doing this? Looping trough all the entities (with types) and checking if they are on screen using EntityInView and if they're not, I hide them?
Is EntityInView fast enough for this? Or is there a better sollution?
Thanks.
I have a lot of entities on a big playing area. I guess this makes the game slower not only because of the rendering (I setp up the camerarange so this is shouldn't be a problem... I guess) but because of the collision detection. So I was thinking I would hide all entities that are not on screen.
What's the best way of doing this? Looping trough all the entities (with types) and checking if they are on screen using EntityInView and if they're not, I hide them?
Is EntityInView fast enough for this? Or is there a better sollution?
Thanks.