zimporter-html - v1.0.0
    Preparing search index...

    Class ZUpdatables

    A static tick-rate–throttled update manager. Drives frame-based animations (ZTimeline) via requestAnimationFrame.

    Index

    Constructors

    Properties

    elapsed: number = 0
    fpsInterval: number = 0
    now: number = 0
    startTime: number = 0
    then: number = 0
    updatables: Map<any, boolean> = ...

    Methods

    • Register an object with an update() method to receive per-tick calls.

      Parameters

      • mc: any

      Returns void

    • Initialises the update loop at the desired frame rate and starts the RAF loop.

      Parameters

      • fps: number = 24

      Returns void

    • Stop sending update calls to mc.

      Parameters

      • mc: any

      Returns void

    • Called each RAF tick; throttled to the configured FPS.

      Returns void