jlopezbi / ColonyEvolver

generative growth algorithm inspired by plants and corals
5 stars 0 forks source link

Investigate Plotting Speed #28

Closed jlopezbi closed 7 years ago

jlopezbi commented 7 years ago

Seems like mayavi a little slow to render. Probably has something to do with how I am using plotting commands

jlopezbi commented 7 years ago

trying to use cProfile but can't seem to sort results based on average time per call for either internal time or cumulative time. Seems critical

jlopezbi commented 7 years ago

OK so as expected most of time is from node.show() But it is unclear if this is significantly less effective because it is using an element by element approach as opposed to a 'collect all the info and then through it at the points3d and plot3d functions." The only way to really know is to save the same plant object, then run it with the two different approaches. For now this is not worth my time; a little wait to see the thing is no biggie

jlopezbi commented 7 years ago

This is the stuff: http://docs.enthought.com/mayavi/mayavi/auto/example_plotting_many_lines.html According to this I AM doing it the slow way!

jlopezbi commented 7 years ago

Ok found that this solution works: http://docs.enthought.com/mayavi/mayavi/auto/example_flight_graph.html#example-flight-graph This is fast!