Page 1 of 1

pyluxcore multi-threading

Posted: Wed Jul 04, 2018 10:11 pm
by mick
Is it possible to add meshes and objects to the same scene in parallel threads?

Re: pyluxcore multi-threading

Posted: Thu Jul 05, 2018 7:31 am
by Dade
mick wrote: Wed Jul 04, 2018 10:11 pm Is it possible to add meshes and objects to the same scene in parallel threads?
Nope. The Scene object is not thread safe however you can use a Python lock (https://docs.python.org/3/library/threa ... ck-objects) to protect the operation. Python has also "fake" support for threads so adding more mesh in parallel may not lead to the speedup you may expect.