View Issue Details

IDProjectCategoryView StatusLast Update
0005629Dwarf FortressDwarf Mode -- Invasionspublic2014-01-26 10:14
Reporterrobertheinrich Assigned Touser6 
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformPentium D 2.8GHz 4GB RAMOSWindows VistaOS VersionHome Basic
Product Version0.34.05 
Summary0005629: massive drop in FPS, seemingly related to INVADERS:YES setting in d_init.txt
DescriptionI embarked on a map with brook and pools near a mountain. When winter came the brook froze and a snow storm started. Suddenly my fps went down from 100 to 25 and the interface became very laggy (pressing < and > would often jump between 2 z levels instead of 1).

Well, I thought that it was related to weather and/or temperature so I waited until the brook thawed and disabled both. Also disabled invaders. FPS went back to 100. I experimented a bit with the settings and found out that neither temperature nor weather seem to affect the FPS, but strangely the INVADERS:YES setting does. If I set it to NO the FPS goes to 100, if I enable invaders the game starts lagging. But that fort didn´t even have the first ambush yet, only 2-3 kobold thieves.

Since I play with the Phoebus tileset: is it enough if I upload the savegame, or should I better upload the whole DF folder?
Steps To ReproduceThe lagging can be reproduced (for my current world) by changing the INVADERS setting from NO to YES in the d_init.txt file.

I did not test yet if there is something wrong with the world itself; gonna check if it happens on another embark on the same world, too.
Additional InformationI should mention that I modified the map a little bit with DFHack and cheated me a big cluster of silver and adamantine on the map. And the first piece of adamantine was dug out approximately at the same time when the FPS drop occurred... so there might be a relation.

I set the priority to "low" because this is the first time I have this happening, maybe the world is just corrupt.
TagsNo tags attached.

Activities

user6

2012-03-13 08:49

  ~0021444

Reminder sent to: robertheinrich

Please upload a save demonstrating the lag to http://dffd.wimbli.com/

The lag may be caused by dwarves trying too frequently to detect sneaking ambushers or whatever.

robertheinrich

2012-03-13 12:47

reporter   ~0021447

I tested that embark site a bit more and made the following observations:

- It seems the massive fps drop has something to do with revealing the map using dfhack. But this is the first time that happens for me, I´ll forward that to the dfhack thread in the forums.

- After unrevealing the map the fps recovers, but not to it´s maximum. To confirm that I have set the max fps to 200 (since the standard setting of 100 was not obvious enough if it only drops to 80). On my system the map runs with solid 120-150 fps with INVADERS:NO and only 75-80 fps with INVADERS:YES

- I let the map with INVADERS:YES run for a while to see if it recovers. A werebeast arrived and was killed by my military. Afterwards the fps went back to normal (around 150 fps when most dwarves are idling around), no matter if the map was revealed or not.

I have uploaded both saves:
1. fps drop with invaders turned on, massive fps drop if map is revealed.
2. same map after some werebeast was killed, no fps problems anymore regardless of revealed map

Here´s the save (actually a full install since I thought it might be easier to test because I use Phoebus and dfhack):
http://dffd.wimbli.com/file.php?id=5873

robertheinrich

2012-03-16 01:23

reporter   ~0021498

Last edited: 2012-03-16 01:56

I have the same thing happen again on another map: sudden fps drop. After disabling invaders fps goes back to normal. No invaders on the map.

Edit: I let the map run for a while (with invaders enabled) and a siege of ca. 20 undead humans and goblins arrived. Very untimely by the way because I only had 32 dwarves and almost no wealth yet.

So together with the other map where the fps would drop before a werebeast arrived it seems that fps goes down quite a while before invaders actually arrive on the map.

And it might just be bad luck, but it´s the first time I had a siege with 20+ invaders arrive in the second year while having way less than 50 dwarves and almost no wealth.

user6

2012-03-16 07:47

  ~0021505

Do you have a save that demonstrates this problem without reveal ever having been run? The use of third-party utilities kinda voids the warranty.

robertheinrich

2012-03-16 13:02

reporter   ~0021513

Last edited: 2012-03-16 13:05

Unreveal should revert the game map to the original state (i.e. before reveal was first called).

While I see where you are coming from regarding never using memory-altering tools - vanilla DF is almost unplayable without them.

But for the sake of this bug report I will try to create a completely untouched ascii fortress (when I feel masochistic enough to do that) and check if it occurs there, too.

user6

2014-01-26 10:14

  ~0024371

Still need a save that hasn't been memory-hacked.

Issue History

Date Modified Username Field Change
2012-03-13 07:41 robertheinrich New Issue
2012-03-13 08:49 user6 Note Added: 0021444
2012-03-13 12:47 robertheinrich Note Added: 0021447
2012-03-16 01:23 robertheinrich Note Added: 0021498
2012-03-16 01:56 robertheinrich Note Edited: 0021498
2012-03-16 07:47 user6 Note Added: 0021505
2012-03-16 13:02 robertheinrich Note Added: 0021513
2012-03-16 13:05 robertheinrich Note Edited: 0021513
2014-01-26 10:14 user6 Note Added: 0024371
2014-01-26 10:14 user6 Status new => resolved
2014-01-26 10:14 user6 Resolution open => unable to reproduce
2014-01-26 10:14 user6 Assigned To => user6