View Issue Details

IDProjectCategoryView StatusLast Update
0003651Dwarf FortressUndeathpublic2012-03-02 17:41
ReporterDeon Assigned ToToady One  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.31.18 
Fixed in Version0.31.22 
Summary0003651: Ghost appearing/disappearing causes a massive slowdown
DescriptionWhenever I see a "ghostly" creature and it appears and disappears (which leads to it appearing and disappearing from the list) my game becomes "stuck" in specified periods of time, leading to an overall massive slowdown.

The moment the ghost is put to rest, the game runs smoothly again.
Steps To ReproduceHave a ghost on your map.
TagsSave Included

Relationships

has duplicate 0003815 resolveduser11 Upon reload game stops a few times, results in crash within a few minutes 
has duplicate 0003916 resolveduser11 Bizarre intermittent lag, possibly due to ghosts (save provided) 
has duplicate 0003931 resolvedLogical2u Haunting Dwarf Ghost couses Game Stuttering 
has duplicate 0004241 resolveduser6 game blocks after 15s into this save 
related to 0004053 new Encountering extensive lag during gameplay 
related to 0004207 resolvedToady One Inescapable, inevitable, intolerable lag 

Activities

takaratiki

2010-11-17 07:47

reporter   ~0013954

Correct. Suffering massive delays as the ghost blinks in and out. This is on the Linux version with a world rendered on 31.18.

fflaguna2

2010-11-20 14:42

reporter   ~0014064

Last edited: 2010-11-20 14:42

Same here on Windows. It's game-breaking until you memorialize the ghost, which takes forever due to the massive slowdowns.

For the record, the ghost that caused this bug was a caravan merchant who died.

Cruxador

2010-11-21 21:17

reporter   ~0014132

Last edited: 2010-12-20 01:14

It's not gamebreaking for me, though it's annoying. I've got a pretty good computer, so that could account for the difference, but I just get a pause of about 30 seconds to a minute. I have lots of ghosts going on, since I've had gratuitous amounts of death and am not burying or memorializing anyone.

It's still an important bug, though. This is probably the most annoying bug I've experienced.

EDIT: Okay, different embark, and it's gamebreaking for me now.

nordak

2010-11-22 23:25

reporter   ~0014163

I'm not taking a hit in fps or a pause. Windows and good system with i7 processor.

nosesquid

2010-12-02 05:30

reporter   ~0014360

It's happening in Mac 31.18 too. Could this be connected to bug 0003708? I've had plenty of ghosts before (nobody from before the 4th migrant wave is still alive) but no problems until a "nameless" ghost showed up.

Kolbur

2010-12-19 14:44

reporter   ~0014632

I have the same problem but it's very strange. I have ghosts on my map since the very beginning of my fortress when one miner got encased in ice while trying to pierce an aquifer. I've intentionally not buried or memorialized anyone to get ghosts and it was no problem until now (more than 3 years into the game now). Suddenly the breaks started (I have like 4 ghosts now) and got longer very quickly. Unfortunately it's gamebreaking for me too. Cpu usage goes through the roof and the game freezes up to a minute. The actual fps between the breaks seems to be ok. But the freezes seems to come every other step now. :(

user11

2010-12-20 21:17

  ~0014666

CapnRis also has this save from 0003815 that seems to be the same issue.

http://dffd.wimbli.com/file.php?id=3558

Kogut

2011-01-16 21:38

reporter   ~0014891

My bet: it is caused by pathfinder.
Ghost can move in all directions so
(a) it will path in (2*n)^3 cube to travel n tiles
(b) it is using useless for him cached data
(c) maybe part of ghost is not pathfinding, so it is why only part is killing FPS.
 
Solution - just move ghost without pathfinding.
====
And it just happened for me.
====
And it wasn't nameless ghost.

monk12

2011-01-20 16:16

reporter   ~0014914

I can report that it doesn't appear to happen every time I have a ghost. In some instances I've had a ghost quietly haunting the well he drowned in, and in others I've experienced incredibly erratic FPS issues. I believe it is related to ghosts pathing through unexplored underground areas. The reason I believe this is because the ghost was not on the unit list during the largest instances of lag, but by zooming in on it via the relationships menu the cursor centered on a point that could only be Hell.

Vercingetorix

2011-02-01 21:56

reporter   ~0014965

Same problem confirmed here. My game started to lag for no apparent reason and there were no visible ghosts in the unit list. I ran DF reveal and I was able to find the two spirits and put them to rest. In my case they were in conventional unexplored layers.

Carving up two slabs now so things should be fine.

Lord Herman

2011-02-19 02:41

reporter   ~0015275

I think I'm having the same problem. 0.31.19, windows. Game started pausing 1-3 seconds with increasing frequency ever since my first ghost appeared. Right now it runs for about a second, then pauses for two or three seconds, then runs for a second again. At some point it seems to hang completely, and I have to close DF via the task manager. During the pauses, the game window won't respond to alt-tabbing et cetera.

dravus

2011-02-26 10:46

reporter   ~0015524

I just started getting the same issue

complete freezes for up to 30secs to 1 min at a time

had to forcefully close the process to get my system back from the game

DoctorZuber

2011-02-26 14:49

reporter   ~0015528

On a side note, I hate the interface for engraving a slab. Here is a summary of my process.

1. units menu, find the offending ghost
2. remember/write down the ghost's name
3. open the craft workshop and engrave a slab
4. page through the MANY MANY MANY pages of names until you find the right one.

With my rather evolved fortress, I have several HUNDRED names to search through anytime I need to engrave a slab. Some of the names aren't even visible and simply say (engrave a slab) without any associated name.

It would be a HUGE timesaver if we could enter names to engrave with a partial alphabetical match like is used for ordering manangement tasks.

user6

2011-03-07 15:46

  ~0015930

JimiD uploaded this save at 0004053:0015925: http://dffd.wimbli.com/file.php?id=3921

JimiD

2011-03-11 14:53

reporter   ~0016129

Another save, this one with definite lag and ghost activity.

http://dffd.wimbli.com/file.php?id=3951

Ghost appears on the western edge of the map, at ground level, in the stream.

MaDeR Levap

2011-03-13 15:12

reporter   ~0016213

Ghosts, as non-material being, should not need any pathfinding at all. Just make straight line from x1,y1,z1 to x2,y2,z2. Maybe in some cases game incorrectly uses pathfinder instead of simplest case?

user6

2011-03-17 09:01

  ~0016333

gpmfuchs posted this save at 0004241: http://dffd.wimbli.com/file.php?id=3980

Issue History

Date Modified Username Field Change
2010-11-17 00:09 Deon New Issue
2010-11-17 07:47 takaratiki Note Added: 0013954
2010-11-20 14:42 fflaguna2 Note Added: 0014064
2010-11-20 14:42 fflaguna2 Note Edited: 0014064
2010-11-21 21:17 Cruxador Note Added: 0014132
2010-11-22 23:25 nordak Note Added: 0014163
2010-12-02 05:30 nosesquid Note Added: 0014360
2010-12-02 07:46 user6 Category Dwarf Mode -- Idle Behavior => Undeath
2010-12-19 14:44 Kolbur Note Added: 0014632
2010-12-19 15:18 user11 Relationship added related to 0003815
2010-12-20 01:14 Cruxador Note Edited: 0014132
2010-12-20 21:15 user11 Relationship replaced has duplicate 0003815
2010-12-20 21:17 user11 Note Added: 0014666
2010-12-20 21:18 user11 Tag Attached: Save Included
2010-12-20 21:18 user11 Tag Attached: Save Needs Testing
2011-01-16 21:38 Kogut Note Added: 0014891
2011-01-20 16:16 monk12 Note Added: 0014914
2011-02-01 21:56 Vercingetorix Note Added: 0014965
2011-02-03 09:02 user11 Relationship added has duplicate 0003916
2011-02-04 19:20 Logical2u Relationship added has duplicate 0003931
2011-02-19 02:41 Lord Herman Note Added: 0015275
2011-02-26 10:46 dravus Note Added: 0015524
2011-02-26 14:49 DoctorZuber Note Added: 0015528
2011-03-07 11:43 user6 Relationship added related to 0004053
2011-03-07 15:46 user6 Note Added: 0015930
2011-03-11 14:53 JimiD Note Added: 0016129
2011-03-13 15:12 MaDeR Levap Note Added: 0016213
2011-03-13 22:05 user6 Sticky Issue No => Yes
2011-03-16 12:06 user6 Relationship added related to 0004207
2011-03-17 09:01 user6 Relationship added has duplicate 0004241
2011-03-17 09:01 user6 Note Added: 0016333
2011-03-19 16:49 Toady One Status new => resolved
2011-03-19 16:49 Toady One Fixed in Version => 0.31.22
2011-03-19 16:49 Toady One Resolution open => fixed
2011-03-19 16:49 Toady One Assigned To => Toady One
2011-03-22 22:50 user6 Sticky Issue Yes => No
2012-03-02 17:41 user11 Tag Detached: Save Needs Testing