View Full Version : gluNurbsSurface ... runs slow and slower ... and stops ...

Andrew Jameson
06-24-2003, 09:44 PM
I decided to add a little more realism to a book ... turning pages ... at the moment a page is simply a hinged plane and it looks like it's made of steel ! So I tried to use a bezier surface ... and failed ...

I'm using a bezier surface with 12 control points ... based around a simple example by Jan Horn. Now when the program runs, there is a noticeable performance hit that continues to degrade until it all stops ...

What am I doing wrong ? Are bezier surfaces supported in hardware ?


06-27-2003, 11:56 AM
Usually if a program runs slower and slower and then stops, there is a pretty bad memory leak.

You can open up Task Viewer (assuming Windows 2000/XP here) and monitor the memory usage for your program - be sure to show the Memory Delta column.

If this is the case, check that you aren't declaring a new pointer in each cycle through your draw function(s). One time I ended up eating through 8mb/sec by doing that http://www.opengl.org/discussion_boards/ubb/wink.gif Or it could have to do with some sloppy recursion...