226
DF General Discussion / Re: Took a few years off
« on: November 23, 2018, 05:18:19 am »So I suppose this site would be a help in choosing a CPU for a dwarf fortress player?Hello, I was not really following the development process too closely during the recent say 3 years, can you please tell me:
1) How is the game scaling on modern CPUs? I have Core i5 8600K now, is the game still 32 bit single thread, or was there some effort to rewrite the code?
The faster single-threader, the faster the game. Scaling is almost 1:1 with the clock, and newer processors, which sometimes sacrifice clock speed for faster performance of newer commands (not used by DF at all), or for faster multithreading speed (more cores but slower), can suffer. This can be offset by faster memory controller or not, depends. Bigger cache also gives a boost, and faster memory too. You should have no problems with i5 8600 K at all, because it's one of the fastest single-threaders, unless you have low memory (you cannot really have SLOW memory).
https://www.cpubenchmark.net/singleThread.html
I have an Intel i7-3770K which is at the 2,083 benchmark. Since playing DF44.12 the game has been more stable and runs faster than any version of DF before. Even with a 200+ dwarf fort on a 4x4 embark with a lot of livestock I was staying at 20FPS. It would dip to 12FPS if one of those damnable buzzards spooked my livestock!
Last month I was actually messing around playing a fort in DF40.24 and I had performance issues and occasional crashes.
Yes, single-thread benchmarks are better than comparing clock speed, and the best kind of benchmark approximating performance in DF (apart from one specifically running DF) is single-thread integer tests. For example look at this comparison:
https://cpu.userbenchmark.com/Compare/Intel-Core-i7-3770K-vs-Intel-Core-i7-8700K/1317vs3937
At first 8700 K looks as if it was twice as fast, but scroll down to the Nice to Haves/SC Int (single-core integer speed), and 8700 K has only 23% lead there. Which would mean ~25 FPS over ~20 FPS. Which isn't that much, though of course every bit helps in bigger fortresses and in bigger worlds.
Technically DF also uses some floating point calculations, so you may look at mixed speed single core tests, but most of calculations are integers.
Number of dwarves and animals (plus visitors) is more important than overall size of the embark, but size starts to make difference when you dig deeper, and if you have more trees and such.
One note about the cpubenchmark (the one you quoted), the clocks they give is not the true clocks used in tests, but the ID string used by processor, which is rather base speed. Effective clock when using Turbo mode or similar would be higher. But the score stands.
As for crashing, the current version is better than these v.0.40xx, but still sometimes it can crash. Also sometimes I have issue in x64 version when there is a memory leak and all available memory is eaten (I have 16 GiB, so it's decidedly a leak), though it hasn't happened in the last few months.
However, I agree that ought to be changed.