From 0b02f94988474ef0ed9406b93644c3da61251216 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Sat, 1 Oct 2011 08:04:09 -0700 Subject: [PATCH] Task system performance tweaks. Switch back to GCD on OSX. Increase TaskInfo allocation count. This fixes the regression with deferred on AVX (from 17x to 25x again with 4 cores.) --- examples/tasksys.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/tasksys.cpp b/examples/tasksys.cpp index fb970b59..92dc50f0 100644 --- a/examples/tasksys.cpp +++ b/examples/tasksys.cpp @@ -53,9 +53,7 @@ #define ISPC_USE_PTHREADS #elif defined(__APPLE__) #define ISPC_IS_APPLE - // pthreads is noticably more efficient than GCD on OSX - #define ISPC_USE_PTHREADS - //#define ISPC_USE_GCD + #define ISPC_USE_GCD #endif #define DBG(x) @@ -112,7 +110,7 @@ struct TaskInfo { /////////////////////////////////////////////////////////////////////////// // TaskGroupBase -#define LOG_TASK_QUEUE_CHUNK_SIZE 12 +#define LOG_TASK_QUEUE_CHUNK_SIZE 14 #define MAX_TASK_QUEUE_CHUNKS 8 #define TASK_QUEUE_CHUNK_SIZE (1<