time-accumulator
Call a function at a constant rate no matter what the rate the accumulator is called at.
Example
This causes the render
function to be called every 5 milliseconds no matter what rate requestAnimationFrame
calls accum
at:
var timeAccumulator = ;var accum = ; var { /* ... */ }; window;
Install
With npm do:
npm install time-accumulator
License
MIT