pspdudeOPLinux•

I think this might be about the best thing to come about out of my occasional use of Twitter. Thanks to Ian Cutress pointing this out to me on Twitter and Gamers Nexus for pinging him in the thread.

5
borandi•

Ian Cutress here.

I started benchmarking DF earlier this year as part of my CPUOverload project, to test every CPU since 2010. In that article, on page 8 (simulation), it outlines the DF tests I run:

Dwarf Fortress 0.44.12: Link

Another long standing request for our benchmark suite has been Dwarf Fortress, a popular management/roguelike indie video game, first launched in 2006 and still being regularly updated today, aiming for a Steam launch sometime in the future.

Emulating the ASCII interfaces of old, this title is a rather complex beast, which can generate environments subject to millennia of rule, famous faces, peasants, and key historical figures and events. The further you get into the game, depending on the size of the world, the slower it becomes as it has to simulate more famous people, more world events, and the natural way that humanoid creatures take over an environment. Like some kind of virus.

For our test we’re using DFMark. DFMark is a benchmark built by vorsgren on the Bay12Forums that gives two different modes built on DFHack: world generation and embark. These tests can be configured, but range anywhere from 3 minutes to several hours. After analyzing the test, we ended up going for three different world generation sizes:

  • Small, a 65x65 world with 250 years, 10 civilizations and 4 megabeasts
  • Medium, a 127x127 world with 550 years, 10 civilizations and 4 megabeasts
  • Large, a 257x257 world with 550 years, 40 civilizations and 10 megabeasts

I looked into the embark mode, but came to the conclusion that due to the way people played embark, to get something close to a real world data would require several hours’ worth of embark tests per CPU. This would be functionally prohibitive to the bench suite, and so I decided to focus on world generation.

DFMark outputs the time to run any given test, so this is what we use for the output. We loop the small test for as many times possible in 10 minutes, the medium test for as many times in 30 minutes, and the large test for as many times in an hour. Results are then taken as the average time to complete.

It's worth noting that I don't actually play the game myself (I really don't have the time), but based on the requests coming in I put a day aside to find out what the fuss is about and write a wrapper over DFMark to roll this into my automated benchmark suite. As we test more CPUs, new and old, the benchmark database numbers will be filled out a bit more.

4
pspdudeOPLinux•

I was wondering if you where using DFMark as the project has been going on for a while now. I might have to use it to see if the old adage about RAM speed effecting performance still holds which would be easy to test to some extent on my machine as I could simply compare between XMP being on and off.

But so far your results have lined up with what I expected from casual observation of playing the game on an off and on basis for years. That is clock speed tends to be one of the heaviest influences on time spent on world gen. Which given what I know about world gen makes sense as while it's complex a lot of the math going on is relatively simple and the complexity comes from how all the simple systems interact with each other.

This kind of data will be helpful for a lot of us that do actually play DF as from what I've seen worldgen speed does give some clues on how later game forts will behave given the fact that Dwarf Fortress basically uses only two threads on for rendering and another for the core logic. I do not envy Tarn if he ever tries to get multi threading going as it's going to be a pain.

OS. I suck at Reddit formatting even after years of being on the site so sorry if this is a bit hard to read. But glad to see DF used as a benchmark as this will also be handy for some of the new players that will be coming in once the Steam release is out.

2
InitialLingonberry•

Fascinating. Looks like from that the answer is "fastest Intel core you can find, core count doesn't matter". I'm surprised the Ryzen's didn't do better.

3

Intel has rules the roost on single threaded serial workloads. Generally bigger caches probably don't hurt. I think AMD's focus has been on multi-threaded as well as that is long term where everything is headed at least in high end computing/gaming.

I don't know enough about the engineering but my guess is Intel have some tricks/IP in their engineering or production process that let them eek out just that little bit extra when the rubber meets the road.

5
pspdudeOPLinux•

Yeah I was not surprised by the fact higher core clocks mattered as much as it did. What I've been curious about is Dwarf Fortress as sensitive to cache timing and RAM timings and latency as it used ot be a few years ago when I last looked into it.

1
surloc_dalnor•

I seem to remember running oprofile on the Linux version years ago and it does a lot fetching things from memory. My analysis was that single core perf, and memory speed are the only thing that matters. Of course you also want about 6 cores. (1 DF, 1 the OS, 2 browser, and a couple to spare.)

1
pspdudeOPLinux•

Yeah I did some private testing years ago during the DDR3 era when I had a bunch of extra RAM around at various speeds and I noticed performance differences between RAM speed and latencies on the same CPU. But RAM being a place where parts of the code can bottle neck makes sense given how DF is designed.

2
XANi_•

Factorio have very similar usage profile, IIRC developers outright said that multicoring (game have some but not that much) wouldn't really bring much benefits as they are mostly bottlenecked by memory bandwidth/latency, not at the fact that game is using only single core

1
[deleted]•

[deleted]

1
Twisted_-_Logic•

Awesome !

1
surloc_dalnor•

This is depressing. I was going upgrade my system, but I need a lot of cores for other uses.

1
XANi_•

Sadly just the worldgen, not say "a huge fortress overwhelmed by cats

1