Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do you devote a core to DF?  (Read 624 times)

derekiv

  • Bay Watcher
  • The smile.
    • View Profile
How do you devote a core to DF?
« on: April 15, 2010, 12:06:57 pm »

I have a dual core computer and would like to now how I would set DF to use one core and use the other core for everything else.
I run Vista, Intel Core Two Duo CPU P8600 @ 2.4 GHz.
Logged

gtmattz

  • Bay Watcher
  • [PREFSTRING:BEARD]
    • View Profile
Re: How do you devote a core to DF?
« Reply #1 on: April 15, 2010, 12:08:37 pm »

open the task manager and in the process list right click dwarf fortress and set affinity to one core, and then do the same to all the other processes and set their affinity to the other core.
Logged
Quote from: Hyndis
Just try it! Its not like you die IRL if Urist McMiner falls into magma.

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: How do you devote a core to DF?
« Reply #2 on: April 15, 2010, 12:20:32 pm »

It's not worth it though, you wont' gain any* performance.
*theoretically you could gain a few nanoseconds of execution time, or around 0.000001%

Officially, forcing affinity is for restricting the number of simultaneous threads misbehaving applications get. e.g. an old app may use multiple threads to have several processes "in flight" at any one time, but uses resources that aren't multi-thread-safe, so crashes when its threads are actually run in parallel instead of time-sliced.
« Last Edit: April 15, 2010, 12:23:18 pm by Thief^ »
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.

derekiv

  • Bay Watcher
  • The smile.
    • View Profile
Re: How do you devote a core to DF?
« Reply #3 on: April 15, 2010, 12:23:16 pm »

Thanks for the fast replies. ;)
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: How do you devote a core to DF?
« Reply #4 on: April 15, 2010, 12:27:11 pm »

The d# branch, which is currently being merged, is even somewhat multithreaded. It'll reduce performance in the not-too-distant future.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?