Autodetect number of threads (remove setting). Fix some bugs.

This commit is contained in:
Henrik Rydgård committed 2021-06-12 21:06:59 +02:00
1 parent 03c79ae055
commit 0fa27ff9d7
14 files changed
+112 -40

No files matched your search

+1 -1
View File
@@ -752,7 +752,7 @@ std::shared_ptr<GameInfo> GameInfoCache::GetInfo(Draw::DrawContext *draw, const
}
GameInfoWorkItem *item = new GameInfoWorkItem(gamePath, info);
g_threadManager.EnqueueTask(item);
g_threadManager.EnqueueTask(item, TaskType::IO_BLOCKING);
// Don't re-insert if we already have it.
if (info_.find(pathStr) == info_.end())