1
DF General Discussion / Dispelling common myths about DF performance and optimization
« on: April 20, 2012, 06:53:21 pm »
I've seen a lot of people still saying that single-core speed is the most important thing in DF performance. Can we start clearing up some of these old myths? They might have been truer back when we were playing 40d16, but our understanding of how DF works, combined with the advent of much more powerful technology, necessitates a discussion on what is fact and fiction in the world of DF optimization.
I'll start off here. Correct me if I'm wrong on anything; this is all coming from my understanding and pooled forum knowledge.
Questions we still have:
I'll start off here. Correct me if I'm wrong on anything; this is all coming from my understanding and pooled forum knowledge.
- Dwarf Fortress does not need multicore support to remain playable. Processor architectures are continually getting better, and while multicore support would lead to a fairly large framerate increase (capped by RAM channels and speed), modern processors can run 5x5 embarks with 200+ dwarves without massive performance decreases.
- The most important thing about your CPU is your processor architecture and benchmarks, not necessarily your clock speed. Clock speed is virtually useless. The only way to compare modern processors is through benchmarking them on the same standard. The architecture is also vital - a 65nm pentium 4 running at 3.8ghz pales before a 32nm i5 clocked at 2.8ghz.
- Reserving a single core for DF in a multi-core processor is NOT always a good idea. Even reserving 2 cores, one for DF and one for graphics, is pointless. Modern operating systems are excellent at shifting a process from one core to another; this is why you'll generally never see DF maxing out a single core - it's being continually shifted from core to core with very high efficiency. This also aids in heat distribution, which prolongs the life of your processor.
- RAM latency is key to playing DF with a high framerate. Dwarf Fortress is unique in this aspect. Memory latency has no effect in most games, but the sheer amount of data processing Dwarf Fortress does means far more RAM operations are made than most games make. Each operation takes more time with slow RAM, and this adds up substantially. As a result, fast ram is vital.
Questions we still have:
- What is the effect of dual/triple channel RAM in a DF machine? I'd imagine a substantial speed increase would result, but I honestly don't know.
- How significant is the speed increase that results from overclocking?
- What sort of cap does ram latency put on DF speed? And when will you start to encounter that cap?
- What architectures are currently the best for DF? And what's a good CPU benchmark for DF?
- What are the most cost-efficient DF-oriented computer builds out there?
- Cats?