FPS: 0

useFps

Reactive FPS (frames per second).

Usage

import { useFps } from '@vueuse/core'

const fps = useFps()

Type Declarations

export interface UseFpsOptions {
  /**
   * Calculate the FPS on every x frames.
   * @default 10
   */
  every?: number
}
export declare function useFps(options?: UseFpsOptions): Ref<number>

Source

SourceDemoDocs