mirror of https://github.com/WerWolv/ImHex
impr: Reduce CPU usage further
This commit is contained in:
parent
1deb27a6df
commit
22b3daf082
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue