forked from bartvdbraak/blender
Sculpt/dytopo: remove debug prints and add explanations
This commit is contained in:
parent
262fd0865a
commit
6815a22110
@ -3785,12 +3785,11 @@ static void sculpt_omp_start(Scene *scene, Sculpt *sd, SculptSession *ss)
|
|||||||
else {
|
else {
|
||||||
cache->num_threads = 1;
|
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
|
#else
|
||||||
(void)sd;
|
(void)sd;
|
||||||
cache->num_threads = 1;
|
cache->num_threads = 1;
|
||||||
#endif
|
#endif
|
||||||
// printf("Sculpt omp threadcount: %d\n", cache->num_threads);
|
|
||||||
if (ss->multires) {
|
if (ss->multires) {
|
||||||
int i, gridsize, array_mem_size;
|
int i, gridsize, array_mem_size;
|
||||||
BKE_pbvh_node_get_grids(ss->pbvh, NULL, NULL, NULL, NULL,
|
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
|
#ifdef _OPENMP
|
||||||
if (!(sd->flags & SCULPT_USE_OPENMP))
|
if (!(sd->flags & SCULPT_USE_OPENMP))
|
||||||
omp_set_num_threads(BLI_system_thread_count());
|
omp_set_num_threads(BLI_system_thread_count()); /* set back to original logical corecount */
|
||||||
// printf("Reseted to omp threadcount: %d\n", BLI_system_thread_count());
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sculpt_brush_exit_tex(sd);
|
sculpt_brush_exit_tex(sd);
|
||||||
|
Loading…
Reference in New Issue
Block a user