From 06dbf0d4af94117089e1625cb49562ad09ac6980 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 28 Mar 2018 19:46:10 +0500 Subject: Num of parsing threads now depends from num of CPU cores --- src/RendererWorld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/RendererWorld.cpp') 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(); MaxRenderingDistance = 2; - numOfWorkers = 2; + numOfWorkers = _max(1, (signed int) std::thread::hardware_concurrency() - 2); listener = std::make_unique(); -- cgit v1.2.3