From d3abc71c641c2157ab87c82aff6d6c832d3d086c Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 9 May 2019 16:01:39 +0200 Subject: [PATCH] - only write the warning if r_multithreaded has its default value --- src/rendering/swrenderer/scene/r_scene.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rendering/swrenderer/scene/r_scene.cpp b/src/rendering/swrenderer/scene/r_scene.cpp index 8134e59a35..a4c06d311a 100644 --- a/src/rendering/swrenderer/scene/r_scene.cpp +++ b/src/rendering/swrenderer/scene/r_scene.cpp @@ -205,7 +205,8 @@ namespace swrenderer if (firstCall) { firstCall = false; - Printf("Warning: Unable to determine number of CPU cores/threads for this computer. To improve performance, please type 'r_multithreaded x' in the console, where x is the number of threads to use.\n"); + if (r_multithreaded == 1) + Printf("Warning: Unable to determine number of CPU cores/threads for this computer. To improve performance, please type 'r_multithreaded x' in the console, where x is the number of threads to use.\n"); } numThreads = 1;