useFps
Reactive FPS (frames per second).
Demo
FPS: 0
Usage
import { useFps } from '@vueuse/core'
const fps = useFps()
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>
export interface UseFpsOptions {
/**
* Calculate the FPS on every x frames.
* @default 10
*/
every?: number
}
export declare function useFps(options?: UseFpsOptions): Ref<number>
Source
Contributors
webfansplz
Anthony Fu
jelf