Function calculateFPS

  • Calculates FPS of the scene based on a buffer of timestamps

    Parameters

    • buffer: number[]

      Array of numbers that represent the time between frames

    • FPS_BUFFER_LENGTH: number = 60

      How long the buffer should be before an accurate FPS can be calculated

    Returns number | string

    FPS of the scene

Generated using TypeDoc