Calculate FPS

This commit is contained in:
Andras Schmelczer 2023-05-21 09:41:19 +01:00
commit 52799a6bf0
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 32 additions and 3 deletions

View file

@ -0,0 +1,9 @@
export const exponentialDecay = ({
accumulator,
nextValue,
biasOfNextValue,
}: {
accumulator: number;
nextValue: number;
biasOfNextValue: number;
}) => accumulator * (1 - biasOfNextValue) + nextValue * biasOfNextValue;