diff --git a/src/utils/AsyncExecutor.cpp b/src/utils/AsyncExecutor.cpp index bfbd2ce..708f264 100644 --- a/src/utils/AsyncExecutor.cpp +++ b/src/utils/AsyncExecutor.cpp @@ -21,7 +21,7 @@ AsyncExecutor::AsyncExecutor() { } } instance->mutex.unlock(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(16)); DCFlushRange((void*)&exitThread, sizeof(exitThread)); } }); @@ -34,8 +34,8 @@ void AsyncExecutor::execute(std::function func) { instance = new AsyncExecutor(); } - while(instance->elements.size() > 10) { - std::this_thread::sleep_for(std::chrono::milliseconds(1)); + while(instance->elements.size() > 25) { + std::this_thread::sleep_for(std::chrono::milliseconds(16)); } instance->mutex.lock();