(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
09-27-24 03:25 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - OpenGL: Display lists vs. Vertex pointers ? New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6710 days
Last view: 6710 days
Posted on 02-04-06 11:41 PM Link | Quote
I could go either way in this game I'm working on --- but I'm wondering which way is "better"... and by that I mean which tends to be faster/more efficient.

glBegin + glCallList + glEnd
vs
glVertexPointer + glTextureCoordPointer + glDrawArrays

Which would you guys recommend? I'm thinking glCallList would be faster, since the verteces you give it would be fixed and can be set up by OpenGL to be ready-to-render, whereas the glDrawArrays must fetch each vertex every time. But that's completely speculation on my part.

Any and all feedback appreciated. Thanks in advance.
Euclid



 





Since: 11-17-05
From: Australia
hmm...

Last post: 6437 days
Last view: 6431 days
Posted on 02-05-06 04:55 AM Link | Quote
Display List, definately.

But then you'll have to draw the things once first to put it into the display list though, I think of a display list as an "image ready to be bitblted onto the screen".
Guy Perfect









Since: 11-18-05

Last post: 6432 days
Last view: 6431 days
Posted on 02-05-06 01:40 PM Link | Quote
It depends on what you're doing, but Display Lists are generally the best way to go. If you're doing objects that morph, then a Vertex Array would be faster since you wouldn't have to recompile the scene each frame. If you're doing a landscape that won't be changing, then you can use a Display List to keep it easy-to-reach for the GPU.

I might be mistaken, but aren't Vertex Array's an extension? I like to avoid extensions for the sake of allowing utmost compatibility.
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6710 days
Last view: 6710 days
Posted on 02-05-06 02:32 PM Link | Quote
Awesome. So my hunch is confirmed.

Thanks a bunch, guys. It's much appreciated. ^^
Cellar Dweller +

Red Koopa









Since: 11-18-05
From: Arkansas

Last post: 6440 days
Last view: 6431 days
Posted on 02-05-06 11:12 PM Link | Quote
Originally posted by BGNG
I might be mistaken, but aren't Vertex Array's an extension? I like to avoid extensions for the sake of allowing utmost compatibility.


From the OpenGL Programming Guide(4th edition): The Official Guide to Learning OpenGL, version 1.4 page 67:
"Vertex arrays became standard in Version 1.1 of OpenGL. Version 1.4 added support for storing fog coordinates and secondary colors in vertex arrays."



(edited by Cellar Dweller on 02-05-06 10:15 PM)
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - OpenGL: Display lists vs. Vertex pointers ? |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.011 seconds; used 367.70 kB (max 442.58 kB)