Merge branch 'master' into blender2.8
[blender.git] / source / blender / depsgraph / intern / eval / deg_eval.cc
index 116f853ebdf988f73dc801d259fb03e8f38c5b97..a6c6a16a52803732972353de8dab34a4e8d81010 100644 (file)
@@ -132,12 +132,11 @@ static void calculate_pending_func(
 static void calculate_pending_parents(Depsgraph *graph)
 {
        const int num_operations = graph->operations.size();
-       const bool do_threads = (num_operations > 256);
        CalculatePengindData data;
        data.graph = graph;
        ParallelRangeSettings settings;
        BLI_parallel_range_settings_defaults(&settings);
-       settings.use_threading = do_threads;
+       settings.min_iter_per_thread = 1024;
        BLI_task_parallel_range(0,
                                num_operations,
                                &data,