Optimized Spritebatcher class.