Remove MaybeYields when vsync is off
This commit is contained in:
parent
080b6f4cbd
commit
7a0fd0f32a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue