From b6e91d47ff3399dea219649d14d8310093211195 Mon Sep 17 00:00:00 2001 From: Xphalnos Date: Fri, 20 Jun 2025 22:12:34 +0200 Subject: [PATCH] Reduce CPU overload --- core/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/main.cpp b/core/main.cpp index b13bbd8..060501f 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -1,5 +1,7 @@ // Copyright 2025 Pound Emulator Project. All rights reserved. +#include + #include "Base/Logging/Backend.h" #include @@ -63,6 +65,7 @@ int main() { bool rendering = true; while (rendering) { + std::this_thread::sleep_for(std::chrono::milliseconds(50)); // Process events. while (SDL_PollEvent(&windowEvent)) { switch (windowEvent.type) {