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:
authorCampbell Barton <ideasman42@gmail.com>2012-12-12 11:20:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-12 11:20:34 +0400
commit2ee180eab678c0b21e92aa0175ad93528d9009ae (patch)
tree54455d3ee395cb006667e26d12189bb3705bda81 /source/blender/bmesh/intern/bmesh_marking.c
parent3e8b56b321225b5fce0e02130a3de2f770b19441 (diff)
add threshold for bmesh & openmp so its not used with low poly meshes, BM_OMP_LIMIT may need tweaking.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_marking.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_marking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_marking.c b/source/blender/bmesh/intern/bmesh_marking.c
index 6093547150c..b1ec4cde44b 100644
--- a/source/blender/bmesh/intern/bmesh_marking.c
+++ b/source/blender/bmesh/intern/bmesh_marking.c
@@ -165,7 +165,7 @@ void BM_mesh_deselect_flush(BMesh *bm)
int ok;
/* we can use 2 sections here because the second loop isnt checking edge selection */
-#pragma omp parallel sections
+#pragma omp parallel sections if (bm->totedge + bm->totface >= BM_OMP_LIMIT)
{
#pragma omp section
{
@@ -227,7 +227,7 @@ void BM_mesh_select_flush(BMesh *bm)
int ok;
/* we can use 2 sections here because the second loop isnt checking edge selection */
-#pragma omp parallel sections
+#pragma omp parallel sections if (bm->totedge + bm->totface >= BM_OMP_LIMIT)
{
#pragma omp section
{
@@ -848,7 +848,7 @@ void BM_mesh_elem_hflag_disable_test(BMesh *bm, const char htype, const char hfl
/* fast path for deselect all, avoid topology loops
* since we know all will be de-selected anyway. */
-#pragma omp parallel for schedule(dynamic)
+#pragma omp parallel for schedule(dynamic) if (bm->totvert + bm->totedge + bm->totface >= BM_OMP_LIMIT)
for (i = 0; i < 3; i++) {
BMIter iter;
BMElem *ele;