Module
Game.Aff.AnimationFrame
- Package
- purescript-game
- Repository
- artemisSystem/purescript-game
#animationFrameUpdate' Source
animationFrameUpdate' :: forall a s e extra. Window -> Run (LoopExecIn e s a extra) Unit -> AffGameUpdate extra e s a
#delayFrame Source
delayFrame :: Aff Unit
#animationFrameUpdate Source
animationFrameUpdate :: forall a s e extra. Run (LoopExecIn e s a extra) Unit -> AffGameUpdate extra e s a
#animationFrameMatchInterval Source
animationFrameMatchInterval :: forall d a s e extra. Duration d => Run (LoopExecIn e s a extra) d -> Run (LoopExecIn e s a extra) Unit -> AffGameUpdate extra e s a
Uses requestAnimationFrame
to run the given update at the given interval
as accurately as possible