We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b2e9d0 commit 87dd5abCopy full SHA for 87dd5ab
core/base/JobSystem.cpp
@@ -110,10 +110,10 @@ static int clampThreads(int nThreads)
110
if (nThreads <= 0)
111
{
112
#if !defined(__EMSCRIPTEN__) || defined(__EMSCRIPTEN_PTHREADS__)
113
-# if !defined(__EMSCRIPTEN__)
+# if defined(AX_PLATFORM_PC)
114
nThreads = (std::max)(static_cast<int>(std::thread::hardware_concurrency() * 3 / 2), 2);
115
# else
116
- nThreads = (std::clamp)(static_cast<int>(std::thread::hardware_concurrency()), 2, 8);
+ nThreads = (std::clamp)(static_cast<int>(std::thread::hardware_concurrency()) - 2, 2, 8);
117
# endif
118
#else
119
AXLOGW("The emscripten pthread not enabled, JobSystem not working");
0 commit comments