Skip to content

Commit

Permalink
bugfix: CPU usage would climb to 100% when paused
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 16, 2025
1 parent 3357742 commit 7083575
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osdep/amiberry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1866,7 +1866,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;
}

Expand Down

0 comments on commit 7083575

Please sign in to comment.