Results 1 to 3 of 3

Thread: Can it be faster?

  1. #1
    Member Contributor
    Join Date
    Feb 2001
    Location
    Slovakia
    Posts
    53

    Can it be faster?

    Q #1: For what purposes is glCullFace? is the code faster when i disable backfaces or it is the same?
    Q #2: For what purposes is the display list? Is it really faster than manually calling all the glVertex functions (and all the mess)? When it is better to use the display lists?
    Q #3: Depends the speed of drawing on the near and far parameter in the glFrustum?

    In my code i have set the far limit to 50 and then to 500 an there was no difference between the speed of drawing. (I have tried it with and without display list).
    I believe that it an be faster but how?

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2000
    Posts
    25

    Re: Can it be faster?

    1. 1st fundemental law of real-time graphics: don't draw what you can't see. On closed polygonal meshes, faces whose normal points away from the camera ('backfaces') will be obscured by other faces in the same mesh. So we don't need to draw them. Backface culling provides a speed up when fill rate is the bottleneck.

    2. Display lists allow OpenGL implementations to optimise known sequences of commands, and store them in fast memory for quick retrieval. They should provide a speed up, depending again on your bottleneck.

    3. The only reason changing the near and far planes will increase your performance is if geometry is subsequently clipped, and not drawn. Otherwise you won't see a speed up, I think. I wouldn't suggest relying on this as a speed-up technique, since having too close a far clipping plane can look pretty bad, with objects being visibly sliced along it.

    HTH,

    Henry

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Italy
    Posts
    124

    Re: Can it be faster?

    A side note for Q#3:
    With zbuffer the ratio between far and near plane directly influences precision: it's more visible with a 16bit zbuffer.
    bye
    tFz

Similar Threads

  1. Which one is faster?
    By aronsatie in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-03-2010, 06:21 AM
  2. faster?
    By ARES in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-17-2002, 09:34 AM
  3. What are faster?
    By Sergei in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-12-2001, 02:47 AM
  4. >>>NEED MORE HELP>>>FASTER>>>
    By perpendicular in forum OpenGL: User Software
    Replies: 0
    Last Post: 11-28-2000, 03:18 PM
  5. Which is faster?
    By in forum OpenGL: User Software
    Replies: 6
    Last Post: 03-07-2000, 12:49 AM

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