qt/qt_main.cpp: Use plat_delay_ms(1) instead of thread sleeping, closes #5066.

This commit is contained in:
OBattler 2024-12-24 19:25:00 +01:00
parent 4297d72a89
commit 8db59e3c5c

View file

@ -149,7 +149,12 @@ main_thread_fn()
if (dopause)
ack_pause();
#ifdef USE_THREAD_SLEEP
std::this_thread::sleep_for(std::chrono::milliseconds(1));
#else
timeBeginPeriod(1);
plat_delay_ms(1);
#endif
}
}