Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Dwarf Fortress CPU Usage  (Read 1585 times)

William

  • Bay Watcher
    • View Profile
Dwarf Fortress CPU Usage
« on: March 07, 2008, 08:32:00 pm »

Since, at the later stages of DF, at least in Fortress mode the game runs at 10 FPS at a very high CPU rate, what is the breakdown, on average, of what is being computed? Is it path finding, AI, environmental variables? I'm just wondering.
Logged

Jifodus

  • Bay Watcher
  • Resident Lurker
    • View Profile
    • Dwarf Fortress Projects
Re: Dwarf Fortress CPU Usage
« Reply #1 on: March 07, 2008, 09:31:00 pm »

If you mean why does a 10+ year old fort have a substantial frame rate slow down? Pathfinding is part of it, but I believe it's mostly the result of massive quantities of items.
Logged

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: Dwarf Fortress CPU Usage
« Reply #2 on: March 08, 2008, 06:27:00 am »

Pathfinding, weather and temperature are the main reasons.
Special terrain features, like rivers and magma, also eat CPU.
Items don't matter too much.

[ March 08, 2008: Message edited by: martinuzz ]

Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

Ravendas

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress CPU Usage
« Reply #3 on: March 08, 2008, 09:24:00 am »

quote:
Originally posted by martinuzz:
<STRONG>Pathfinding, weather and temperature are the main reasons.
Special terrain features, like rivers and magma, also eat CPU.
Items don't matter too much.

[ March 08, 2008: Message edited by: martinuzz ]</STRONG>


In the old 2d version, old forts that didn't regularly clean up their goblin refuse tended to start to lag hard. Keeping track of the items does lower your fps, so make sure to keep a tidy fort.

Logged

sorbius

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress CPU Usage
« Reply #4 on: March 08, 2008, 10:49:00 am »

Z levels can effect frame rate too.  that is having a lot of thing happening on alot of different z levels.  major rivers lag my pretty bad because of all the fish several z levels lower then me.  same with chasms, with all the critters doing stuff on different z levels it can slow down the game.
Logged
keepin' it real for atleast the last 5 minutes.

Block_Stacker

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress CPU Usage
« Reply #5 on: March 12, 2008, 12:51:00 pm »

How much do massive stone stockpile affect performance? should I be dumping excess stone?  People talk about using catapults, but I never have enough catapults to really make a dent.
Logged

Skyrage

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress CPU Usage
« Reply #6 on: March 12, 2008, 08:00:00 pm »

Shouldn't items etc affect memory rather than CPU power? I mean, if items are just lying around idle, then there should be no need for the CPU to do extra work until the items are actually needed and used.
Logged

Idles

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress CPU Usage
« Reply #7 on: March 13, 2008, 08:50:00 am »

From doing some coding work on my own 2D game, it seems very likely that items require some processing power, although perhaps intermittently, even when they aren't actively in use.  For example, some part of the dwarven AI might have to "examine" its surroundings, and that check might require a quick browse through nearby items.
Logged

Greiger

  • Bay Watcher
  • Reptilian Illuminati member. Keep it secret.
    • View Profile
Re: Dwarf Fortress CPU Usage
« Reply #8 on: March 13, 2008, 12:08:00 pm »

I think I heard that the items sometimes send out job calls or somesuch to see if anything is trying to use it.

I may be wrong though.

Logged
Disclaimer: Not responsible for dwarven deaths from the use or misuse of this post.
Quote
I don't need friends!! I've got knives!!!