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 3 of 3

Thread: gluQuadric + memory problems

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Southampton, England
    Posts
    1

    gluQuadric + memory problems

    I am building a representation of a hand using basic quadric objects (spheres + cylinders) with controlled rotations at joints etc. I am keeping everything simple, but after a number of movement my machine slows down (350Mhz, 128M, TNT2) and it kills a friends machine. Is this a memory problem? Do I need to destroy the display lists, am I filling up a stack somehow? Anyone have any ideas?

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Stafford, UK
    Posts
    60

    Re: gluQuadric + memory problems

    Are you running from VC++? Ive had a similar problem, but have been unable to resolve it, try running your executable, rather than from your compiler and see if the same problem occurs...

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    SubVobWee, near Rigel
    Posts
    22

    Re: gluQuadric + memory problems

    This might be due to a memory leak.
    When the leak gets to big, you're stack is being filled with crap at about ten megs a second. Check any malloc or calloc calls that occur in a loop or something and aren't being freed, if you can't find anything, then it could be GL's fault. If you are running a debug build in VC, try running a release build and see if it still occurs.

    Mike The Spike

    PS. I had the same problem with Direct 3D where an execute buffer (vertex list) was being duplicated in a loop and never freed.

Posting Permissions

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