optimized spritebatch by avoid new\delete calls in the draw and render functions