Results 1 to 5 of 5

Thread: Display List with Vertex Array

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    218

    Display List with Vertex Array

    If I draw from a vertex array using glDrawElements within a display list will performance be better than if I pass vertices directly with glVertex calls within the display list?

    My thinking is, "not too much" since it will all end up being stored on the server anyway. This is static vertex information.

    [This message has been edited by Omaha (edited 08-12-2002).]

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: Display List with Vertex Array

    No. Dont worry about it (and generally it is best not to use vertex arrays within display lists cos the behaviour is undefined)

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    601

    Re: Display List with Vertex Array

    Using vertex arrays within a display list is certainly not undefined. However, the vertex data is deferenced at display list compilation so you lose a lot of the flexibility of vertex arrays. It might be slightly faster than immediate mode in a display list if you use indexed primitives (glDrawElements) when drawing the vertex array, but that probably depends on the driver.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    352

    Re: Display List with Vertex Array

    I've benchmarked it : i got only +1% speed ofr a model that needed many state changes (even after some state sorting), so don't worry about that.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    218

    Re: Display List with Vertex Array

    Thanks for confirming my suspicions. I did some geometry optimizing today, so that will help no matter what. I will go with immediate mode in the display list for simplicity's sake.

    There isn't alot of state changing going on, just a significant number of static vertices and multiple textures.

Similar Threads

  1. display list and vertex program
    By divide in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 01-31-2007, 01:22 PM
  2. Performance-vertex array vs. display list
    By kobebryant in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-12-2006, 04:19 AM
  3. vertex array vs display list
    By HamsterofDeath in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 01-21-2003, 01:54 AM
  4. Display List Versus Array
    By Omaha in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-04-2001, 02:37 AM
  5. Vertex arrays or display list?
    By ph_staempfli in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-14-2001, 11:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean