Hi, I am trying to figure out how to change the update parameter for my animation, so that it is independent of the framerate. Because I noticed the animation going faster if the framerate is going faster if i use this (simplified version, placed in renderscene):
time = glutGet(GLUT_ELAPSED_TIME);
if (time - timebase > speed) {
timebase = time;
timestep++;
}
but now the timestep is incremented faster when the frame rate is faster, how can I make that independent of the framerate?