]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Change taskqueue_minthreads to 0, resulting in considerable performance increase
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 May 2020 22:39:43 +0000 (22:39 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 May 2020 22:39:43 +0000 (22:39 +0000)
Nothing needs 4 threads just sitting there spinning at the moment.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12608 d7cf8633-e32d-0410-b094-e92efae38249

taskqueue.c

index 0004e49eb7ede11ca524b0708039ec902a7cf572..06312cda5095370fb524e8c037e7e90bceab5a76 100644 (file)
@@ -1,7 +1,7 @@
 #include "quakedef.h"
 #include "taskqueue.h"
 
-cvar_t taskqueue_minthreads = {CVAR_CLIENT | CVAR_SERVER | CVAR_SAVE, "taskqueue_minthreads", "4", "minimum number of threads to keep active for executing tasks"};
+cvar_t taskqueue_minthreads = {CVAR_CLIENT | CVAR_SERVER | CVAR_SAVE, "taskqueue_minthreads", "0", "minimum number of threads to keep active for executing tasks"};
 cvar_t taskqueue_maxthreads = {CVAR_CLIENT | CVAR_SERVER | CVAR_SAVE, "taskqueue_maxthreads", "32", "maximum number of threads to start up as needed based on task count"};
 cvar_t taskqueue_tasksperthread = {CVAR_CLIENT | CVAR_SERVER | CVAR_SAVE, "taskqueue_tasksperthread", "4000", "expected amount of work that a single thread can do in a frame - the number of threads being used depends on the average workload in recent frames"};