Thread-safe or not

Everything related to the code /
Tout ce qui touche au code
Post Reply
milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Thread-safe or not

Post by milipili » Tue Jul 01, 2008 2:17 pm

Is there someone who know what part of the code is (or should be) thread-safe and/or could be executed in another thread ? (at this stage of dev)
(except for all 3D operations which must remain in the main thread)
Damien Gerard
Ta3d & Yuni Developer

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Tue Jul 01, 2008 3:37 pm

normally, every piece of the engine should be able to run in its own thread. But running small tasks in individual threads when they access the same data will slow things down.

PS: the explosion particle simulator runs in main thread but it can run elsewhere and doesn't need to run at full speed.
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests