I would like to know an opinion of OGRE experts on one idea which came to my mind.
In my game I have several thousands objects: units - usually not moving (not changing position) but animated (skeleton animation) and animals, which constantly move and are also animated.
I would like to create an in-viewport-detection and if
- Unit is not in the viewport, it will stop calling AddTime of running AnimationStates
- Animal is not in viewport, it will also stop calling AddTime of running AnimationStates, but it will also not change the location. Instead the location change will be called (lets say) every 10s and update the location on longer distances (so player can still see that new animals can pop up from time to time).