Restore "Add single-threaded config to Filament. (#130)"

This reverts commit 24022010f9.
This commit is contained in:
prideout
2018-08-27 08:13:43 -07:00
committed by Romain Guy
parent 33c44ee9ce
commit 3a7d80f29b
10 changed files with 123 additions and 50 deletions

View File

@@ -120,7 +120,7 @@ JobSystem::JobSystem(size_t threadCount, size_t adoptableThreadsCount) noexcept
threadCount = hwThreads - 1;
}
}
threadCount = std::min(size_t(32), threadCount);
threadCount = std::min(size_t(UTILS_HAS_THREADING ? 32 : 0), threadCount);
mThreadStates = aligned_vector<ThreadState>(threadCount + adoptableThreadsCount);
mThreadCount = uint16_t(threadCount);