getFps
Category Sensors
Get the current frames per second of the device.
Demo
Current FPS : 0
Usage
<script>
import { getFps } from '@sv-use/core';
const fps = getFps();
</script>
Type Definitions
type GetFpsOptions = {
/** Re-calculate the frames per second every `x` frames. */
every?: number;
};
type GetFpsReturn = {
readonly current: number;
};
/**
* @see https://svelte-librarian.github.io/sv-use/docs/core/get-fps
*/
export declare function getFps(options?: GetFpsOptions): GetFpsReturn;
export {};