From b23de9a3d4d7d7d1c5b0e1c8d697acbc4ef211e3 Mon Sep 17 00:00:00 2001 From: josua Date: Fri, 2 Aug 2019 14:07:02 +1000 Subject: [PATCH] Fixed an issue with lag at the mainloop start --- src/mainloop/manager/MainloopManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainloop/manager/MainloopManager.java b/src/mainloop/manager/MainloopManager.java index f192c80..7a92c56 100755 --- a/src/mainloop/manager/MainloopManager.java +++ b/src/mainloop/manager/MainloopManager.java @@ -21,13 +21,13 @@ public class MainloopManager // Initialize the variables this.handler = handler; this.tasks = new ArrayList(); - this.timer = new MainloopTimer(handler); } public void start() { - // Set running to true + // Set running to true and reset the timer this.running = true; + this.timer = new MainloopTimer(this.handler); // Call the on start function this.handler.onStart();