PDA

View Full Version : slowness



robert
11-27-2000, 10:53 PM
I have a simple program in glut that draws 3 bezier patches (opengl calculates them) and simple lighting. When it comes to rotate and translating the scene it is painfully slooooooow. I also use GL_FILL for the patches. I do rotation in the modelview matrix. Is this right?

El Jefe
11-28-2000, 05:53 AM
Do you have a frame rate counter running or something so you can see if it is always running slow? I rather suspect you may be just falling back to software rendering ( which is usually quite slow ) for some reason, and when the image isn't moving, you just aren't aware how bad the frame rate really is. It's when the transformations start that you become aware of the problem, which is perhaps making you think that the problem is really something else. Just a guess.

[This message has been edited by El Jefe (edited 11-28-2000).]

robert
11-28-2000, 06:53 PM
How would I be able to tell?

I have also noticed, that after about 4-5 compile and runs with my program, that other opengl progs will slow down dramatically.

????

Serge K
11-29-2000, 07:22 PM
check this (http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/001329.html) .

El Jefe
11-30-2000, 06:51 AM
Hmmm, if it slows down after 4-5 runs, it sounds like you might not be shutting down the GL context properly?

robert
11-30-2000, 10:33 PM
How would i do that?

hehe sorry I am new to opengl - please bare with me http://www.opengl.org/discussion_boards/ubb/smile.gif

Elixer
12-01-2000, 05:56 AM
After 4-5 runs it slows down? Looks like a memory leak to me.

Just make sure you free up everything on exit, free the textures, arrays, and so on.