Sign in to follow this  
Renran

Display list

Recommended Posts

Hello, I made a nice little terrain program in immediate mode. I have 100 fps. I thought lets get performance up. I use display lists for testing. Everything works fine. I have 80 fps. How can this be? Thanks, RenRan

Share this post


Link to post
Share on other sites
Is your display list static or dynamically modified? Try scaling the number of vertices/objects to render in both cases to see which is better. Also, profile both CPU and GPU performance to see where the bottleneck is.

Also, don't measure in FPS, measure in milliseconds per frame/render/draw operation, as you don't measure racing results in avg. speed either, but in the time they used to finish the lap.

Share this post


Link to post
Share on other sites
how many display lists are you using? if you are calling alot of display lists vs. making 1 call, the overhead of making a bunch of calls could make ur performance worse.

Share this post


Link to post
Share on other sites
Well I'm using 1 display list.
And it is a static list.
Just vertices with texture on top.
27 x 22 x 4 vertices.
What do You think about vertex arrays or VBO's.
But why is my display list not working?

Thanks,

RenRan

Share this post


Link to post
Share on other sites
Sounds like you don't have too many vertices in the first place so a VBO is not likely to help you. I'm surprised that display list would be slower than immediate mode. That's really special.
Are you using blending or alpha testing or stencil?

Share this post


Link to post
Share on other sites
Vman: No, no blending, no alpha testing, no stencil?
Just plain vertices and textures.
But just asking, in the list there are also things like variables, loops,
and things like:

glEnable(GL_LIGHTING); // Enable Lighting
glColor3ub (color1, color2, color3); // define color
glEnable(GL_TEXTURE_2D); // Enable Texture
glBindTexture( GL_TEXTURE_2D, TextureArray[0] );

is that the reason, without this things the display list doesn't work.

Thanks,

RenRan

Share this post


Link to post
Share on other sites
Well, it simply sounds like on your particular hw and driver combination, for some reason display lists don't perform so well.
If you want, give VBOs a try. Perhaps you will get better performance than display lists.

Have you tried making a geometry only display list? That means moving other calls like glEnable outside of the disp list.

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