Skip to content
Permalink
Browse files

- oops, patched the wrong file

  • Loading branch information...
dpjudas authored and madame-rachelle committed May 9, 2019
1 parent d3abc71 commit 46e07d5aa0adfcab4e944e90ec9dd5e61b924dff
Showing with 11 additions and 11 deletions.
  1. +11 −1 src/rendering/swrenderer/drawers/r_thread.cpp
  2. +0 −10 src/rendering/swrenderer/scene/r_scene.cpp
@@ -187,7 +187,17 @@ void DrawerThreads::StartThreads()

int num_threads = num_numathreads;
if (num_threads == 0)
num_threads = 4;
{
static bool firstCall = true;
if (firstCall)
{
firstCall = false;
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");
}

num_threads = 1;
}

if (r_multithreaded == 0)
num_threads = 1;
@@ -200,17 +200,7 @@ namespace swrenderer
{
int numThreads = std::thread::hardware_concurrency();
if (numThreads == 0)
{
static bool firstCall = true;
if (firstCall)
{
firstCall = false;
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;
}

if (r_scene_multithreaded == 0 || r_multithreaded == 0)
numThreads = 1;

0 comments on commit 46e07d5

Please sign in to comment.
You can’t perform that action at this time.