View Full Version : vertexarray -> is drawelements faster than drawarray ?
03-02-2003, 06:09 AM
is it faster ?
or is it not ?
03-04-2003, 02:46 AM
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.
03-04-2003, 03:04 AM
It would probably be faster, and if not, equally fast.
Simply said, the drivers/hardware can manage its cache easily with the index array.
03-04-2003, 09:59 AM
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.
03-04-2003, 11:15 AM
hmmn... how hard is it exactly to code a simple test program? ... too hard as I can see... :P
just a thought
03-04-2003, 10:53 PM
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 ?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.