[Bf-blender-cvs] [6815a22] master: Sculpt/dytopo: remove debug prints and add explanations

Jens Verwiebe noreply at git.blender.org
Mon Mar 31 19:12:09 CEST 2014


Commit: 6815a22110cb8a387cce93cbb232507e69f8f678
Author: Jens Verwiebe
Date:   Mon Mar 31 19:11:52 2014 +0200
https://developer.blender.org/rB6815a22110cb8a387cce93cbb232507e69f8f678

Sculpt/dytopo: remove debug prints and add explanations

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 5f8091c..32c6f10 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3785,12 +3785,11 @@ static void sculpt_omp_start(Scene *scene, Sculpt *sd, SculptSession *ss)
 	else {
 		cache->num_threads = 1;
 	}
-	omp_set_num_threads(cache->num_threads);
+	omp_set_num_threads(cache->num_threads);  /* set user-defined corecount wich is physical cores when "AUTO" ( atm. OSX-only )*/
 #else
 	(void)sd;
 	cache->num_threads = 1;
 #endif
-//	printf("Sculpt omp threadcount: %d\n", cache->num_threads);
 	if (ss->multires) {
 		int i, gridsize, array_mem_size;
 		BKE_pbvh_node_get_grids(ss->pbvh, NULL, NULL, NULL, NULL,
@@ -4631,8 +4630,7 @@ static void sculpt_stroke_done(const bContext *C, struct PaintStroke *UNUSED(str
 
 #ifdef _OPENMP
 	if (!(sd->flags & SCULPT_USE_OPENMP))
-		omp_set_num_threads(BLI_system_thread_count());
-//		printf("Reseted to omp threadcount: %d\n", BLI_system_thread_count());
+		omp_set_num_threads(BLI_system_thread_count()); /* set back to original logical corecount */
 #endif
 
 	sculpt_brush_exit_tex(sd);




More information about the Bf-blender-cvs mailing list