Sleep instead of yield

This commit is contained in:
offtkp 2024-08-10 19:52:43 +03:00
parent 83ebb954b8
commit 4dd3cd89bf

View file

@ -31,7 +31,7 @@ AsyncCompilerThread::AsyncCompilerThread(PICA::ShaderGen::FragmentGenerator& fra
} }
hasWork.store(false); hasWork.store(false);
std::this_thread::yield(); std::this_thread::sleep_for(std::chrono::milliseconds(10));
} }
AsyncCompiler::destroyContext(context); AsyncCompiler::destroyContext(context);