Change CResFactory::AsyncIdle timeout to 5ms

This commit is contained in:
Luke Street 2021-02-15 22:03:40 -05:00
parent 732831de9a
commit 483f8ed97b
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ void CResFactory::AsyncIdle() {
return; return;
auto startTime = std::chrono::steady_clock::now(); auto startTime = std::chrono::steady_clock::now();
while (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - startTime).count() < while (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - startTime).count() <
2) { 5) {
auto& task = m_loadList.front(); auto& task = m_loadList.front();
if (PumpResource(task)) { if (PumpResource(task)) {
m_loadMap.erase(task.x0_tag); m_loadMap.erase(task.x0_tag);