Author Topic: Take advantage of Dual Core PC's  (Read 1229 times)

Davigetto

  • Traveller
  • *
  • Posts: 34
    • View Profile
    • The FIBer Talks
Take advantage of Dual Core PC's
« on: April 07, 2009, 07:04:41 pm »
Hello,

I am playing a compiled-by-me version of Planeshift on a Intel Dual Core (using the -j3 option everytime I make or jam). When I play, I have noticed that only 1 of the processors is being used (only 1 of them keeps working while playing).

Several games like World of Warcraft take advantage of Dual Core, using the both of them for playing with a considerable higher performance. I wonder if there is any way in planeshift to play using both cores. I am sure that it will increase a lot the performance.

Thanks and greetings.
Only deaths can see the end of battles

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: Take advantage of Dual Core PC's
« Reply #1 on: April 07, 2009, 07:44:56 pm »
The next release with take advantage of multiple-cores for stuff like background loading. :)

Davigetto

  • Traveller
  • *
  • Posts: 34
    • View Profile
    • The FIBer Talks
Re: Take advantage of Dual Core PC's
« Reply #2 on: April 07, 2009, 07:59:21 pm »
The next release with take advantage of multiple-cores for stuff like background loading. :)

Thanks for the fast reply :D
Only deaths can see the end of battles

Vonor

  • Hydlaa Resident
  • *
  • Posts: 132
  • Languages: English / German
    • View Profile
Re: Take advantage of Dual Core PC's
« Reply #3 on: April 09, 2009, 10:34:30 am »
also the -j switch for make and jam takes only advantage of multi cores / multi cpus at compile time. not at run time. in other words, the higher the -j is set the more source files will be build parallel. a good number for -j is number of cores/cpus + 1, but you can even do more.

If you only provide -j it will automatically take as much processes as possible.
If the number is too high it will slow down compiling again.

On my gentoo box I figured -j7 is a good choice for everything, but best is you try it out yourself. compile something with "time make -j#" and increase # every time, don't forget to make clean before :)
Quote from: Mordraugion
Quote from: zanzibar
::|  What just happened?

you got Caarried

enderandrew

  • Hydlaa Resident
  • *
  • Posts: 166
    • View Profile
    • Caamasi Disciples
Re: Take advantage of Dual Core PC's
« Reply #4 on: April 09, 2009, 08:37:35 pm »
I hope compilers are more intelligent in the future in automatically producing binaries that are more multi-process and multi-thread aware.  Right now the onus is certainly on the coder.
http://caamasi-disciples.com - A SW:TOR Republic guild focused on casual players who want to play "the Good Guy."