Efficiency: Check if on screen and rotate VS always rotate

Hello, I’m working on a Mobile game and am trying to streamline the code a bit as there’s some stuttering.

The game has 5 objects composed to 2 primitive spheres each, at most there will be 2 on screen at once, and all the spheres rotate with each update.

My current idea is to check the screen position of the 5 objects using WorldToScreenPoint() and only rotate when on screen, would there be a significant difference over simply calling RotateAroundLocal() 10 times each update?

Instead you can use the built in function OnBecameVisable and OnBecameInvisable to lighten the load and avoid those calculations. These will fire when the renderer is viewed by any camera, and leaves view of all cameras.