Type Alias FrameEventPayload

FrameEventPayload: {
    dt: number;
    frame: number;
    updateLoopRestarted: boolean;
}

Frame event payload

Type declaration

  • dt: number

    Time elapsed since previous update loop, in milliseconds

  • frame: number

    The frame number.

  • updateLoopRestarted: boolean

    true if the update loop restarted