frame rate drops and animation slows down
Hi,
I have a function that animates stuff on screen.
I've put it in the display ( glutDisplayFunc(display); ) function.
The Problem is that when the frame rate drops the animation slows down, because it is called less frequently.
I need a opengl callback function that will call itself at regular intervals.
I know it exists but I don't know what it is.
COuld you refresh my memory ?
Thanks.
Why not just use timebased movement, i.e. for example position += speed * time_since_last_frame ?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement