I am making an RTS game which is having performance issues.
Is it possible to render the ground and units separately so I can only render the ground when the camera moves but keep the result displaying the units over the top?
I'm not sure what details to include but:
*The camera is fixed angle and orthographic
*The profiler says drawing takes up about 50% of CPU when units are moving.
*All the logic is done by a c# script outside of monoDevelopment but called through a gameobject each frame, (takes 2% of cpu in tests).
*Units are put in place using the "transform.position" command each frame.
*Units and tiles are instantiated and destroyed when the Camera passes them.
*The game is using rigged .3ds models for the units.
*The units have disabled rigidbodies.
*Each tile in the game is a separate sprite.
*The performance drops with ~100 low poly units without animation or ~20 higher poly units with animation.