From 62944cdb48e490bd32274d5b132f56ad8f4cc881 Mon Sep 17 00:00:00 2001 From: n00mkrad Date: Wed, 20 Apr 2022 05:36:49 +0200 Subject: [PATCH] Avoid running out of precision when multiplying input fps with interp factor by using long --- Code/Data/InterpSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Data/InterpSettings.cs b/Code/Data/InterpSettings.cs index c8ee7af..2bb1c09 100644 --- a/Code/Data/InterpSettings.cs +++ b/Code/Data/InterpSettings.cs @@ -53,7 +53,7 @@ namespace Flowframes inFpsDetected = inFpsDetectedArg; inFps = inFpsArg; interpFactor = interpFactorArg; - outFps = inFpsArg * interpFactorArg; + outFps = inFpsArg * (long)interpFactorArg; outItsScale = itsScale; outMode = outModeArg; model = modelArg;