I have a simple game with a platform (a ground that's not infinitely long). During the game I have about 10-30 balls on average that'll fall off the platform. There's gravity so I think they'll keep falling until the end of the game. My question is should I put a function that check if position within boundary in the
render() function is called in every frame. Or should I leave those balls falling. And let box2d keep on calculating their speed and velocity etc?
So basically I'm wondering which cost less, checking every body's position or calculating dropping object's velocity and position. I think they happen with same frequency, once per frame.
Or is this trivial for 10-30 balls and I can ignore it?