Skip to content

FPS

Reactive FPS (frames per second).

🎬 Usage

<script>
    import {fps} from "sveltecore"

    const f = fps()
</script>

👩‍💻API

Options

Name Description Type Default
every Calculate the FPS on every x frames. number 10

Returns

A subscribable store that updates with the current FPS.

🧪 Playground


Last update: 2022-11-13