opengl fastest rendering function

Problems building or running the engine, queries about how to use features etc.

Which function is fastest?

glDrawArrays(GL_TRIANGLES)
0
No votes
glDrawArrays(GL_TRIANGLE_STRIP)
0
No votes
glDrawArrays(GL_TRIANGLE_FAN)
0
No votes
glDrawElements(GL_TRIANGLES)
0
No votes
glDrawElements(GL_TRIANGLE_STRIP)
0
No votes
glDrawElements(GL_TRIANGLE_FAN)
0
No votes
 
Total votes: 0

xor
Gnoblar
Posts: 1
Joined: Mon Jul 26, 2004 7:45 pm

opengl fastest rendering function

Post by xor »

Im wandering wich rendering function is the fastest to use. I currently have a quake 3 map stored completely in an ordinary triangle list. I use glDrawArrays(GL_TRIANGLES) to render the faces. I know storing triangles as tristrips is the most memory efficient way, but i like having it all as a triangle list becouse then i can use same arrays for all the physics as well. The problem is that as triangle count rizes (mainly becouse of patches) rendering gets extremely slow. Is there maybe any other way i can improve the speed? Anyone can give me a link to some good optimization how-to?
User avatar
Noiprox
Halfling
Posts: 64
Joined: Mon Apr 05, 2004 6:25 am
Location: North Vancouver, Canada

Post by Noiprox »

How does this relate to OGRE?
Dieter Buys
Image
"Death, be not proud, though some have called thee mighty and dreadful, for thou art not so." - John Donne
User avatar
SauRooN
Gnoblar
Posts: 1
Joined: Sun Sep 05, 2004 12:33 pm

Post by SauRooN »