From 75dd3e2a48c08f77c25c3bdafce27f4fdd34c8ed Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Thu, 11 Feb 2021 21:18:00 +0100 Subject: [PATCH] limit progress update rate to 5x/sec --- Code/Main/InterpolateUtils.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Code/Main/InterpolateUtils.cs b/Code/Main/InterpolateUtils.cs index f0704bd..6822836 100644 --- a/Code/Main/InterpolateUtils.cs +++ b/Code/Main/InterpolateUtils.cs @@ -81,13 +81,19 @@ namespace Flowframes.Main { if (firstProgUpd && Program.mainForm.IsInFocus()) Program.mainForm.SetTab("preview"); + firstProgUpd = false; string lastFramePath = currentOutdir + "\\" + lastFrame.ToString("00000000") + $".{GetOutExt()}"; + if (lastFrame > 1) UpdateInterpProgress(lastFrame, targetFrames, lastFramePath); + + await Task.Delay(200); + if (lastFrame >= targetFrames) break; } + await Task.Delay(100); } progCheckRunning = false;