From efa898ebaad4089ea478360dd2f9504b18439159 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 14 Mar 2022 11:50:09 -0700 Subject: [PATCH] Fix performance issue in paused state --- src/Main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Main.cpp b/src/Main.cpp index b941a63..0fc45b7 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -264,6 +264,9 @@ int main() } if (paused) { + // window.display() is where SFML implements frame rate limiting + // If we don't run this here, then when paused septadrop will max out the thread + window.display(); continue; }