Optimizing drawing calls