Add selectable FPS

This commit is contained in:
Marc Rousavy
2021-02-20 17:39:04 +01:00
parent eaebda7954
commit b7274eb2e9
4 changed files with 72 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
import { selector } from 'pipestate';
import { FormatSettingsAtom } from './atoms';
export const FpsSelector = selector({
export const FpsSelector = selector<number, []>({
get: ({ get }) => {
return get(FormatSettingsAtom).fps;
},