- only write the warning if r_multithreaded has its default value

This commit is contained in:
Magnus Norddahl 2019-05-09 16:01:39 +02:00
parent 7727263599
commit d0c4f28162

View file

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