Core: Change HW update to happen on thread switch, fixes GSP synchronization.

This commit is contained in:
bunnei 2014-08-24 13:38:39 -04:00
parent fab2f28ea5
commit 65d74caa96

View File

@ -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();
}
}