Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0010444Dwarf FortressTechnical -- Generalpublic2017-12-11 16:402018-01-11 18:07
EtherealPsyche 
Toady One 
normalmajorN/A
resolvedfixed 
i3-2100, GTX 650, 8GB DDR3 RAMWindows 10Latest Version
0.44.02 
0.44.04 
0010444: Extreme Lag and Stuttering after 7 Year Old Fort on World with Default Settings
I had a world generated with the default settings (medium on all settings) and started a 4x4 fortress on it which ran for about 7 years. It had got to a point where it was in the single digits with FPS, stuttered frequently and was near unplayable (I assumed it was because of visitors) so I had abandoned it.

Never had stuttering like that before. Whatever had caused it, I didn't expect it to carry on to other forts, but it did. I tried a 3x3 embark somewhere and same problem. 1x1 embark, same problem. Saving and loading naturally also takes an excessively long time now so whatever caused it seems to have put a strain on history generation.

In any case, this world is pretty much rendered unplayable.
I've tested generating the exact same world again twice (once to the year 250, second time to the year 257) to try and confirm it's the history or one of my forts and it is indeed something I've unknowingly caused.

Also worth mentioning is I did a 16x16 embark in one place just to make a bridge across continents so I could raid the Elves on another continent, though I had abandoned that site too so I'm not sure how that would be putting a strain on history generation if the site is not active.
I've left a link here to the world that I have this problem with, in case it helps identifying the issue and/or user error.

https://drive.google.com/file/d/1v5CWW8Tqewy4UCKlCvbbRyuYZQWwrk8o/view?usp=sharing [^]
No tags attached.
related to 0009109resolved Toady One Massive stutter every few seconds 
related to 0010459resolved Toady One Game stuttering/freezing every couple of steps 
related to 0009554resolved lethosor Game freezes for about 10 seconds then runs for 10 seconds repeatedly 
Issue History
2017-12-11 16:40EtherealPsycheNew Issue
2017-12-13 06:01sionlifeNote Added: 0037297
2017-12-13 10:25EtherealPsycheNote Added: 0037298
2017-12-14 08:36sionlifeNote Added: 0037301
2017-12-14 14:43EtherealPsycheNote Added: 0037307
2017-12-14 14:43EtherealPsycheNote Edited: 0037307bug_revision_view_page.php?bugnote_id=0037307#r15043
2017-12-14 15:38LociAssigned To => Loci
2017-12-14 15:38LociStatusnew => acknowledged
2017-12-14 16:44sionlifeNote Added: 0037309
2017-12-14 17:32Sarmatian123Note Added: 0037312
2017-12-14 17:32Sarmatian123Note Edited: 0037312bug_revision_view_page.php?bugnote_id=0037312#r15051
2017-12-14 17:33Sarmatian123Note Edited: 0037312bug_revision_view_page.php?bugnote_id=0037312#r15052
2017-12-14 17:40Sarmatian123Note Edited: 0037312bug_revision_view_page.php?bugnote_id=0037312#r15053
2017-12-21 19:26lethosorRelationship addedrelated to 0009109
2017-12-21 19:27lethosorRelationship addedrelated to 0010459
2017-12-21 19:31lethosorRelationship addedrelated to 0009554
2018-01-11 13:16LociNote Added: 0037584
2018-01-11 13:16LociStatusacknowledged => resolved
2018-01-11 13:16LociResolutionopen => fixed
2018-01-11 13:16LociAssigned ToLoci => Toady One
2018-01-11 18:07lethosorFixed in Version => 0.44.04
2018-01-12 16:02antipin00Issue Monitored: antipin00
2018-01-12 16:02antipin00Issue End Monitor: antipin00

Notes
(0037297)
sionlife   
2017-12-13 06:01   
I tried downloading the file but there isn't a saved game to load up. Can you save a running game with this problem? Sorry I don't have time to play a new game for 7 years to see if there could be a potential problem.
(0037298)
EtherealPsyche   
2017-12-13 10:25   
@Sionlife Sure thing.
I reclaimed the 1x1 embark I started earlier. Really, all embarks are affected. I think the issue may be that whatever I've done has caused the history generation to be so slow that the game has to stop to update the history.

Here is the link to the game save with an active 1x1 embark.

https://drive.google.com/file/d/19JLVe7zrALnuWLcgC7xr54nx8WvVej0y/view?usp=sharing [^]
(0037301)
sionlife   
2017-12-14 08:36   
Thanks for the game save. I downloaded and I immediately saw the lag. I sealed off the caverns and it made no difference. I was getting low fps <60fps even though there were no buildings and only 7 dwarves. It should have been 100fps.

I generated a new world on medium settings to check and I found no problems with that so it looks like its something specific to your world gen.

I am at a loss for the moment as to what could be causing this :(
(0037307)
EtherealPsyche   
2017-12-14 14:43   
I'm baffled myself. I don't understand how it could be that bad with so little going on.
My only guess is that the one 16x16 embark I did at one point to make a tunnel between continents might have had an effect. Though it shouldn't if it's abandoned, right?
If abandoned forts continue to have a heavy impact on history generation and FPS on the game save, that would make the prospect of sticking with a world for an extended amount of time (say 20+ years) with multiple forts and adventurers a bit of a problem. Though it could be related to civs pathing through the abandoned fort to reach another continent. I'm not entirely sure.
In any case, it is very odd.

(0037309)
sionlife   
2017-12-14 16:44   
I did a bit more experiment. On one of my own default medium world gens, I tried to replicate your 16x16 embark choosing a spot near the ocean. I abandoned that embark same as you. Then when I tried other normal embarks there was no fps drop. So I can say that a simple 16x16 embark doesn't automatically cause lag in other embarks.

I went back to your world gen file and I reclaimed what I think must have been your main fort. I noticed that in the NW corner you had tunneled into a murky water pool in what looks like an attempt to bring water to some farm plots nearby. But a large part of the surface was getting flooded with water. I can understand how this might cause lag but I can't see how it would impact other embarks.
(0037312)
Sarmatian123   
2017-12-14 17:32   
(edited on: 2017-12-14 17:40)
My DF drops from 100(60) to 10(10) after all Dwarves arrive and I've build my fortress. I tried many designs, but it seems the odd pathing algorithm is not the issue in my case. Not huge one. More like 10000-20000 blocks spent on constructing my fortress may maybe have something to do with that sooner. Not fast this computer of mine is. I guess I should stay away from 44.02 like from ultimate fps ending of DF.

(0037584)
Loci   
2018-01-11 13:16   
This save appears to have been fixed, presumably by the stutter-bug-fixes in v0.44.04 (0010459).