Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4

Author Topic: How would DF handle a quad-core processor?  (Read 4595 times)

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #15 on: March 28, 2010, 05:36:55 am »

Keep in mind that an AMD 3Ghz processor is slower than an Intel 3Ghz processor, and that a very old 3Ghz processor is slower than the latest 3Ghz processor.  ;)
Actually the AMD and Intel chips are pretty close these days, but AMD just don't make chips that match Intel's very fastest ones. So if you want truly insane performance (by which I mean about 10% more for 10x the price) you buy Intel's top-of-the-range. Anything below that AMD is normally cheaper for the same performance.

Especially with Intel's new chips' ability to run with either one core clocked very high or all cores clocked a little lower, which is very nice for single-threaded things like DF.
Logged
Dwarven blood types are not A, B, AB, O but Ale, Wine, Beer, Rum, Whisky and so forth.
It's not an embark so much as seven dwarves having a simultaneous strange mood and going off to build an artifact fortress that menaces with spikes of awesome and hanging rings of death.

jfs

  • Bay Watcher
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #16 on: March 28, 2010, 06:08:47 am »

Say you have one dwarf hauling rock away from your mines. He has a one-tile wide corridor to run in, and he's completely alone. Even if you make the corridor four tiles wide, he won't move your rock any faster.
However, if you tried using four dwarves to move the rock through a one-tile corridor, it wouldn't four times faster, because they'd jam and have to lie down and stuff all the time. But four dwarves hauling through a four tile wide corridor, that'd be optimal.
Logged

riffraffselbow

  • Bay Watcher
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #17 on: March 28, 2010, 06:30:21 am »

It's 3.4 GHz per core.

I am not condescending, I just haven't been able to get a clear answer anywhere else...Are you absolutely positive this is true?
Indeed, this surprises me as well. I don't know otherwise, though, and I can verify that the rest of that post is accurate.

It's a bit confusing, because a GHz is not like a megabyte - it's a measure of speed not processing power. But each core is clocked at 3.4 GHz, so you have a "total" of 13.6 GHz of "speed." In other words, DF will run just as fast on a single 3.4 GHz machine as it will on a quad 3.4 GHz; because it uses just one core.
This is the theory. However, in practice, there is a finite amount of overhead in multi-threading. Now, this overhead can be very small, or it can be VERY, VERY large. It also depends on whether the actual code is multi-threaded at all; try running something processor intensive but completely unthreaded, and you'll see one core get pounded while the others twiddle their thumbs. Assume you'll get 1.25 cores worth of performance out of the average game on a dual core, and 1.5 cores of performance on a quad.
Logged
"And God saw that the world was too moist, and that none of the Scorpion race could be placed upon it; and so he started over."

Maggarg - Eater of chicke

  • Bay Watcher
  • His Maleficent Magnificence of Nur
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #18 on: March 28, 2010, 06:46:12 am »

I assume it will run faster than on a single core anyway due to everything else going through all the other cores.
Logged
...I keep searching for my family's raw files, for modding them.

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #19 on: March 28, 2010, 07:16:56 am »

I'd never be satisfied with less than 3-3.5x performance from a quad. :P

But the sad fact is, most game programmers are totally incapable when it comes to threading. The tradeoffs are totally different; all those nifty low-level optimizations and cross-class chatter get horribly in the way when threading.

It's fair to say that a program properly built for multiple cores will probably only be slightly faster on two cores as a single-threaded one is on one, since you have to use a much cleaner style. That pays off once you get to four cores and above, though, since it'll scale much better.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

riffraffselbow

  • Bay Watcher
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #20 on: March 28, 2010, 07:58:43 am »

I assume it will run faster than on a single core anyway due to everything else going through all the other cores.
That's not the case. Apart from the rendering, NOTHING CAN "Go through other cores". Toady hasn't implemented threaded design in DF, it doesn't run multi-threaded. Your operating system and other things running on your computer can be offloaded to another core, leaving a core entirely to the whims of DF. But it won't run multi-threaded.
Logged
"And God saw that the world was too moist, and that none of the Scorpion race could be placed upon it; and so he started over."

random51

  • Bay Watcher
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #21 on: March 28, 2010, 08:04:44 am »

I assume it will run faster than on a single core anyway due to everything else going through all the other cores.
That's not the case. Apart from the rendering, NOTHING CAN "Go through other cores". Toady hasn't implemented threaded design in DF, it doesn't run multi-threaded. Your operating system and other things running on your computer can be offloaded to another core, leaving a core entirely to the whims of DF. But it won't run multi-threaded.
I think you missed his point.  By everything else he probably meant Operating System, browser, quickfort, dwarf therapist, utorrent, winamp, dwarf companion, excel, vlc, etc.

Bind DF to its own core while everything else on the system runs on the other cores.

Back to the original post, quad core processors seldom match the individual core speed of their dual core brethren, which makes them less suited for the avid gamer. Somebody looking for the best performance should be looking for the fastest dual core they can afford.

I tried to explain this to gamers jumping on the Q6600 bandwagon, people who were selectively applying the "bigger is always better" mentality to number of cores instead of core clockspeed. They didn't listen. Meanwhile the smart ones bought faster dual core processors for less money, and are still happy with performance while the Q6600 people are already upgrading.
« Last Edit: March 28, 2010, 08:11:23 am by random51 »
Logged

KaelGotDwarves

  • Bay Watcher
  • [CREATURE:FIRE_ELF]
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #22 on: March 28, 2010, 08:11:25 am »

I assume it will run faster than on a single core anyway due to everything else going through all the other cores.
That's not the case. Apart from the rendering, NOTHING CAN "Go through other cores". Toady hasn't implemented threaded design in DF, it doesn't run multi-threaded. Your operating system and other things running on your computer can be offloaded to another core, leaving a core entirely to the whims of DF. But it won't run multi-threaded.

He's talking about the OS and other background services being done by other cores. In that case DF does benefit a bit from having at least a dualcore.

Yeah, with my overclock'd desktop, 4.6 ghz i7 920 version of this:
It was underclocked to 4.0 stable when I took this screenshot.
I can achieve this without an fps cap at embark- unpaused as you can see. Paused it rockets higher.


Course it's absolutely unplayable at that speed, and the fps rubberbands within a couple hundred frames per second. With migrants and digging out the map (the dwarf/item pathfinding is the single biggest drain on DF fps besides liquid flows and caveins), the speed will drop. But I can maintain a large map and 200 dwarves at playable 100ish fps (as long as I cage/cull my animals), which was impossible with my other computers.

The only games I've seen that really benefit from quadcore are valve games which have been optimized for multithreading, anything with lots of AI work like ArmA2, AI War: fleet command, cortex command's physics, games that are horribly optimized for PC and require brute force (GTA4)

As for AMD vs Intel - I don't know if I want to get into this here. hahahaha

I have plenty of both. I suggest you shop around and look for the best in your price range and go with that. There's no point in fanboying over tech because it always changes. On this desktop I went with an i7 920 because of the power to money ratio when overclocked cannot be beat, to the point that the new generation i7s and i5s have been gimped by intel simply because there's no reason to buy the $500+ chips when you can get a $200 chip more powerful than the $1000 EXTREME editions.

Assholes.

Phenom IIs can get you exceptional bang for the buck at cheaper prices, but the i5 isn't bad either. It's just not the old i7.

Intel... WHY WOULD YOU PUT THE DIE THERE AND INTEGRATE THE GODDAMN THING RARGHOASDGNLAESRH GIMP THE OVERCLOCK.

Such a step backwards. They're looking to make their integrated graphics systems destroy nvidia and AMD-ATI while controlling how the consumer uses their product. Price fixing through engineering design :/
« Last Edit: March 28, 2010, 08:21:40 am by KaelGotDwarves »
Logged

Jong

  • Bay Watcher
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #23 on: March 28, 2010, 08:35:45 am »

I've got a i7 920 too but my fort is so monstrous that my FPS has been knocked down to 30.

Its something to do with having 150 z-levels and 10000s of blocks and stuff all over the place.

Jurph

  • Bay Watcher
  • Minister of Belt-fed Weaponry
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #24 on: March 28, 2010, 08:45:12 am »

Oh, it's only the rendering that uses a second thread, but that still means you get ~10% usage from a second core, in addition to the first one.

Baughn, I don't think it gets said often enough: your contributions on the DF rendering thread, especially making the first steps towards MTing DF, make a huge impact on DF.  Thanks again!! 

At the risk of starting a flame war, I'm looking forward to the day that Toady implements temperature, weather, and/or flows in their own thread.
Logged
Dreambrother has my original hammer-shaped Great Hall.  Towerweak has taken the idea to the next level.

teloft

  • Bay Watcher
  • We found the zirilid stream
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #25 on: March 28, 2010, 09:18:03 am »

Oh, it's only the rendering that uses a second thread, but that still means you get ~10% usage from a second core, in addition to the first one.

Baughn, I don't think it gets said often enough: your contributions on the DF rendering thread, especially making the first steps towards MTing DF, make a huge impact on DF.  Thanks again!! 

At the risk of starting a flame war, I'm looking forward to the day that Toady implements temperature, weather, and/or flows in their own thread.

Is there a plan to make it multi-threaded in future?
« Last Edit: March 28, 2010, 09:28:08 am by teloft »
Logged
We found the zirilid stream

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #26 on: March 28, 2010, 09:43:18 am »

Not really. Doing so would be a staggeringly immense undertaking, and there is a lot of low-hanging fruit that would speed things up more anyway, like implementing better algorithms for handling large number of rocks.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

gamegreen33

  • Bay Watcher
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #27 on: March 28, 2010, 12:56:03 pm »

I guess my question is, does anyone know from experience how well the processor I was looking at getting runs a 200-dwarf fortress, frame rate wise?
Logged
Quote from: dogstile
We all know what those elfs are like. they're a couple of guys who are up to no good, making trouble in our neighbourhood. Now you guys got my mum all scared and now i'm moving with my auntie and uncle in bel air!
Quote
imagine fighting someone on the street. You guys are going at it...all of the sudden, he hits you in the face with the tips of 5 fingers. What the fuck is he doing? You're confused, he school boys you, you're going to be lost. Match won.

KaelGotDwarves

  • Bay Watcher
  • [CREATURE:FIRE_ELF]
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #28 on: March 28, 2010, 03:08:37 pm »

You mentioned 3.4 ghz, but what kind of processor?

AMD athlon? Phenom? Phenom II? Intel core2duo? Pentium? i3/5/7?

EDIT: Nevermind I missed the part down the page where you mentioned Phenom II.

It should run 200 dwarves at a playable framerate as long as you don't go crazy with animals or liquids. I suspect somewhere in the 30-50 range highly depending, of course, on embark locations and amount of items. Mature forts are always much slower. In the beginning you'll have no trouble maxing at something high like 200 fps cap. Note I do not own a phenom II, but have worked with them (one of the dozen (seriously) computers in my house has a phenom. They're a fine choice for great performance for the $$$- especially if you buy from newegg.
« Last Edit: March 28, 2010, 03:19:37 pm by KaelGotDwarves »
Logged

bombcar

  • Bay Watcher
    • View Profile
Re: How would DF handle a quad-core processor?
« Reply #29 on: March 28, 2010, 03:17:24 pm »

Note I do not own a phenom II, but have worked with them. They're a fine choice for great performance for the $$$- especially if you buy from Newegg.

Are you saying they're Phenomenal?

/glasses
//yehaaw
Logged
Pages: 1 [2] 3 4