Pyroevil / Blender-Molecular-Script

This is my molecular python script for blender. A bit similar to Lagoa Multiphysic in Softimage.
http://blenderartists.org/forum/showthread.php?233643-SCRIPT-Moleculars-physics
107 stars 73 forks source link

Replace KD-Tree with Octree #18

Open OmidGhotbi opened 6 months ago

OmidGhotbi commented 6 months ago

Hi bro, i heard that you wanted to replace KD-Tree with Octree. Long story short, i managed to write the Octree version last night to test it: image

the results are more or less the same, it can crash on breaking point (sometimes works fine no issue) that i need to investigate what is wrong with it but i in the matter of performance I did not gain so much speed from it.

Octree image I think the actual bottleneck is Blender and the connection between Python itself. every time we have this connection all processes should respect the GIL lock and we depend on particles and collision in the blender so I imagine with every update how much performance we could lose. One thing that I noticed with Octree we need almost 3 times more memory. i hope that helps. i think i do not know how to use the debugging symbols in Blender it gives me nothing, absolutely nothing. can you help me with that?