impr: Reduce CPU usage further

This commit is contained in:
WerWolv
2025-02-25 21:50:04 +01:00
parent f6944b15f3
commit 335042ec08

View File

@@ -303,7 +303,7 @@ namespace hex {
{
std::unique_lock lock(m_sleepMutex);
m_sleepCondVar.wait_for(lock, std::chrono::microseconds(100));
m_sleepCondVar.wait(lock);
if (m_sleepFlag.exchange(false))
break;
}