From e8ed4c8a6aa7f067e90111fdfba3a61a97704fa6 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Thu, 16 Jan 2025 15:55:13 +0100 Subject: [PATCH] bugfix: CPU usage would climb to 100% when paused (fixes #1595) --- src/osdep/amiberry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osdep/amiberry.cpp b/src/osdep/amiberry.cpp index fd08c48ee..7cf4dcae4 100644 --- a/src/osdep/amiberry.cpp +++ b/src/osdep/amiberry.cpp @@ -1879,7 +1879,8 @@ bool handle_events() sound_closed = 0; was_paused = 0; } - + // Insert a 10ms delay to prevent 100% CPU usage + SDL_Delay(10); return pause_emulation != 0; }