From: cloudwalk Date: Fri, 29 May 2020 22:39:43 +0000 (+0000) Subject: Change taskqueue_minthreads to 0, resulting in considerable performance increase X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a09bd0381d7448924cc6adf0e8cdbe392c48cf8;p=xonotic%2Fdarkplaces.git Change taskqueue_minthreads to 0, resulting in considerable performance increase 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 --- diff --git a/taskqueue.c b/taskqueue.c index 0004e49e..06312cda 100644 --- a/taskqueue.c +++ b/taskqueue.c @@ -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"};