@lightningjs/renderer
    Preparing search index...

    Type Alias FrameCounter

    FrameCounter: FrameCount & {
        end: number;
        increment: (frameDelta: number) => void;
        start: number;
        get averageFps(): number;
    }

    Type Declaration

    • end: number

      The end time of the frame counting interval.

    • increment: (frameDelta: number) => void

      Increments the frame count based on the provided frame delta time.

    • start: number

      The start time of the frame counting interval.

    • get averageFps(): number

      Calculates and returns the average frames per second (FPS) based on the total frames counted and the elapsed time.