Fernando
06-19-2002, 06:21 PM
Hi guys! I'm making an OpenGL application and I got some questions about PERFORMANCE.
Is it better to do a single call to GL_TRIANGLES and make up an object with 24 vectors or a call to GL_TRIANGLES (with 6 vectors) plus a call to GL_QUADS (with 12 vectors)?
To clarify this question, I made up some Pictures.
This first one ( http://www.helioconsolaro.hpg.com.br/triangle1.gif ) as you can see, is made up with a call to GL_TRIANGLES and a call to GL_QUADS. By adding the vectors I spend in both calls, we got 18.
This second one ( http://www.helioconsolaro.hpg.com.br/triangle2.gif ), is made up with a single call to GL_TRIANGLES, but it spend 24 vectors.
So, what is the best way to choose? A single call with more vectors, or two calls with minus?
Thank you a lot guys!
[This message has been edited by Fernando (edited 06-19-2002).]
[This message has been edited by Fernando (edited 06-19-2002).]
Is it better to do a single call to GL_TRIANGLES and make up an object with 24 vectors or a call to GL_TRIANGLES (with 6 vectors) plus a call to GL_QUADS (with 12 vectors)?
To clarify this question, I made up some Pictures.
This first one ( http://www.helioconsolaro.hpg.com.br/triangle1.gif ) as you can see, is made up with a call to GL_TRIANGLES and a call to GL_QUADS. By adding the vectors I spend in both calls, we got 18.
This second one ( http://www.helioconsolaro.hpg.com.br/triangle2.gif ), is made up with a single call to GL_TRIANGLES, but it spend 24 vectors.
So, what is the best way to choose? A single call with more vectors, or two calls with minus?
Thank you a lot guys!
[This message has been edited by Fernando (edited 06-19-2002).]
[This message has been edited by Fernando (edited 06-19-2002).]