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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-07-30 16:39:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-07-30 16:42:16 +0300
commitd87fb0356a320206e418c6e0885a759fc7a16b06 (patch)
treec757cd68be7984391870b781366c7e5c6653b340 /source/blender/editors/sculpt_paint/CMakeLists.txt
parent363dd97ae80a4d097d92398b1769c1dca09c0ad9 (diff)
Make 3d projpaint iteration lockless.
While speedup is hard to detect (highly fluctuent), it seems to be around 5% on average on my 8 threads machine... It also remove usage of a 'global' thread lock, which is always good. Note that I also tried to use proper foreach threaded iterator construct (see D5372), but that proved to be relatively slower (presumably due to the very high dissymmetry between tasks, usually during a paint stroke only a few chunks will require most of the computing effort, overhead of threaded foreach management is then noticeable). This concludes (for now) the work on T51133 Bad performance with texture painting depending on multi-thread settings.
Diffstat (limited to 'source/blender/editors/sculpt_paint/CMakeLists.txt')
-rw-r--r--source/blender/editors/sculpt_paint/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/CMakeLists.txt b/source/blender/editors/sculpt_paint/CMakeLists.txt
index 23617e687ea..2a8ff9d4f78 100644
--- a/source/blender/editors/sculpt_paint/CMakeLists.txt
+++ b/source/blender/editors/sculpt_paint/CMakeLists.txt
@@ -29,6 +29,7 @@ set(INC
../../makesrna
../../render/extern/include
../../windowmanager
+ ../../../../intern/atomic
../../../../intern/glew-mx
../../../../intern/guardedalloc
)