Blender Git Commit Log
Git Commits -> Revision 5727e87
Revision 5727e87 by Sergey Sharybin (master) July 19, 2017, 13:20 (GMT) |
Depsgraph: Use dependency graph flush routines to update particle settings Previously tagging particle settings for update will iterate over all objects and all their particle system to see whether something needs an update or not. Now we put ParticleSettings as an ID to the dependency graph, so tagging it for update will nicely flush updates to all dependent particle systems. Current downside of this is that due to limitation of flush routines it will cause some extra particle system re-evaluation when it technically not needed, and what's more annoying currently it will discard point caches more often. However, this is a good and simple demonstration case to improve tagging/flushing system to accommodate for such cases (similar issues happens with CoW and shading components). So let's try to find some generic solution to the problem! |
Commit Details:
Full Hash: 5727e8706fa5bf847696d4433323c5a96c83dae8
Parent Commit: 2fe5cf4
Lines Changed: +91, -59
9 Modified Paths:
/source/blender/blenkernel/BKE_particle.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+10, -1) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+30, -7) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.h (+2, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+42, -8) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.h (+2, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_tag.cc (+0, -43) (Diff)
/source/blender/depsgraph/intern/depsgraph_types.h (+1, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_type_defines.cc (+1, -0) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+10, -1) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+30, -7) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.h (+2, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+42, -8) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.h (+2, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_tag.cc (+0, -43) (Diff)
/source/blender/depsgraph/intern/depsgraph_types.h (+1, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_type_defines.cc (+1, -0) (Diff)