Game Development Community

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.

#1
04/21/2005 (9:52 pm)
This topic has been raised a number of times. Here are some links to other discussions on the subject:

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.
#2
04/22/2005 (2:48 pm)
Thank you for your response. I was just hoping that eventually it'll have multi-threadability. It seems like they are eventually planning on implementing it.
#3
04/22/2005 (3:14 pm)
Yeah.
#4
04/24/2005 (5:55 pm)
Prob'y.