mrdoob/three.js — Issue #642: How to set or limit framerate?  Frame-skipping?
Author: Jakobud
Created: 2011-10-11 14:40:17+00:00
State: open

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?