DuoCore

DuoCore

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Frans
Posts: 22
Joined: 25 Aug 2007, 07:12

DuoCore

Post by Frans »

ok, i'm not sure weather or not this is changed or not,
but does spring work well on a multi-cpu/core systems now?
i remember a while back, i once brought up taskmanager in windows,
and it showed that spring was using all the power from one cpu, and not the other.
but i'd like to know if this is changed(can't really check, since alt-tabbing out of a game freezes it for me), because having this fixed/supported could help many people with those duo, and even those brand new shiny quad cores.

also, if i go, and configure my vista to force spring to use only one core,
it does run about 2-10 FPS faster O_O.

but anyways, if spring still doesn't support multi cores/cpus, it would be better to put this on the development todo list :D
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Spring works on multicore systems. Sometimes it might take a bit of setup.

Spring however, doesn't really use the power multicore systems bring to the equation, it's kind of stuck using one core.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

I'm pretty sure AIs work on a second core. Otherwise it's wasted.

PS ithe text box showed up as invisible so this might be wrong
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

AI do indeed not work on the other core as far as I know.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

OTAI and NTai use separate threads for the build algorithm.

Otherwise all AIs run inside the main spring thread.

Alongside this thread is the server thread which doesn't do very much so its unlikely to ever register as anything higher than 0.25% on the other cpu.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Is there no way to get multi-core support for spring?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

no

(well, you might be able to put e.g. synced simulation in a different thread from unsynced simulation and rendering and input processing etc, but that's a lot of work, so good luck with that :-))

it will never scale properly over any number of cores though
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I guess unsynced code could make use of worker threads..

It might be a little much work todo though........
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

So if other programs and games can, why can't spring?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Because spring was not designed to use multiple cores, while other games were.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Ah right so you actually have to implement it right at the start if you wish to use it? Well shouldn't be too much of a problem when they bring out more-core processors, the single cores are usually beefed up too.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

Atleast you're dumping Windows and your AV stuff, etc on the other core.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Well i am actually on Linux and don't have a multi-core anyway, i was just curios :)
User avatar
iamacup
Posts: 987
Joined: 26 Jun 2006, 20:43

Post by iamacup »

lets not piss about with the huge ammount of time and effort it will take to make spring multi-core supported and concentrate on stuff that actually needs doing :P
Frans
Posts: 22
Joined: 25 Aug 2007, 07:12

Post by Frans »

also... lets say that someday spring does infact take the step of using multi cores... will that mean that it would also use multi core gpu's?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

No, it is up to the writers of the OGL ICD's
themselves (Nvidia, ATI) to take advantage
of multi-core GPU's.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

No because then you fall into the trap of turning off multi threaded optimizations in the nvidia control panel or vice versa for whatever ATI calls it.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

iamacup wrote:lets not piss about with the huge ammount of time and effort it will take to make spring multi-core supported and concentrate on stuff that actually needs doing :P
+1 Fix problem on 8 series GPUs plx.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Yeah, I ... uh want ... my water pretty as well!
Last edited by rattle on 27 Sep 2007, 12:50, edited 1 time in total.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Multicore, one more advantage of the OSRTS project.
Post Reply

Return to “Engine”