esa / jupiter_tour

A javascript crowdsourcing experiment to prove you can fly a spacecraft through planetary systems
14 stars 7 forks source link

Animations ridiculously fast on powerful machines #39

Closed CoolRunning closed 10 years ago

CoolRunning commented 11 years ago

All animations that are based on the animate-loop (based on request-Anim frame) run ridiculously fast if you have a decent graphics card (tested on Nvidia GTX 460 which is by far not the best you can get nowadays). Moons spin so fast they should flatten out and the zoom out animation lets the moon just "pop". :(

There is just one solution: we need to base all our animations on actual time and NOT on available animationframes.

A quick fix would be to execute the animation mainloop with a timeout that will prevent it from being called too often (speedlimit).