frame rate drops and animation slows down

Started by
0 comments, last by Lord_Evil 15 years, 3 months ago
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.
Advertisement
Why not just use timebased movement, i.e. for example position += speed * time_since_last_frame ?
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!

This topic is closed to new replies.

Advertisement