mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Set busy wait threshold to 2ms.
This commit is contained in:
parent
a17aa054dc
commit
af6c9aaafa
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ void ApplicationUpdateMidAsmHook()
|
||||||
|
|
||||||
if (now < g_next)
|
if (now < g_next)
|
||||||
{
|
{
|
||||||
std::this_thread::sleep_for(std::chrono::floor<std::chrono::milliseconds>(g_next - now - 1ms));
|
std::this_thread::sleep_for(std::chrono::floor<std::chrono::milliseconds>(g_next - now - 2ms));
|
||||||
|
|
||||||
while ((now = std::chrono::steady_clock::now()) < g_next)
|
while ((now = std::chrono::steady_clock::now()) < g_next)
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
|
@ -144,4 +144,4 @@ PPC_FUNC(sub_8312DBF8)
|
||||||
|
|
||||||
while (std::chrono::steady_clock::now() < next)
|
while (std::chrono::steady_clock::now() < next)
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue