Hi, I've written a VERY simple demo program using box2d and glut. It's around 1000 lines of code, and isnt really very special or processor intensive.
However, I have noticed, that as it runs, it gradually slows down, and I have no idea why. At the start it is extremely quick, however, after about a minute everything is running extremely sluggishly.
I'm wondering if anybody else has encountered something like this before, as it has confused me no end. I've never really attempted any optimisation of my code (c++) however I doubt that that is the problem, as it seems to run slower over time, instead of at the beginning.
Help? please?
(btw, if you want source code to help explain the problem, just ask)
However, I have noticed, that as it runs, it gradually slows down, and I have no idea why. At the start it is extremely quick, however, after about a minute everything is running extremely sluggishly.
I'm wondering if anybody else has encountered something like this before, as it has confused me no end. I've never really attempted any optimisation of my code (c++) however I doubt that that is the problem, as it seems to run slower over time, instead of at the beginning.
Help? please?
(btw, if you want source code to help explain the problem, just ask)