mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- oops, patched the wrong file
This commit is contained in:
parent
d0c4f28162
commit
cace5079fe
2 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue