Game Development Community

Urgent!] Dual Core CPU's with TGEA

by Mquaker · in Torque Game Engine Advanced · 06/01/2007 (1:52 am) · 5 replies

When we run our game with Dual Core CPU's it only uses one CPU like image A, not both.
What we want to know is how to make them use both CPU's like image B.
We do use Torque - Multi Thread Defines already.
But we can't seem to find the problem why it's only using one side of CPU's.


image A) When we run our game with dual core CPU. It looks like this:

img523.imageshack.us/img523/2135/78238515ji4.jpg


image B) When we run other game with dual core CPU. We want to make it look like this:

img523.imageshack.us/img523/6680/88590514oj8.jpg


If you know anyting about it, please help us find what's problem.

#1
06/01/2007 (3:20 am)
Torque is not multi-threaded. It has a few components that use threads (such as the video player), but the core engine will only run on a single thread.

There is a resource someone posted recently that adds some threading into torque that you might want to check out.
#2
06/01/2007 (4:16 am)
See www.garagegames.com/mg/forums/result.thread.php?qt=61926 for all our experiments with Duncan's code - I ported it over to TGEA, and I posted my results in said thread :)
#3
06/03/2007 (2:19 pm)
Note that Atlas also uses a second thread... which should give you some performance gains.
#4
06/13/2007 (6:58 pm)
Thank you very much for your help.

We are still looking on it!
If anyone else has a good solution.
Please spread out here for everyone.
#5
06/13/2007 (7:21 pm)
There is unfortunately no magic fix that will improve this.

The only solution is to measure where the majority of your performance is going and rewrite that code in a way that spreads that work across other cores.