From ec71829312dc0f7ecd10437d4416dfdda5c47191 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Fri, 12 Feb 2021 13:04:34 +0100 Subject: [PATCH] only wait extra 100ms if loop is otherwise empty --- Code/Main/InterpolateUtils.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Code/Main/InterpolateUtils.cs b/Code/Main/InterpolateUtils.cs index 9fd042b..4026fd2 100644 --- a/Code/Main/InterpolateUtils.cs +++ b/Code/Main/InterpolateUtils.cs @@ -93,8 +93,10 @@ namespace Flowframes.Main if (lastFrame >= targetFrames) break; } - - await Task.Delay(100); + else + { + await Task.Delay(100); + } } progCheckRunning = false; if (I.canceled)