Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/occlusion.c
| Context not available. | |||||
| occ_build_8_split(tree, begin, end, offset, count); | occ_build_8_split(tree, begin, end, offset, count); | ||||
| if (depth == 1 && tree->dothreadedbuild) | if (depth == 1 && tree->dothreadedbuild) | ||||
| BLI_threadpool_init(&threads, exec_occ_build, tree->totbuildthread); | BLI_threadpool_init(&threads, exec_occ_build, tree->totbuildthread, "OcclusionBuild"); | ||||
| for (b = 0; b < TOTCHILD; b++) { | for (b = 0; b < TOTCHILD; b++) { | ||||
| if (count[b] == 0) { | if (count[b] == 0) { | ||||
| Context not available. | |||||
| exec_strandsurface_sample(&othreads[0]); | exec_strandsurface_sample(&othreads[0]); | ||||
| } | } | ||||
| else { | else { | ||||
| BLI_threadpool_init(&threads, exec_strandsurface_sample, totthread); | BLI_threadpool_init(&threads, exec_strandsurface_sample, totthread, "MakeOccTree"); | ||||
| for (a = 0; a < totthread; a++) | for (a = 0; a < totthread; a++) | ||||
| BLI_threadpool_insert(&threads, &othreads[a]); | BLI_threadpool_insert(&threads, &othreads[a]); | ||||
| Context not available. | |||||