I am trying to draw 90 * 180 circles on the globe, but the browser crushes. Compare to the rectangle geometry, there is no problem to draw 90 * 180 rectangles. Am I doing something wrong? Or is it because circle geometry has not been optimized?
Thanks for the reply. I tried to increase the granularity, and the performance is better. However, comparing to rectangle, rendering the same amount of circles is still way slower. Would you please briefly explain why?
The circle uses a different subdivision algorithm and needs to approximate both the curve of the circle and the curvature of Earth. For now, just use a higher granularity for circles than for rectangles if your app can tolerate it. The code that generates the triangles for the circle is the generic polygon triangulation algorithm. Eventually, we will replace this with a custom one (which rectangle already has) to improve performance.