On this page
useFps
Category | Sensors |
---|---|
Export Size | 458 B |
Last Changed | last year |
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
No recent changes© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/core/useFps/