From c817f6ff091de9869c803868c50a9ea884ead376 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 7 Jan 2025 10:26:41 +0100 Subject: more revert --- src/crepe/api/Engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crepe/api/Engine.cpp b/src/crepe/api/Engine.cpp index 798cd55..bfc1c4a 100644 --- a/src/crepe/api/Engine.cpp +++ b/src/crepe/api/Engine.cpp @@ -50,7 +50,7 @@ void Engine::loop() { while (timer.get_lag() >= timer.get_fixed_delta_time()) { try { systems.fixed_update(); - this->loop_timer.advance_fixed_elapsed_time(); + timer.advance_fixed_elapsed_time(); } catch (const exception & e) { Log::logf( Log::Level::WARNING, "Uncaught exception in fixed update function: {}", @@ -61,7 +61,7 @@ void Engine::loop() { try { systems.frame_update(); - this->loop_timer.enforce_frame_rate(); + timer.enforce_frame_rate(); } catch (const exception & e) { Log::logf( Log::Level::WARNING, "Uncaught exception in frame update function: {}", -- cgit v1.2.3