Results 1 to 4 of 4

Thread: Display lists and functions - difference

  1. #1
    Member Newbie
    Join Date
    Jul 2009
    Posts
    33

    Display lists and functions - difference

    What is exactly the difference between calling a command in a display list and calling a function (or method in Java) that calls the OpenGL command?

    Is it faster to call it from a display list?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,654

    Re: Display lists and functions - difference

    Quote Originally Posted by marce
    What is exactly the difference between calling a command in a display list and calling a function (or method in Java) that calls the OpenGL command?

    Is it faster to call it from a display list?
    Think of display lists to OpenGL the way you think of a C++ compiler to C++ code.

    This is like calling OpenGL directly:

    cc -o exec src.cxx
    exec
    cc -o exec src.cxx
    exec
    cc -o exec src.cxx
    exec
    ...

    and this is like calling it indirectly via a display list:

    cc -o exec src.cxx
    exec
    exec
    exec
    exec

  3. #3
    V-man
    Guest

    Re: Display lists and functions - difference

    It depends on the command. If you have vertices, normals, texcoords, the driver can generate a VBO which would be faster for rendering.
    For all other GL commands, no, it won't be faster.

  4. #4
    Member Newbie
    Join Date
    Jul 2009
    Posts
    33

    Re: Display lists and functions - difference

    Ah, ok! Thanks for your answers. It made it more clear.

Similar Threads

  1. Replies: 4
    Last Post: 05-23-2012, 10:24 AM
  2. Display Lists
    By Hylke Donker in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-22-2004, 09:52 AM
  3. display lists inside display lists...
    By architekt in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-22-2002, 08:55 PM
  4. why display difference in 3d-card and in software opengl ?
    By budzhang in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-13-2000, 06:42 AM
  5. Difference between 95 and NT in object display.
    By Dolphin in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-13-2000, 07:23 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