very small optimisation to triangle drawing