Sign in to follow this  
Eitsch

Static Geometry

Recommended Posts

my lists: glNewList() glDrawArrays() glEndList() if i use single glVertex calls i have the same performance as vertex arrays. how can this be? i thougt vertex arrays would speed up my app... (GeForce FX 5200) what tips do you have to render static geometry? thanks

Share this post


Link to post
Share on other sites
Do you mean using a vertex array inside a display list compared to immediate mode inside a display list? I think that's what you're asking based on this...
Quote:
glNewList()
glDrawArrays()
glEndList()

Anyway, that will most likely not offer any performance gain because display lists are usually stored on the card and the main advantage of vertex arrays is that you can send many vertices with just one or a few draw calls. But if the data is already on the card it won't make much of a difference. According to section 16.100 of the OpenGL Technical FAQ it may even lower performance if the list is not stored on the card because it may end up using more memory.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this