vertexarray -> is drawelements faster than drawarray ?

is it faster ?
or is it not ?

Hi,

I’d guess it depends on your geometry. With drawArrays you don’t get to take advantage of shared vertice, so if you have lots of them, it’s propably slower. If you don’t have any, I could imagine drawArrays to be a bit faster. Better just test it with your own data.

-Ilkka

It would probably be faster, and if not, equally fast.
Simply said, the drivers/hardware can manage its cache easily with the index array.

If there is no vertex sharing, then the overhead of sending indices will just slow things down.

If you want any kind of vertex sharing and vertex cache usage, then DrawRangeElements is the way to go.

hmmn… how hard is it exactly to code a simple test program? … too hard as I can see… :stuck_out_tongue:

just a thought

how does the vertex sharing thing work ?
does opengl calculate every vertex once, and then draws them ?
if yes, i would get a good speedup…
or do i have to sort the points ?