From 71242699ea1c27e08deaf1cc6ad088c873079db6 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sat, 26 Jul 2025 16:21:25 +0700 Subject: [PATCH] Standard getFPSRatio --- source/funkin/backend/utils/CoolUtil.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/backend/utils/CoolUtil.hx b/source/funkin/backend/utils/CoolUtil.hx index 005078de..d24e153a 100644 --- a/source/funkin/backend/utils/CoolUtil.hx +++ b/source/funkin/backend/utils/CoolUtil.hx @@ -408,7 +408,7 @@ final class CoolUtil * @return FPS-Modified Ratio */ @:noUsing public static inline function getFPSRatio(ratio:Float):Float { - return CoolUtil.bound(ratio * 60 * FlxG.elapsed, 0.0, 1.0); + return 1.0 - Math.pow(1.0 - ratio, FlxG.elapsed * 60); } /** * Tries to get a color from a `Dynamic` variable.