nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

Why using draw arrays instead of draw elements?

Open SC5Shout opened this issue 6 years ago • 2 comments

Why using draw arrays instead of draw elements?

SC5Shout avatar Jan 05 '19 17:01 SC5Shout

We're rendering triangle fans and strips, no need for elements.

memononen avatar Jan 05 '19 18:01 memononen

Yeah, but draw elements with default triangle is faster even 5/6 times I measured. Plus you can draw many instances with one draw call. If you for example draw many quads with only differerent colors why draw them with different draw call?

SC5Shout avatar Jan 08 '19 15:01 SC5Shout