Skip to main content
GameDev.net gamedev.net
🔒 Locked

fast gl rendering

Started by InFerN0 Sep 21, 2000 at 8:31 AM 3 replies 300+ views
Original Post
InFerN0
InFerN0
I want to draw a face(I use faces instead of polys) the fastest way possible. I know GL_QUADS is slow and I need a faster way of drawing. Thanks. InFerN0 Not all who wander are lost...
InFerN0Not all who wander are lost...
fifty1
fifty1
I don''t know the geometry of your face, so this is a tough one to answer. In order of speed, I would suggest using:

GL_TRIANGLE_FAN
GL_TRIANGLE_STRIP
GL_QUAD_STRIP
GL_TRIANGLES
GL_QUADS

GL_QUAD_STRIP and GL_TRIANGLES should maybe be reversed in the list, but GL_TRIANGLE_FAN and GL_TRIANGLE_STRIP are definitely the fastest.

Hope this helps.
InFerN0
InFerN0
my face consists of 4 verts(float x,y,z) and a texture. If I render it as triangles will the texture stay aligned across the face?

InFerN0

Not all who wander are lost...
InFerN0Not all who wander are lost...
-BacksideSnap-
-BacksideSnap-
quote:
Original post by InFerN0

my face consists of 4 verts(float x,y,z) and a texture. If I render it as triangles will the texture stay aligned across the face?

InFerN0

Not all who wander are lost...


If you''re using 4 verts then go for a triangle strip. It will also make your code more compact.

-BacksideSnap-

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.