Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh_evaluate.c
| Show First 20 Lines • Show All 1,709 Lines • ▼ Show 20 Lines | #endif | ||||
| /* This first loop check which edges are actually smooth, and compute edge vectors. */ | /* This first loop check which edges are actually smooth, and compute edge vectors. */ | ||||
| mesh_edges_sharp_tag(&common_data, check_angle, split_angle, false); | mesh_edges_sharp_tag(&common_data, check_angle, split_angle, false); | ||||
| if (numLoops < LOOP_SPLIT_TASK_BLOCK_SIZE * 8) { | if (numLoops < LOOP_SPLIT_TASK_BLOCK_SIZE * 8) { | ||||
| /* Not enough loops to be worth the whole threading overhead... */ | /* Not enough loops to be worth the whole threading overhead... */ | ||||
| loop_split_generator(NULL, &common_data); | loop_split_generator(NULL, &common_data); | ||||
| } | } | ||||
| else { | else { | ||||
| TaskPool *task_pool = BLI_task_pool_create(&common_data, TASK_PRIORITY_HIGH); | TaskPool *task_pool = BLI_task_pool_create( | ||||
| &common_data, TASK_PRIORITY_HIGH, TASK_ISOLATION_ON); | |||||
| loop_split_generator(task_pool, &common_data); | loop_split_generator(task_pool, &common_data); | ||||
| BLI_task_pool_work_and_wait(task_pool); | BLI_task_pool_work_and_wait(task_pool); | ||||
| BLI_task_pool_free(task_pool); | BLI_task_pool_free(task_pool); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,334 Lines • Show Last 20 Lines | |||||