Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0003869Dwarf FortressPathfindingpublic2011-01-05 03:572020-02-17 16:27
Kipi 
Footkerchief 
normalmajorhave not tried
assignedreopened 
Windows7
0.31.18 
0.40.10 
0003869: Drop in FPS when moody dwarf can't path to workshop
I had a group of immigrants arriving, but they decide to appear to the map in location which has no access to the fortress due stream running between them and the entrance. One immigrant got moody soon after that, and I ordered the correct workshop to be built while waiting the bridge to get ready for migrants to get over the stream. At this point everything was normal, FPS was somewhere between 250 and 300, it's still young fortress after all.

Now, immediately after the workshop was ready the FPS dropped to between 30 and 40. The FPS stayed at those numbers to the point when the bridge was finally ready, and then it got straight back to the 300.

So, my conclusion is, if you have moody dwarf, and there is correct workshop but the dwarf can not reach it due block or something (in my case stream), the pathfinding goes wonky and the FPS gets major hit.
Haven't tested this out yet but the steps could be the following:

1) Get moody dwarf
2) Block the path to the correct workshop with something (don't know if it must be land feature or if anything goes)
3) See the sudden drop of FPS
No tags attached.
related to 0002945new  Animal trainer selects animal behind pet-impassable door, waits forever for animal to arrive at kennel 
has duplicate 0004153resolved Footkerchief Trapped Moody Dwarf slows game 
has duplicate 0008002resolved Footkerchief After Vampire Fey mood, simulation speed drops like a stone, 
has duplicate 0010573resolved Loci Moody dwarf tries to path through closed bridge 
has duplicate 0011383resolved Loci Trapped moody dwarf decimates FPS 
related to 0007284resolved Toady One Lag when dwarves stuck in a tree get a strange mood 
related to 0010123new  Active soldier locked in a room will try to go to practice, fail to find a path, and kill FPS 
related to 0008698confirmed Footkerchief Dwarf entering a strange mood when isolated (e.g. on a stepladder) causes severe lag 
Issue History
2011-01-05 03:57KipiNew Issue
2011-01-05 05:24Logical2uRelationship addedrelated to 0002945
2011-01-05 05:25Logical2uNote Added: 0014791
2011-01-06 08:07FootkerchiefNote Added: 0014800
2011-01-06 08:07FootkerchiefNote Edited: 0014800bug_revision_view_page.php?bugnote_id=0014800#r5631
2011-01-06 08:07FootkerchiefNote Deleted: 0014800
2011-01-06 08:07FootkerchiefNote Added: 0014801
2011-01-06 08:07FootkerchiefTag Attached: AWAITING UPDATE
2011-12-10 09:29Logical2uNote Added: 0019104
2011-12-10 09:29Logical2uStatusnew => resolved
2011-12-10 09:29Logical2uResolutionopen => unable to reproduce
2011-12-10 09:29Logical2uAssigned To => Logical2u
2011-12-10 09:29Logical2uTag Detached: AWAITING UPDATE
2014-08-14 10:29FootkerchiefSummaryMoody dwarf causes major drop in FPS => Drop in FPS when moody dwarf can't path to workshop
2014-08-14 10:29FootkerchiefAssigned ToLogical2u => Footkerchief
2014-08-14 10:29FootkerchiefStatusresolved => confirmed
2014-08-14 10:30FootkerchiefRelationship addedhas duplicate 0004153
2014-08-14 10:30FootkerchiefRelationship addedhas duplicate 0008002
2014-08-14 10:31FootkerchiefRelationship addedrelated to 0007284
2014-08-14 14:34thraxariousNote Added: 0029054
2014-08-14 18:29thraxariousNote Added: 0029067
2014-08-14 18:35FootkerchiefResolutionunable to reproduce => open
2014-08-20 13:58Toady OneStatusconfirmed => resolved
2014-08-20 13:58Toady OneFixed in Version => Next Version
2014-08-20 13:58Toady OneResolutionopen => fixed
2014-08-20 13:58Toady OneAssigned ToFootkerchief => Toady One
2015-05-01 12:46FootkerchiefAssigned ToToady One => Footkerchief
2015-05-01 12:46FootkerchiefNote Added: 0032632
2015-05-01 12:46FootkerchiefStatusresolved => needs feedback
2015-05-01 12:46FootkerchiefResolutionfixed => reopened
2015-05-02 05:53DwachsNote Added: 0032633
2015-05-02 05:53DwachsIssue Monitored: Dwachs
2017-01-27 13:07LociRelationship addedrelated to 0010123
2017-01-27 13:08LociStatusneeds feedback => assigned
2018-02-12 13:37LociRelationship addedhas duplicate 0010573
2018-02-12 13:39LociRelationship addedrelated to 0008698
2020-02-17 14:03LociRelationship addedhas duplicate 0011383
2020-02-17 14:05LociNote Added: 0040093
2020-02-17 16:27TalvienoNote Added: 0040095
2020-02-17 16:27TalvienoNote Edited: 0040095bug_revision_view_page.php?bugnote_id=0040095#r16331

Notes
(0014791)
Logical2u   
2011-01-05 05:25   
Another example of pathfinding updates causing lag when items are inaccessible. Ostensibly also related to the better known 0001340 but 0002945 seems more relevant in this situation.
(0014801)
Footkerchief   
2011-01-06 08:07   
Reminder sent to: Kipi

If you have a save demonstrating this problem, please upload it to http://dffd.wimbli.com/ [^]

What kind of mood does the dwarf have?
(0019104)
Logical2u   
2011-12-10 09:29   
Without further updates I'm resolving this report. Also the relations to this report could also cover it.
(0029054)
thraxarious   
2014-08-14 14:34   
I have an referenced save to upload from 0008002, but for some reason dffd is being persnickety and won't let me upload. keeps giving me server erors no matter which browser.
(0029067)
thraxarious   
2014-08-14 18:29   
http://dffd.wimbli.com/file.php?id=9395 [^]

Relevant save file, log file fills with pathing errors, just fills.

path fail: dwarf,Strange Mood,136,96,109 -> 69,117,109: Id 0005291:Path Goal Set Mood Building:Station Milling

Vampire can't path out to a workshop so the game is constantly trying to find him a path. The constant runaway pathing lags the simulator down to a crawl.

It might make keeping vampires as bookkeepers or some other noble tricky, having a strange mood hit them. Worse yet becoming "insane" from failing it and not being able to die of thirst.

When released to craft, I dug down deep enough to get the needed components, he finished making the item and right away went to drain a dwarf before I could put him back.
(0032632)
Footkerchief   
2015-05-01 12:46   
Reopened awaiting a save from Dwachs.
(0032633)
Dwachs   
2015-05-02 05:53   
Here is the savegame:

http://dffd.bay12games.com/file.php?id=10816 [^]

It is centered on the moody dwarf. She is walled-in due to were-infection, and thus cannot reach any craftdwarf's workshop. There are 3 present, but not reachable for her. FPS drops to 6. The FPS drop is also present while in were-form.

(In my game I waited until she transformed and went back to dwarf form, then opened a way to a workshop, where she eventually completed an artifact.)
(0040093)
Loci   
2020-02-17 14:05   
v0.47.03: Talvieno didn't post a save in 0011383:

http://dffd.bay12games.com/file.php?id=14816 [^]
(0040095)
Talvieno   
2020-02-17 16:27   
Loci - meant to post a save, but was in a rush at the time and forgot. Seems like you found it anyway though :)