From fee91d2240187d90e4f36fb0ece9479709520b46 Mon Sep 17 00:00:00 2001 From: water111 <48171810+water111@users.noreply.github.com> Date: Sun, 4 Jun 2023 10:57:34 -0400 Subject: [PATCH] [IOP] revert change that ran the iop way too much (#2681) This caused the IOP thread to use a full core always, just spinning on this. I didn't mean to leave this in. --- game/runtime.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/runtime.cpp b/game/runtime.cpp index 2c43e94bfd..5c35b11289 100644 --- a/game/runtime.cpp +++ b/game/runtime.cpp @@ -317,8 +317,7 @@ void iop_runner(SystemThreadInterface& iface, GameVersion version) { // The IOP scheduler informs us of how many microseconds are left until it has something to do. // So we can wait for that long or until something else needs it to wake up. auto wait_duration = iop.kernel.dispatch(); - if (wait_duration && - *wait_duration - std::chrono::steady_clock::now() > std::chrono::microseconds(100)) { + if (wait_duration) { iop.wait_run_iop(*wait_duration); } }