Set busy wait threshold to 2ms.

This commit is contained in:
Skyth 2024-12-22 15:52:31 +03:00
parent a17aa054dc
commit af6c9aaafa

View file

@ -89,7 +89,7 @@ void ApplicationUpdateMidAsmHook()
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)
std::this_thread::yield();