From 5c99e2ac790164ba5232941d5a228af50c75e413 Mon Sep 17 00:00:00 2001 From: Julia09055x Date: Tue, 12 Dec 2023 13:10:09 +0100 Subject: [PATCH] main: delay und processInput in jedem Schleifendurchlauf --- src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d03e72f..7e8d1b2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,11 +54,10 @@ int main(int argc, char *argv[]) if (now - game.timestampLastCycle > config.cycleDurationMs){ game.timestampLastCycle = now; runGameCycle(); - } else{ - DELAY(5); //verhindert maximale Durchlaufgeschwindigkeit der Schleife - processInputEvent(); } } + DELAY(5); //verhindert maximale Durchlaufgeschwindigkeit der Schleife + processInputEvent(); }