Skip to content
On this page

useFps

Category
Export Size
1.04 kB
Last Changed
last year

Reactive FPS (frames per second).

Demo

FPS: 0

Usage

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

const fps = useFps()
import { useFps } from '@vueuse/core'

const fps = useFps()

Type Declarations

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

Source

SourceDemoDocs

Contributors

Anthony Fu
webfansplz
jelf

Changelog

v7.6.2 on 2/13/2022
0e1e2 - fix(useFps,useMemory): ssr support (#1244)

Released under the MIT License.