Click to See Complete Forum and Search --> : mfc, opengl & performance: inconsistent?


lukla
May 4th, 2004, 10:27 AM
hello!
i have a problem concerning opengl and mfc.
at the moment i'm doing a degree dissertation for
school leaving examination in opengl,
but now i'm fraught with problems:

it's a simulation of the assembly of a
printed board by a roboter.

so the problem is:

when starting the process cpu usage is about 30% (PIII 1.2GHz),
but after about 2 minutes of assembling usage increases
to 100% and the glwindow jerks, later on the app crashes.

framerate also decreases.

so the glbox is in form of a picturebox in a mfc dialog.

who knows the problem and what to do?

thanks,
luk

OReubens
May 5th, 2004, 03:14 PM
You are probably having some form of resource leak in your program. These things are unfortunately very hard to track down. You should check your code if every object/handle you're allocating is being properly disposed of.