From 65d74caa9647013889703c22aed3ec0cf64c450c Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 24 Aug 2014 13:38:39 -0400 Subject: [PATCH] Core: Change HW update to happen on thread switch, fixes GSP synchronization. --- src/core/core.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index fc9909377..59d8d791f 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -33,8 +33,9 @@ void RunLoop() { // this is to just loop in the CPU for more than 1 instruction to reduce overhead and make // it a little bit faster... g_app_core->Run(100); - HW::Update(); + if (HLE::g_reschedule) { + HW::Update(); Kernel::Reschedule(); } } @@ -43,8 +44,9 @@ void RunLoop() { /// Step the CPU one instruction void SingleStep() { g_app_core->Step(); - HW::Update(); + if (HLE::g_reschedule) { + HW::Update(); Kernel::Reschedule(); } }