Blender Git Loki
Git Commits -> Revision 84a4f2a
Revision 84a4f2a by Hans Goudey (master) March 8, 2021, 17:45 (GMT) |
Geometry Nodes: Improve performance of point distribute node This commit refactors the point distribute node to skip realizing the instances created by the point instance node or the collection and object info nodes. Realizing instances is not necessary here because it copies all the mesh data and and interpolates all attributes from the instances when this operation does not need to modify the input geometry at all. In the tree leaves test file this patch improves the performance of the node by about 14%. That's not very much, the gain is likely larger for more complicated input instances with more attributes (especially attributes on different domains, where interpolation would be necessary to join all of the instances). Another possible performance improvement would be to parallelize the code in this node where possible. The point distribution code unfortunately gets quite a bit more complicated because it has to handle the complexity of having many inputs instead of just one. Note that this commit changes the randomness of the distribution in some cases, as if the seed input had changed. Differential Revision: https://developer.blender.org/D10596 |
Commit Details:
Full Hash: 84a4f2ae68d40830111ae41b25d76b165e37d611
Parent Commit: fc0de69
Lines Changed: +391, -166