From 90cd856ac34011496031eeae5a5e3a5bf2da1107 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 11 Jan 2018 19:39:24 +0100 Subject: Nuke OMP usage in multires.c. New code is over three times quicker than old one here (e.g. Suzanne subdiv level 4, 250k tris, threaded part is now 1.4ms instead of 4.5ms with OMP). --- source/blender/blenkernel/intern/CCGSubSurf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenkernel/intern/CCGSubSurf.h') diff --git a/source/blender/blenkernel/intern/CCGSubSurf.h b/source/blender/blenkernel/intern/CCGSubSurf.h index 4c913e79586..8cdbd2a7a98 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf.h +++ b/source/blender/blenkernel/intern/CCGSubSurf.h @@ -73,6 +73,9 @@ typedef enum { #define CCG_OMP_LIMIT 1000000 +/* TODO(sergey): This actually depends on subsurf level as well. */ +#define CCG_TASK_LIMIT 16 + /***/ CCGSubSurf* ccgSubSurf_new (CCGMeshIFC *ifc, int subdivisionLevels, CCGAllocatorIFC *allocatorIFC, CCGAllocatorHDL allocator); -- cgit v1.2.3