Triggering rules only when on screen

I'm working on a game with everything on a single scene that the camera pans across so I don't have to load multiple scenes. However this means I will have a few hundred actors and their rules all triggering even when the user can't see them, and I suspect that's not ideal for performance.

I have been thinking about ways to trigger these rules so they're only firing when the camera is on them. My simple solution would be to have a non-scrollable actor constrained to the camera position, and every actor have a collision rule with actor.

However that means having hundreds of collision rules in the game. My question is whether that would be worse for performance than just leaving them all running? Or if these is a better solution than my somewhat clunky one.

Comments

Sign In or Register to comment.