Blender Git Loki
Git Commits -> Revision 4a2fb38
Revision 4a2fb38 by Sergey Sharybin (compositor-2016) June 8, 2016, 19:45 (GMT) |
Depsgraph: Cleanup and code simplification This is mainly a maintenance commit which was aimed to make work with this module more pleasant and solve such issues as: - Annoyance with looong files, which had craftload in them - Usage of STL for the data structures we've got in BLI - Possible symbol conflicts - Not real clear layout of what is located where So in this commit the following changes are done: - STL is prohibited, it's not really predictable on various compilers, with our BLI algorithms we can predict things much better. There are still few usages of std::vector, but that we'll be solving later once we've got similar thing in BLI. - Simplify foreach loops, avoid using const_iterator all over the place. - New directory layout, which is hopefully easier to follow. - Some files were split, some of them will be split soon. The idea of this is to split huge functions into own files with good documentation and everything. - Removed stuff which was planned for use in the future but was never finished, tested or anything. Let's wipe it out for now, and bring back once we really start using it, so it'll be more clear if it solves our needs. - All the internal routines were moved to DEG namespace to separate them better from rest of blender. Some places now annoyingly using DEG::foo, but that we can olve by moving some utility functions inside of the namespace. While working on this we've found some hotspot in updates flush, so now playback of blenrig is few percent faster (something like 96fps with previous master and around 99-100fps after this change). Not saying it's something final, there is still room for cleanup and API simplification, but those might happen as a regular development now without doing any global changes. |
Commit Details:
Full Hash: 4a2fb381454a63ddc25336b521a128536e038626
Parent Commit: fac6a9e
Committed By: Jeroen Bakker
Lines Changed: +8297, -8517
28 Added Paths:
/source/blender/depsgraph/intern/builder/deg_builder.cc (+125, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder.h (+46, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_cycle.cc (+132, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_cycle.h (+40, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+1261, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.h (+153, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_pchanmap.cc (+140, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_pchanmap.h (+62, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+1964, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_relations.h (+384, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_transitive.cc (+121, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_transitive.h (+40, -0) (View)
/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc (+587, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval.cc (+409, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval.h (+52, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_debug.cc (+247, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_debug.h (+79, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_flush.cc (+211, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_flush.h (+49, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node.cc (+315, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node.h (+227, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_component.cc (+377, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_component.h (+221, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_operation.cc (+97, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_operation.h (+104, -0) (View)
/source/blender/depsgraph/util/deg_util_foreach.h (+68, -0) (View)
/source/blender/depsgraph/util/deg_util_function.h (+109, -0) (View)
/source/blender/depsgraph/util/deg_util_hash.h (+41, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder.h (+46, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_cycle.cc (+132, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_cycle.h (+40, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+1261, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.h (+153, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_pchanmap.cc (+140, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_pchanmap.h (+62, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+1964, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_relations.h (+384, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_transitive.cc (+121, -0) (View)
/source/blender/depsgraph/intern/builder/deg_builder_transitive.h (+40, -0) (View)
/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc (+587, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval.cc (+409, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval.h (+52, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_debug.cc (+247, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_debug.h (+79, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_flush.cc (+211, -0) (View)
/source/blender/depsgraph/intern/eval/deg_eval_flush.h (+49, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node.cc (+315, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node.h (+227, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_component.cc (+377, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_component.h (+221, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_operation.cc (+97, -0) (View)
/source/blender/depsgraph/intern/nodes/deg_node_operation.h (+104, -0) (View)
/source/blender/depsgraph/util/deg_util_foreach.h (+68, -0) (View)
/source/blender/depsgraph/util/deg_util_function.h (+109, -0) (View)
/source/blender/depsgraph/util/deg_util_hash.h (+41, -0) (View)
24 Deleted Paths:
/source/blender/depsgraph/intern/depsgraph_build.h (+0, -417)
/source/blender/depsgraph/intern/depsgraph_build_nodes.cc (+0, -1236)
/source/blender/depsgraph/intern/depsgraph_build_relations.cc (+0, -1954)
/source/blender/depsgraph/intern/depsgraph_debug.h (+0, -87)
/source/blender/depsgraph/intern/depsgraph_queue.cc (+0, -177)
/source/blender/depsgraph/intern/depsgraph_queue.h (+0, -91)
/source/blender/depsgraph/intern/depsnode.cc (+0, -308)
/source/blender/depsgraph/intern/depsnode.h (+0, -248)
/source/blender/depsgraph/intern/depsnode_component.cc (+0, -319)
/source/blender/depsgraph/intern/depsnode_component.h (+0, -209)
/source/blender/depsgraph/intern/depsnode_opcodes.h (+0, -145)
/source/blender/depsgraph/intern/depsnode_operation.cc (+0, -105)
/source/blender/depsgraph/intern/depsnode_operation.h (+0, -93)
/source/blender/depsgraph/util/depsgraph_util_cycle.cc (+0, -140)
/source/blender/depsgraph/util/depsgraph_util_cycle.h (+0, -37)
/source/blender/depsgraph/util/depsgraph_util_foreach.h (+0, -51)
/source/blender/depsgraph/util/depsgraph_util_function.h (+0, -112)
/source/blender/depsgraph/util/depsgraph_util_hash.h (+0, -72)
/source/blender/depsgraph/util/depsgraph_util_map.h (+0, -67)
/source/blender/depsgraph/util/depsgraph_util_pchanmap.cc (+0, -136)
/source/blender/depsgraph/util/depsgraph_util_pchanmap.h (+0, -59)
/source/blender/depsgraph/util/depsgraph_util_set.h (+0, -66)
/source/blender/depsgraph/util/depsgraph_util_transitive.cc (+0, -139)
/source/blender/depsgraph/util/depsgraph_util_transitive.h (+0, -38)
/source/blender/depsgraph/intern/depsgraph_build_nodes.cc (+0, -1236)
/source/blender/depsgraph/intern/depsgraph_build_relations.cc (+0, -1954)
/source/blender/depsgraph/intern/depsgraph_debug.h (+0, -87)
/source/blender/depsgraph/intern/depsgraph_queue.cc (+0, -177)
/source/blender/depsgraph/intern/depsgraph_queue.h (+0, -91)
/source/blender/depsgraph/intern/depsnode.cc (+0, -308)
/source/blender/depsgraph/intern/depsnode.h (+0, -248)
/source/blender/depsgraph/intern/depsnode_component.cc (+0, -319)
/source/blender/depsgraph/intern/depsnode_component.h (+0, -209)
/source/blender/depsgraph/intern/depsnode_opcodes.h (+0, -145)
/source/blender/depsgraph/intern/depsnode_operation.cc (+0, -105)
/source/blender/depsgraph/intern/depsnode_operation.h (+0, -93)
/source/blender/depsgraph/util/depsgraph_util_cycle.cc (+0, -140)
/source/blender/depsgraph/util/depsgraph_util_cycle.h (+0, -37)
/source/blender/depsgraph/util/depsgraph_util_foreach.h (+0, -51)
/source/blender/depsgraph/util/depsgraph_util_function.h (+0, -112)
/source/blender/depsgraph/util/depsgraph_util_hash.h (+0, -72)
/source/blender/depsgraph/util/depsgraph_util_map.h (+0, -67)
/source/blender/depsgraph/util/depsgraph_util_pchanmap.cc (+0, -136)
/source/blender/depsgraph/util/depsgraph_util_pchanmap.h (+0, -59)
/source/blender/depsgraph/util/depsgraph_util_set.h (+0, -66)
/source/blender/depsgraph/util/depsgraph_util_transitive.cc (+0, -139)
/source/blender/depsgraph/util/depsgraph_util_transitive.h (+0, -38)
15 Modified Paths:
/source/blender/depsgraph/CMakeLists.txt (+28, -25) (Diff)
/source/blender/depsgraph/DEG_depsgraph.h (+0, -8) (Diff)
/source/blender/depsgraph/DEG_depsgraph_build.h (+0, -3) (Diff)
/source/blender/depsgraph/DEG_depsgraph_debug.h (+0, -3) (Diff)
/source/blender/depsgraph/DEG_depsgraph_query.h (+1, -142) (Diff)
/source/blender/depsgraph/intern/depsgraph.cc (+66, -48) (Diff)
/source/blender/depsgraph/intern/depsgraph.h (+11, -36) (Diff)
/source/blender/depsgraph/intern/depsgraph_build.cc (+116, -185) (Diff)
/source/blender/depsgraph/intern/depsgraph_debug.cc (+38, -959) (Diff)
/source/blender/depsgraph/intern/depsgraph_eval.cc (+17, -348) (Diff)
/source/blender/depsgraph/intern/depsgraph_intern.h (+24, -71) (Diff)
/source/blender/depsgraph/intern/depsgraph_query.cc (+4, -152) (Diff)
/source/blender/depsgraph/intern/depsgraph_tag.cc (+28, -159) (Diff)
/source/blender/depsgraph/intern/depsgraph_types.h (+207, -45) (Diff)
/source/blender/depsgraph/intern/depsgraph_type_defines.cc (+96, -27) (Diff)
/source/blender/depsgraph/DEG_depsgraph.h (+0, -8) (Diff)
/source/blender/depsgraph/DEG_depsgraph_build.h (+0, -3) (Diff)
/source/blender/depsgraph/DEG_depsgraph_debug.h (+0, -3) (Diff)
/source/blender/depsgraph/DEG_depsgraph_query.h (+1, -142) (Diff)
/source/blender/depsgraph/intern/depsgraph.cc (+66, -48) (Diff)
/source/blender/depsgraph/intern/depsgraph.h (+11, -36) (Diff)
/source/blender/depsgraph/intern/depsgraph_build.cc (+116, -185) (Diff)
/source/blender/depsgraph/intern/depsgraph_debug.cc (+38, -959) (Diff)
/source/blender/depsgraph/intern/depsgraph_eval.cc (+17, -348) (Diff)
/source/blender/depsgraph/intern/depsgraph_intern.h (+24, -71) (Diff)
/source/blender/depsgraph/intern/depsgraph_query.cc (+4, -152) (Diff)
/source/blender/depsgraph/intern/depsgraph_tag.cc (+28, -159) (Diff)
/source/blender/depsgraph/intern/depsgraph_types.h (+207, -45) (Diff)
/source/blender/depsgraph/intern/depsgraph_type_defines.cc (+96, -27) (Diff)