Update the performance of generating triangles.