summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/RendererWorld.cpp2
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>();