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(); PrepareForWait();
if (!cvars::vsync) { if (!cvars::vsync) {
// User wants it fast and dangerous. // User wants it fast and dangerous.
xe::threading::MaybeYield(); // do nothing
} else { } else {
xe::threading::Sleep(std::chrono::milliseconds(wait / 0x100)); xe::threading::Sleep(std::chrono::milliseconds(wait / 0x100));
ReturnFromWait();
} }
// xe::threading::SyncMemory();
ReturnFromWait();
if (!worker_running_) { if (!worker_running_) {
// Short-circuited exit. // Short-circuited exit.
return false; return false;
} }
} else { } else {
xe::threading::MaybeYield(); //xe::threading::MaybeYield();
} }
} }
} while (!matched); } while (!matched);