Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_build.cc
| Show First 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | void DEG_graph_build_from_view_layer(Depsgraph *graph, | ||||
| node_builder.begin_build(); | node_builder.begin_build(); | ||||
| node_builder.build_view_layer(scene, view_layer, DEG::DEG_ID_LINKED_DIRECTLY); | node_builder.build_view_layer(scene, view_layer, DEG::DEG_ID_LINKED_DIRECTLY); | ||||
| node_builder.end_build(); | node_builder.end_build(); | ||||
| /* Hook up relationships between operations - to determine evaluation order. */ | /* Hook up relationships between operations - to determine evaluation order. */ | ||||
| DEG::DepsgraphRelationBuilder relation_builder(bmain, deg_graph, &builder_cache); | DEG::DepsgraphRelationBuilder relation_builder(bmain, deg_graph, &builder_cache); | ||||
| relation_builder.begin_build(); | relation_builder.begin_build(); | ||||
| relation_builder.build_view_layer(scene, view_layer, DEG::DEG_ID_LINKED_DIRECTLY); | relation_builder.build_view_layer(scene, view_layer, DEG::DEG_ID_LINKED_DIRECTLY); | ||||
| relation_builder.build_copy_on_write_relations(); | relation_builder.build_copy_on_write_relations(); | ||||
| relation_builder.build_driver_relations(); | |||||
| /* Finalize building. */ | /* Finalize building. */ | ||||
| graph_build_finalize_common(deg_graph, bmain); | graph_build_finalize_common(deg_graph, bmain); | ||||
| /* Finish statistics. */ | /* Finish statistics. */ | ||||
| if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | ||||
| printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | ||||
| } | } | ||||
| } | } | ||||
| Show All 17 Lines | void DEG_graph_build_for_render_pipeline(Depsgraph *graph, | ||||
| node_builder.build_scene_render(scene, view_layer); | node_builder.build_scene_render(scene, view_layer); | ||||
| node_builder.end_build(); | node_builder.end_build(); | ||||
| /* Hook up relationships between operations - to determine evaluation | /* Hook up relationships between operations - to determine evaluation | ||||
| * order. */ | * order. */ | ||||
| DEG::DepsgraphRelationBuilder relation_builder(bmain, deg_graph, &builder_cache); | DEG::DepsgraphRelationBuilder relation_builder(bmain, deg_graph, &builder_cache); | ||||
| relation_builder.begin_build(); | relation_builder.begin_build(); | ||||
| relation_builder.build_scene_render(scene, view_layer); | relation_builder.build_scene_render(scene, view_layer); | ||||
| relation_builder.build_copy_on_write_relations(); | relation_builder.build_copy_on_write_relations(); | ||||
| relation_builder.build_driver_relations(); | |||||
| /* Finalize building. */ | /* Finalize building. */ | ||||
| graph_build_finalize_common(deg_graph, bmain); | graph_build_finalize_common(deg_graph, bmain); | ||||
| /* Finish statistics. */ | /* Finish statistics. */ | ||||
| if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | ||||
| printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | ||||
| } | } | ||||
| } | } | ||||
| Show All 17 Lines | void DEG_graph_build_for_compositor_preview( | ||||
| node_builder.end_build(); | node_builder.end_build(); | ||||
| /* Hook up relationships between operations - to determine evaluation | /* Hook up relationships between operations - to determine evaluation | ||||
| * order. */ | * order. */ | ||||
| DEG::DepsgraphRelationBuilder relation_builder(bmain, deg_graph, &builder_cache); | DEG::DepsgraphRelationBuilder relation_builder(bmain, deg_graph, &builder_cache); | ||||
| relation_builder.begin_build(); | relation_builder.begin_build(); | ||||
| relation_builder.build_scene_render(scene, view_layer); | relation_builder.build_scene_render(scene, view_layer); | ||||
| relation_builder.build_nodetree(nodetree); | relation_builder.build_nodetree(nodetree); | ||||
| relation_builder.build_copy_on_write_relations(); | relation_builder.build_copy_on_write_relations(); | ||||
| relation_builder.build_driver_relations(); | |||||
| /* Finalize building. */ | /* Finalize building. */ | ||||
| graph_build_finalize_common(deg_graph, bmain); | graph_build_finalize_common(deg_graph, bmain); | ||||
| /* Finish statistics. */ | /* Finish statistics. */ | ||||
| if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | ||||
| printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | void DEG_graph_build_from_ids(Depsgraph *graph, | ||||
| DEG::DepsgraphFromIDsRelationBuilder relation_builder( | DEG::DepsgraphFromIDsRelationBuilder relation_builder( | ||||
| bmain, deg_graph, &builder_cache, ids, num_ids); | bmain, deg_graph, &builder_cache, ids, num_ids); | ||||
| relation_builder.begin_build(); | relation_builder.begin_build(); | ||||
| relation_builder.build_view_layer(scene, view_layer, DEG::DEG_ID_LINKED_DIRECTLY); | relation_builder.build_view_layer(scene, view_layer, DEG::DEG_ID_LINKED_DIRECTLY); | ||||
| for (int i = 0; i < num_ids; ++i) { | for (int i = 0; i < num_ids; ++i) { | ||||
| relation_builder.build_id(ids[i]); | relation_builder.build_id(ids[i]); | ||||
| } | } | ||||
| relation_builder.build_copy_on_write_relations(); | relation_builder.build_copy_on_write_relations(); | ||||
| relation_builder.build_driver_relations(); | |||||
| /* Finalize building. */ | /* Finalize building. */ | ||||
| graph_build_finalize_common(deg_graph, bmain); | graph_build_finalize_common(deg_graph, bmain); | ||||
| /* Finish statistics. */ | /* Finish statistics. */ | ||||
| if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) { | ||||
| printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | printf("Depsgraph built in %f seconds.\n", PIL_check_seconds_timer() - start_time); | ||||
| } | } | ||||
| } | } | ||||
| Show All 37 Lines | |||||