Optimization for drawing mechanism