pyluxcore multi-threading

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
mick
Posts: 80
Joined: Mon May 21, 2018 7:57 pm

pyluxcore multi-threading

Post by mick »

Is it possible to add meshes and objects to the same scene in parallel threads?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: pyluxcore multi-threading

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