Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: faster opengl display times

  1. #1
    Intern Newbie
    Join Date
    Mar 2002
    Location
    pittsburgh
    Posts
    44

    faster opengl display times

    i'm drawing an object in openGL, a knot to be exact, that is made up of spheres and cylinders. i use around 1000 cylinders. the spheres are drawn based on given points and i then use the points to rotate and translate the cylinders. the cylinders have around 15 stacks and slices, and the bulk of the math is cross products and normalizing vectors. the display time of this with an average computer with a geforce on linux is around 15 sec. does anyone have any advice on how to optimize this. i though of using inline assembly and SIMD instructions for the math but it was not much help. i'm assuming that if i can speed up the math for figuring out the cylinders that the process will be much faster. but how can i do this. any help is appreciated. Incus.

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Location
    Fort Collins, Colorado
    Posts
    446

    Re: faster opengl display times

    I have to imagine that putting your geometry in a display list would speed things up... I'll leave other ideas to the more experienced people on here.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Belmont, CA
    Posts
    249

    Re: faster opengl display times

    Do the relative coordinates of the knot change once it's been created? Can't you cache the vertices in display lists or vertex arrays? It might even be possible to store all of the geometry on the card (if you have the right card/drivers) to maximize framerate.

    -Won

  4. #4
    Intern Newbie
    Join Date
    Mar 2002
    Location
    pittsburgh
    Posts
    44

    Re: faster opengl display times

    excellent. thanks for the replys. as for the coordinates changing yes. new coordinates will be printed into a .txt file and then reread into the program. this is slow but it may not occur that much. as for cacheing the vertices what do you mean. once i figure them out put them into an array and the use that for redisplaying? also how do i display it all using the vid card? i'm using linux and the drivers i use are the ones from nvidia. its a geforce 256 32mb ddr. thanks for any futhur input. Incus

  5. #5
    Member Regular Contributor
    Join Date
    Apr 2001
    Location
    Fort Collins, Colorado
    Posts
    446

    Re: faster opengl display times

    I have to seriously question why you would need to write to a .txt file...

  6. #6
    Intern Newbie
    Join Date
    Mar 2002
    Location
    pittsburgh
    Posts
    44

    Re: faster opengl display times

    i'm integrating this program with another program that outputs the coordinates to a .txt file i suppose that i could just put them into an array or something but i've yet to actually integrate them, my main concern now is to speed up the math. Incus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •