3 ms·
This is intended for game loops but it is a nice timer that targets iterations per second (FPS) using requestAnimationFrame. This is my preferred solution when
by gatherhunterer 7y ago
This is intended for game loops but it is a nice timer that targets iterations per second (FPS) using requestAnimationFrame. This is my preferred solution when I cannot just read the system clock on a recursive setTimeout.
http://pixijs.download/next/docs/PIXI.Ticker.html http://pixijs.download/next/docs/PIXI.Ticker.html