-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Labels
Description
If I have an animation that I want to play at a certain FPS on the users screen, how would I accomplish this? I've seen some people do this:
function render()
{
setTimeout(draw(), 1000/60); // 60 fps?
}Is that the proper way to do it?
What happens if someone's computer is too slow to handle the geometry in the scene? Is there someway to do frame skipping in order to keep their framerate at the target rate but skipping certain frames in order to stay there?