Re: [elm-discuss] How to render at a lower fps in 0.17?

2016-05-17 Thread Peter Damoc
Oh well, you can always use an accumulator like `timeSinceLastFrame` and check it against some timePerFrame that you want. If the time is greater than timePerFrame, reset to (timeSinceLastFrame-timePerFrame) and update the module state. If not, just add the delta to timeSinceLastFrame. You won't

Re: [elm-discuss] How to render at a lower fps in 0.17?

2016-05-17 Thread Max Goldstein
You can use Time.every to get deltas if you store the old one in the model. The best use, other than the actual time, is things you want to happen periodically but the exact millisecond doesn't matter. If you're doing animation, I'll echo Peter: what's wrong with animating on the browser's

[elm-discuss] How to render at a lower fps in 0.17?

2016-05-16 Thread Wil C
I've made the switch to 0.17, and I've also followed along with the mario example . I can see how to get the delta, but it's locked in at around 60 fps with a subscription like "AnimationFrame.diffs Tick". How do I subscribe to