terra icon indicating copy to clipboard operation
terra copied to clipboard

Set frame rate/ animation delay

Open Kurren-N opened this issue 8 years ago • 2 comments

By default the animation is synced to the frame rate of the monitor. It would be nice if a custom frame rate or a delay (e.g. 1 second between frames) could be set before calling animate(). I'd be happy to look into doing this for you.

Kurren-N avatar Feb 01 '16 21:02 Kurren-N

@Kurren-N cool idea! I'm not sure if we need to add this into the core library; would the following work for you?

window.setInterval(function() {
    t.grid = t.step();
    t.draw();
}, 1000);

rileyjshaw avatar Jan 02 '17 23:01 rileyjshaw

I'm also trying to figure this one out. Is the default speed as fast as possible right now? I'm trying to make a bit more complex simulation, and I wish it were a bit quicker..

bramvandijk88 avatar Mar 09 '18 10:03 bramvandijk88