reactphysics3d icon indicating copy to clipboard operation
reactphysics3d copied to clipboard

Are different dworlds threadsafe?

Open ghost opened this issue 2 years ago • 3 comments

Can I use two different dworlds from the same PhysicsCommon on different threads with no mutexing?

ghost avatar Jul 08 '23 06:07 ghost

Multi-threading is not currently supported by the library. I hope to work on that soon.

DanielChappuis avatar Jul 09 '23 13:07 DanielChappuis

Thank you. Could I currently use two PhysicsCommons, on different threads?

ghost avatar Jul 09 '23 14:07 ghost

You can try but there are some static fields in the PhysicsCommon class and you could have issues with that if you instanciate two instances.

DanielChappuis avatar Jul 09 '23 19:07 DanielChappuis