Skip to content

Commit

Permalink
- only write the warning if r_multithreaded has its default value
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas authored and madame-rachelle committed May 14, 2019
1 parent e2fc3f2 commit d3abc71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rendering/swrenderer/scene/r_scene.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d3abc71

Please sign in to comment.