Skip to content

Commit

Permalink
- oops, patched the wrong file
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 d3abc71 commit 46e07d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 11 additions & 1 deletion src/rendering/swrenderer/drawers/r_thread.cpp
Expand Up @@ -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;
Expand Down
10 changes: 0 additions & 10 deletions src/rendering/swrenderer/scene/r_scene.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 46e07d5

Please sign in to comment.