diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/RendererWorld.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp index 04d8392..aa64dc0 100644 --- a/src/RendererWorld.cpp +++ b/src/RendererWorld.cpp @@ -150,7 +150,7 @@ RendererWorld::RendererWorld(GameState* ptr) { gs = ptr; frustum = std::make_unique<Frustum>(); MaxRenderingDistance = 2; - numOfWorkers = 2; + numOfWorkers = _max(1, (signed int) std::thread::hardware_concurrency() - 2); listener = std::make_unique<EventListener>(); |