Author Topic: systems with dual cpu/cores  (Read 2936 times)

0 Members and 1 Guest are viewing this topic.

Offline Pilot Of The US

  • 28
  • aka Blue Thunder
    • RNI Shipyards
systems with dual cpu/cores
I was wondering, does the SCP version of freespace 2 use both cpu's or "cores" (in the newest cpu's, i beleive) when run on a system that has them?

If it doesnt, what magnitude of work will the code require for this to be possible?
« Last Edit: September 29, 2005, 12:49:27 am by 1659 »

 
systems with dual cpu/cores
I'd be fundamentally astounded if the answer isn't No and More then will ever happen.

On the bright side, if you've got an nV 7800 series with that dual core, the latest drivers might help out some.

 

Offline Grey Wolf

systems with dual cpu/cores
Well, you can run an antivirus program, Folding@Home, or SETI@Home in the background :D
You see things; and you say "Why?" But I dream things that never were; and I say "Why not?" -George Bernard Shaw

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
systems with dual cpu/cores
I'm sure FS2 will support this someday, but right now all these Dualcore CPUs are fast enough for FS2_open with all features enabled anyway.
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
systems with dual cpu/cores
You can always make sure that FS2 is the only task running on one of the CPUs though :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Pilot Of The US

  • 28
  • aka Blue Thunder
    • RNI Shipyards
systems with dual cpu/cores
I just wanted to know, because this may really be something that may be undertaken one day....

muahahaha fso on a dual cpu pentium 3!!!

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
systems with dual cpu/cores
I kinda doubt that it will be supported any more than it is right now (some sound and input/output is multithreaded) since most of the game code just can't be made to be multithreaded safely without a ton of work, if it can be at all.  Most of the big CPU hogs in the code will likely not be able to go multithreaded and speed gains from the smaller stuff probably won't be worth the effort.

Time is better spent on just optimizing the code more and making better use of high performance GPU features.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
systems with dual cpu/cores
chaneing a large program from single threaded to multithreaded is slightly more involved than changeing a single hull oil tancker into a catamaran design. it's a bit harder than MULTITHREADED = true;
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 
systems with dual cpu/cores
My X2 4400+ (at stock speeds its essentially a 3800+) in singlethreaded mode is more than sufficient to run FSO with all the CPU intensive features turned on. Multithreadedness (if thats even a word) is therefore not necessary at the moment. Sure it would be nice though......

 

Offline Sticks

  • 29
systems with dual cpu/cores
Unless a program is designed from the ground up multithreaded, it's quite difficult to accomodate the structural changes required to make it that way.

And that's an understatement.
"Napalm is good as a quickfire solution, literally..." -- cngn

"Shh... [Kazan's] schizophrenia allows him to multitask." -- Goober5000

Why am I still coding at 12:35am?

SCP: Templum sanctus ingeniosus

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
systems with dual cpu/cores
FSO doesn't seem to be very CPU dependant anyway, so I doubt there would be significant gains even if it was possible to make everything multithreaded.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
systems with dual cpu/cores
I will admit I have consitered useing multi-threading for future effects, I think the when ever I implement shadows I may try a multi-threaded queue, every time a ship changes orientation enough it would get added to the queue and it's siloete would get recalculated.
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Pilot Of The US

  • 28
  • aka Blue Thunder
    • RNI Shipyards
systems with dual cpu/cores
That's was I was going to suggest next. Any new features that are added, should be made multi-threaded in the first place. Even if it doesnt seem to give much of a performance gain, it won't (i hope) effect the playability.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
systems with dual cpu/cores
Multithreading is less efficient on systems that don't support it natively.
-C

 

Offline Pilot Of The US

  • 28
  • aka Blue Thunder
    • RNI Shipyards
systems with dual cpu/cores
dammn, really? How much less efficent? would anybody really notice?

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
systems with dual cpu/cores
EG say you have two threads going, each reading from a different place in memory. The processor has to take the time to switch between tasks, including different memory or hard drive positions if the thread needs info from both. Kind of like trying to alternate between solving math problems and reading every 30 seconds or so, as opposed to just doing math and then doing the reading.

I imagine there are algorithms in place to try and switch at the most efficient spots possible, but it's just not going to be as efficient as solving tasks one by one in order.

With a dual core or CPU, the processor can assign a thread to each of the processors/cores and have them work on each separately. Using the earlier example, it's like if you had a twin who did the math while you did the reading.
-C

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
systems with dual cpu/cores
Quote
Originally posted by Pilot Of The US
dammn, really? How much less efficent? would anybody really notice?


You say that like it would actually be possible/productive to put in to FS2.  It isn't without a complete overhaul of, well, everything.  And even then the benefit you'll get from it wouldn't be worth the extra overhead to most users.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
systems with dual cpu/cores
Yeah, fs2_open is optimized for single-thread running. Meaning, in a lot of places pointers to memory locations are used instead of indexes. So, say ship 43 is destroyed by a piece of shrapnel; the memory with ship data is freed. But the rendering thread is still going with a pointer to the ship, and tries to access a piece of data about the ship, and crashes the program from an access violation error.

You'd probably have to go through all the major functions and either insert checks and such to make sure that things were finished by the other thread(s), and probably straight out rewrite a number of them.
-C

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
systems with dual cpu/cores
you have that problem no matter how you access the memory

/me done lots of multithreading
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
systems with dual cpu/cores
AFAIK there are some consumer multiprocessor/dual core boards out there that have separate CPU cache for each processor.

But I might've just been having a really geeky wet dream. :p
-C