Skip to content

useFps

Reactive FPS (frames per second).

Usage

ts
import { useFps } from '@vueuse/core'

const fps = useFps()

Type Declarations

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

Released under the MIT License.

Get dangerously good at building with AI.
Early access sold out. Launching soon.
Join Waitlist
45
hours
:
33
minutes
:
08
seconds
: