pyluxcore multi-threading

Use this forum for general user support and related questions.
Post Reply
mick
Posts: 60
Joined: Mon May 21, 2018 7:57 pm

pyluxcore multi-threading

Post by mick » Wed Jul 04, 2018 10:11 pm

Is it possible to add meshes and objects to the same scene in parallel threads?

User avatar
Dade
Developer
Posts: 1439
Joined: Mon Dec 04, 2017 8:36 pm

Re: pyluxcore multi-threading

Post by Dade » Thu Jul 05, 2018 7:31 am

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.
Support LuxCoreRender project with salts and bounties

Post Reply