useFps 
リアクティブなFPS(1秒あたりのフレーム数)を取得します。
デモ 
FPS: 0
使用法 
js
import { useFps } from '@vueuse/core'
const fps = useFps()型宣言 
typescript
export interface UseFpsOptions {
  /**
   * Calculate the FPS on every x frames.
   * @default 10
   */
  every?: number
}
export declare function useFps(options?: UseFpsOptions): Ref<number>ソース 
コントリビューター 
変更履歴 
v12.0.0-beta.1 2024/11/21