Is there plans for TGE or TSE to have multi-threads?
by Chris Cain · in Torque Game Engine · 04/21/2005 (8:28 pm) · 4 replies
I think that TGE doesn't have the ability to be multi-threaded at the moment... but I was wondering, when would that come along? If its not going to be done officially, then is there anyone that is currently working on it?
With the arrival of dual, and eventually multi, core CPUs, I think that it'll soon become important to take advantage of the extra processing engines.
With the arrival of dual, and eventually multi, core CPUs, I think that it'll soon become important to take advantage of the extra processing engines.
Torque 3D Owner Michael Day
Hyperthreading/Multiple CPU support
Multithreading
The second link has a hint from Ben that this is something that is on the roadmap (although maybe a long way off). For answers on when/how/etc you'd have to ask him (but don't tell him I told you to bug him!).
If you have a specific need to integrate threads this should not be too difficult. You simply need to ensure that the portions of TGE that interact with other threads are written with this in mind, ie critical sections, etc. I recall seeing reference to someone who integrated database lookups in a seperate thread. Sorry, can't remember exactly where that was.