Remove MaybeYields when vsync is off

This commit is contained in:
chss95cs@gmail.com 2022-12-14 09:56:33 -08:00
parent 080b6f4cbd
commit 7a0fd0f32a
1 changed files with 3 additions and 4 deletions

View File

@ -523,19 +523,18 @@ bool COMMAND_PROCESSOR::ExecutePacketType3_WAIT_REG_MEM(
PrepareForWait();
if (!cvars::vsync) {
// User wants it fast and dangerous.
xe::threading::MaybeYield();
// do nothing
} else {
xe::threading::Sleep(std::chrono::milliseconds(wait / 0x100));
ReturnFromWait();
}
// xe::threading::SyncMemory();
ReturnFromWait();
if (!worker_running_) {
// Short-circuited exit.
return false;
}
} else {
xe::threading::MaybeYield();
//xe::threading::MaybeYield();
}
}
} while (!matched);