Archived

This topic is now archived and is closed to further replies.

How many Opengl LISTS may be created?

This topic is 5652 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

- You know you''re out of memory for display lists when glError() is set to GL_OUT_OF_MEMORY after you try to compile a display list.

- Display lists are part of the server state. Make of that what you will.

Test suggestion : disable the virtual memory system, malloc() and increasing number of large memory chunks, counting each time how many lists you can create.

If that number varies, it''s in RAM. If not it''s either in video RAM or the test was inadequate.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]

Share this post


Link to post
Share on other sites
The OpenGL specs do not define a limit to the number of display lists. The only two limits would be available system resources and the size of the display list identifier (which limits you to a max. of 232-1, highly improbable you'll ever hit that limit ).

In practice, DLs will be stored in VRAM whenever possible. If you run out of video memory, a good driver will fallback to system RAM. If you get low on resources there, an OUT_OF_MEMORY error will be generated. Be aware of the fact, that a system RAM fallback will cause a performance drop (DLs in VRAM are a *lot* faster). VRAM is a precious resource, so don't be too wasteful with DLs.

/ Yann

[edited by - Yann L on June 25, 2002 6:48:21 AM]

Share this post


Link to post
Share on other sites
quote:

So, it is VRAM ?


Yes, on modern 3D cards it is.

quote:

Ok, who will tell me how to determine how much video memory i have/left etc.


You can''t. That''s against the OpenGL design philosophy. Onboard memory management is fully handled by the driver, you cannot interfere.

/ Yann

Share this post


Link to post
Share on other sites