Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: DF working on more processor cores at once?  (Read 507 times)

Ebergar

  • Bay Watcher
    • View Profile
DF working on more processor cores at once?
« on: July 04, 2012, 02:55:45 am »

As the topic says...

Is this possible? My friend and I are complaining that DF works only on one processor core at once. Is there an utillity to set more cores on Dwarf?

Thanks.
Logged

peregarrett

  • Bay Watcher
  • Гномовержец Enjoyed throwing someone recently
    • View Profile
Re: DF working on more processor cores at once?
« Reply #1 on: July 04, 2012, 06:21:36 am »

No, it's not possible, till Toady rewrites whole DF from scratch to support multithreading.
Logged
Did you know that the Russian word for "sock" is "no sock"?
I just saw a guy with two broken legs push a minecart with a corpse in it. Yeah.

zilpin

  • Bay Watcher
  • 437 forever!
    • View Profile
Re: DF working on more processor cores at once?
« Reply #2 on: July 04, 2012, 10:57:53 am »

This has been covered many times on the forums.  Use the search for more information.

Nearly every program you run on your computer, especially games, only use one core.
Making a program truly multi-threaded is a non-trivial task, and leads to difficult bugs, especially in languages like C/C++.

That said, keeping SDL rendering and user input in a separate thread is (last I heard) already implemented, and those are the most important.

Moving pathfinding, or AI, to a separate thread may be possible, but Toady only has 24 hours in each day.  It's a matter of return on investment of time, and converting a program from single to multi is tedious.


More Features
Better Stability
Shorter Time
  Pick two.
Logged