- oops, patched the wrong file

This commit is contained in:
Magnus Norddahl 2019-05-09 16:06:18 +02:00
parent d0c4f28162
commit cace5079fe
2 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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;