]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - taskqueue.c
Fix multiple bugs with r_viewscale in r_shadow_deferred and r_bloom - they were relyi...
[xonotic/darkplaces.git] / taskqueue.c
index b43f8d46cce25a89ed97ddd8db8a408b0e171807..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"};
 
@@ -141,7 +141,7 @@ qboolean TaskQueue_IsDone(taskqueue_task_t *t)
        return !t->done != 0;
 }
 
-void TaskQueue_DistributeTasks(void)
+static void TaskQueue_DistributeTasks(void)
 {
        Thread_AtomicLock(&taskqueue_state.command_lock);
        if (taskqueue_state.numthreads > 0)