StaticelapsedStaticfpsStaticnowStaticstartStaticthenStaticupdatablesStaticaddAny object that exposes an update() method.
StaticinitInitialises the update loop target frame rate.
The desired frames per second (e.g. 60).
StaticremoveUnregisters an object so it no longer receives update() calls.
The object to remove.
StaticupdateCalled every frame (e.g. from a requestAnimationFrame loop).
Throttles calls to registered updatables according to the configured FPS.
Registers an object to receive
update()calls each tick.