Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-07-20 04:40:03 +0400
committerThomas Dinges <blender@dingto.org>2013-07-20 04:40:03 +0400
commit9732c6283efa93bfc8442ee9e377184ae30692c6 (patch)
treef3d427650e3a7157a631f74b59a04ee7ab48dd17 /intern/cycles/util/util_task.h
parenta2a99bbc17e467281af835d170588588a06e6ab0 (diff)
Cycles / CPU Rendering:
* "Auto Detect" now again uses the umber of cores, instead number of cores + 1. This was added before we had Tile rendering and benchmarks on several systems showed that there is no gain with this now. There might be some slight difference (0.5% or so) slower/faster depending on the scene, but this is negligible.
Diffstat (limited to 'intern/cycles/util/util_task.h')
-rw-r--r--intern/cycles/util/util_task.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_task.h b/intern/cycles/util/util_task.h
index 5bca3f255af..6e002ddd5b1 100644
--- a/intern/cycles/util/util_task.h
+++ b/intern/cycles/util/util_task.h
@@ -94,8 +94,8 @@ public:
static void init(int num_threads = 0);
static void exit();
- /* number of threads that can work on tasks, main thread counts too */
- static int num_threads() { return threads.size() + 1; }
+ /* number of threads that can work on task */
+ static int num_threads() { return threads.size(); }
/* test if any session is using the scheduler */
static bool active() { return users != 0; }