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.)
This commit is contained in:
Matt Pharr
2011-10-01 08:04:09 -07:00
parent 65c50b60fc
commit 0b02f94988

View File

@@ -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<<LOG_TASK_QUEUE_CHUNK_SIZE)
@@ -159,7 +157,6 @@ private:
int memBufferSize[NUM_MEM_BUFFERS];
char *memBuffers[NUM_MEM_BUFFERS];
char mem[256];
};