The Forums Are Now Closed!

The content will remain as a historical reference, thank you.

Multicore Support?

By on December 31, 2008 7:26:43 PM from Demigod Forums Demigod Forums

Is this something that will be added on in newer betas/final game? As of now, it's only using ~50% of my first core, and less than 10% of the 3 other cores.

 

Thanks.

 

+2 Karma | 11 Replies
December 31, 2008 9:33:36 PM from Demigod Forums Demigod Forums

Yes, there is multicore support in Demigod just like Supreme Commander. 

December 31, 2008 10:00:55 PM from Demigod Forums Demigod Forums

Quoting Blitz64,
Yes, there is multicore support in Demigod just like Supreme Commander. 

heh, that doesn't mean much.

January 1, 2009 6:59:04 AM from Demigod Forums Demigod Forums

Then why is it only using 50% of my first core, and less than 10% of the other 3?

January 1, 2009 3:55:41 PM from Demigod Forums Demigod Forums

Core optimization should come later methinks.

January 1, 2009 4:47:06 PM from Demigod Forums Demigod Forums

I wonder once again if LUA has a global interperetor lock???

So far I have not seen multicore support in DG with my 4 cores only pegged to 25% max.

Multicore is important especially for the game host who has their client + server calculations to do, and has 3 spare cores to work with the server stuff.

January 9, 2009 12:10:24 AM from Demigod Forums Demigod Forums

bump, would a stardock employee care to comment please?

January 9, 2009 3:42:55 AM from Stardock Forums Stardock Forums

Bumpity bump bump, Im curious as well. Respond away fearless Stardock Employees!

January 9, 2009 2:10:20 PM from Demigod Forums Demigod Forums

Quoting astonerbum,
I wonder once again if LUA has a global interperetor lock???

So far I have not seen multicore support in DG with my 4 cores only pegged to 25% max.

Multicore is important especially for the game host who has their client + server calculations to do, and has 3 spare cores to work with the server stuff.

 

A GPG dev can correct me if I'm wrong, but I don't believe Demigod is client-server based, just like most RTS games.  The host isn't doing all the calculations and transmitting them to the clients (think of the cheats that could allow!), instead I believe ALL clients are computing data in a strictly peer-to-peer environment, then checking up with all other clients to make sure things are in sync.  That's why you get sync errors, if it was a host pushing data clients I'd think that would be avoided.

 

Anyway, not to detract from the point, which is that multicore support is greatly desired!

January 9, 2009 2:53:08 PM from Demigod Forums Demigod Forums

I believe ALL clients are computing data in a strictly peer-to-peer environment, then checking up with all other clients to make sure things are in sync. That's why you get sync errors, if it was a host pushing data clients I'd think that would be avoided.

This is my understanding as well. 

January 9, 2009 11:46:37 PM from Demigod Forums Demigod Forums

that is true; all computers do the same, and equal, amounts of work. 

January 13, 2009 10:51:24 PM from Demigod Forums Demigod Forums

Proper load-balancing across 4 or more cores is actually not trivial . The fact that the engine is already multi-threaded and thus uses 10% of 3 cores along with 50% of the "main thread" usage is pretty good...They have obviously divided up the workload... While they may do small tweaks here and there, I would HIGHLY doubt that they will do the deep "surgery" required to the engine at this stage to produce significantly better load balancing... Doubt as in, i'd put 10000 dollars on it ...

This is actually one of the reasons that I have never been even slightly tempted to buy hardware with more than 2 cores for my home computer. Generally by going to 4 cores, I take a Mhz hit or a price hit... The only reason I could see for someone needing 4+ cores is if they like to do heavy multitasking on their computer: ie: statistical data analysis in one program while playing a game...or video/mp3 encoding (which is easily load-balanced to properly use many cores).

I've done quite a bit of work related to massively parallel computing (ie: using 128, 256, 512+ cpus at the same time to solve a problem quicker)... and I can tell you that while some problems fit this template VERY well, if you deviate from these "easially paralled" problems even slightly, it becomes a mammoth effort to "spread" the workload along many many cores. This is usually very true in games where the ORDER of the workload matters...So you can't split the work into blocks A, B, C, D very easily if the solution to work-block D depends on what happens in block C, which depends on what happens in block B, etc.

Thus how games achieve the usage of multiple cores tends to be by "splitting" the workload. Say you have all the work being done in one core... Now you rip out the AI workload and put it on a separate thread. You then need to somehow communicate between the two threads for the AI will need the game-state information to do its thing...and the game action-states will need to be modified depending on what the AI decides to do, etc, etc, etc... Very very easy to get mired in the details if it isn't planned very carefully. But its doable and this is why in many games that DO use multiple-cores, one of the things that they use the other cores for is AI. Another could be special effect physics, etc.

One example of this last bit would be in the PS3 how you can use one of its multiple "cores" (exactly why so many people HATE HATE programming for PS3) to make sweat run down the faces of characters playing basketball .

 

Anyway, I better stop my rambling now...Sorry if I got a bit technical, hope it was easy to understand.

 

-Drexion

 

Stardock Forums v1.0.0.0    #108435  walnut2   Server Load Time: 00:00:00.0000219   Page Render Time:

Stardock Magazine | Register | Online Privacy Policy | Terms of Use

Copyright ?? 2012 Stardock Entertainment and Gas Powered Games. Demigod is a trademark of Gas Powered Games. All rights reserved. All other trademarks and copyrights are the properties of their respective owners. Windows, the Windows Vista Start button and Xbox 360 are trademarks of the Microsoft group of companies, and 'Games for Windows' and the Windows Vista Start button logo are used under license from Microsoft. ?? 2012 Advanced Micro Devices, Inc. All rights reserved. AMD, the AMD Arrow logo and combinations thereof are trademarks of Advanced Micro Devices, Inc.