webgl: fastest approach to drawing many circles
问题 I'm currently drawing thousands of circles, instancing a circle geometry (many triangles). alternatively, I could simply instance a quad (2 triangles), but cut out a circle in the fragment shader, using a distance function and discard . which approach would be faster? -- is drawing many triangles more expensive than the calculations done in the fragment shader? 回答1: The fastest way might depend on the GPU and lots of other factors like how you're drawing the circles, 2D, 3D, are you blending