View Issue Details

IDProjectCategoryView StatusLast Update
0005384Dwarf FortressDwarf Mode -- Idle Behaviorpublic2012-02-22 12:49
ReporterSolra Bizna Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version0.34.02 
Summary0005384: Widespread starvation causes lag from dwarves searching for food too often
DescriptionWhen a dwarf is very hungry ("Starving?") he/she will try to find food every time he/she gets a move. With an extended famine in a large fort, this causes a substantial drop in tickrate.
Steps To Reproduce1. Get a large population.
2. Stop making food.
3. Wait.
Additional InformationFamine is something that happens rarely, and is a very serious event on its own. Avoiding famine--a popular policy--avoids this problem. This problem disappears instantly when the dwarves are fed.

This problem could be fixed by making starving dwarves search for food less often, but that would also make them less responsive to a restoration of the food supply, and therefore more likely to starve before reaching food. Most people (myself included) would rather watch their dwarves weather the famine than watch them die, regardless of tickrate.

Honestly, if this bug gets CLOSED'd and WONTFIX'd, I won't even blink. I'm only filing it in the first place because I'm utterly insane.
TagsNo tags attached.

Activities

Kogut

2012-02-22 00:44

reporter   ~0020436

related to 0001937 (Animal Hauler Caught in Loop When Hauling Out of Burrow - action retrie too often, but due to burrows)

Granite26

2012-02-22 06:09

reporter   ~0020444

This one could potentially be fixed by searching for food at all before trying to path to it, or some other form of not every dwarf needs to search the map for food before the engine realizes there is none on a given turn.

Since the pathfinding engine already supports connectivity zones, it should be able to track if a dwarf in this zone has failed to find food this turn.

Might lead to issues with burrows, though

user6

2012-02-22 06:24

  ~0020449

Does "try to find food" mean normal food or the "Hunt for small creature" job?

Solra Bizna

2012-02-22 12:11

reporter   ~0020477

Normal food. The "hunt for small creature" job is also pathfinding intensive, but they only try to get a new path every few moves instead of every move. (I did notice that every single dwarf in my fort with that job would attempt to hunt the same individual vermin, though. Watching 80+ dwarves scramble over each other to catch one fly was a little sad. I'd file a separate bug for that if I had more data.)

Add Note

Note

Issue History

Date Modified Username Field Change
2012-02-21 20:22 Solra Bizna New Issue
2012-02-22 00:44 Kogut Note Added: 0020436
2012-02-22 06:09 Granite26 Note Added: 0020444
2012-02-22 06:23 user6 Summary Famine causes lag => Widespread starvation causes lag from dwarves searching for food too often
2012-02-22 06:24 user6 Note Added: 0020449
2012-02-22 06:25 user6 Tag Attached: AWAITING UPDATE
2012-02-22 12:11 Solra Bizna Note Added: 0020477
2012-02-22 12:49 user6 Tag Detached: AWAITING UPDATE