Skip to content

useFps

Category
Export Size
458 B
Last Changed
4 years ago

Reactive FPS (frames per second).

Demo

FPS: 60

Usage

js
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>

Source

SourceDemoDocs

Contributors

Anthony Fu
webfansplz
jelf

Changelog

No recent changes

Released under the MIT License.

Build the skills AI cannot replace
Secure early access. 500 seats. Lowest entry price. 48 hours.
Join Waitlist
02
days
:
03
hours
:
10
minutes
: