Multithreading Newton

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Multithreading Newton

Postby pHySiQuE » Wed Jun 14, 2017 7:38 pm

I have a theoretical question about multithreading and Newton. This is a design I am considering in Leadwerks 5:
Image

Is it possible to perform raycasts and other commands in the game logic loop while NewtonUpdate() is running concurrently on a separate thread?
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Multithreading Newton

Postby Julio Jerez » Wed Jun 14, 2017 7:47 pm

yes all collision function are reentrant, you can call the from any where even from a newton update.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Multithreading Newton

Postby pHySiQuE » Wed Jun 14, 2017 7:53 pm

Cool. I think this will work then.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 12 guests