SynapseWeb / PyReconstruct

GNU General Public License v3.0
8 stars 2 forks source link

async 3D generation support #29

Open AndrewLyon opened 3 weeks ago

AndrewLyon commented 3 weeks ago

Is your feature request related to a problem? Please describe.

When adding an object to a 3D scene, scene generation speed depends on the size of the object generated. Large objects with hundreds of traces takes a while and will cause the program to freeze while the object is rendered.

Describe the solution you'd like

Allowing a different thread and/or multiple threads to generate the 3D object separately from the the thread that is running the majority of the program. This allows for someone to continue working on an object or to simply interact with the rest of the program while a 3D scene is being rendered.

quasiTriestino commented 3 weeks ago

This is a great suggestion -- It will take use a some time to put in, since multiproccessing in Python has to be coordinated with multithreading, which was implemented awhile ago for the 3D scene. We'll need a little bit of time for this.

In the meantime, however, you should be able to continue working in the field in PyReconstruct as the 3D scene is being generated. (In other words, the program should not freeze and doesn't on my end.) Is that not the case?