Skip to content
On this page

useFps

响应式 FPS(每秒帧数)。

Reactive FPS (frames per second).

例子

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

Category
Export Size
1.04 kB
Last Changed
last year

SourceDemoDocs

贡献者(Contributors)

日志(Changelog)

No recent changes

Released under the MIT License.