Optimized drawing order