nobody wrote on Saturday, January 06, 2007:
OK, I just decided to finally finish a game i was working on a few months ago. So i start it up, and it’s acting weird. Animations and movements are “jerking” randomly. All of these are based on a frame time calculation i’m doing at the beginning of every frame, so i start printing the result of that calculation on screen, and i notice that it is negative whenever the jerks occur. The code is so simple it can’t be wrong
ft = glfwGetTime() - lasttime;
lasttime = glfwGetTime();
So somehow glfwGetTime() must be returning a smaller number than it did for the previous frame to make ‘ft’ negative. Very odd. This worked fine before, but i’ve had a CPU upgrade since then, 32bit to 64bit dual core. I suppose that the new CPU could be causing some presicion errors, but i don’t know how.
Anyone got any ideas? Had similar problems?
- Lapskaus