Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Everything slows to a crawl...  (Read 636 times)

cancel.man

  • Bay Watcher
    • View Profile
Everything slows to a crawl...
« on: April 06, 2011, 09:40:00 pm »

The last two forts I've built (0.31.18 & 0.31.21) have become very mature, healthy forts but ultimately both hit the same problem- they'd suddenly be too slow to be playable.

I know that as a fortress gets bigger (more dwarves, more animals, more items, more mined/discovered tiles) things slow down- that's normal. I also experience frame rate tanking out when bodies of water freeze/thaw and that sort of major event- typical calculation/processor load stuff.

But in both of these games, things went from regular slow-ish-but-playable speeds to suddenly stop-and-go choking speed/stalling/hanging. It gets totally unplayable. And the weirdest thing is, it happens suddenly and I can't figure out what's triggering it.

Sometimes I can fix the slow down by reverting to an old save and the game might play fine for a while- even past the time when it slowed down before- but eventually they all come to a choppy halt.

The 0.31.21 fort was about 10 years old before it suddenly got too choppy to play. It was shortly after a goblin siege but no other major events/season change that it got all choppy. I'd recently reduced the stockpiles a lot by dumping items in magma so I don't think overstocking was the reason it slowed down.

Also it should be noted these are the only two forts I've played on this computer- Windows 7, Intel i3, 3Gb ram- maybe it's the system that contributes to the instability?
Logged
DF version 0.34.05 Lazy Newb Pack

Urist Imiknorris

  • Bay Watcher
  • In the flesh, on the phone and in your account...
    • View Profile
Re: Everything slows to a crawl...
« Reply #1 on: April 06, 2011, 09:51:12 pm »

Do you have ghosts? I think their lag was fixed in .22 or .23, so it could be them.
Logged
Quote from: LordSlowpoke
I don't know how it works. It does.
Quote from: Jim Groovester
YOU CANT NOT HAVE SUSPECTS IN A GAME OF MAFIA

ITS THE WHOLE POINT OF THE GAME
Quote from: Cheeetar
If Tiruin redirected the lynch, then this means that, and... the Illuminati! Of course!

iyaerP

  • Bay Watcher
  • has mandated the production of 3 gold shields.
    • View Profile
Re: Everything slows to a crawl...
« Reply #2 on: April 06, 2011, 09:53:07 pm »

Shortly after a goblin siege.

At a guess, all your countless dwarves, cats, dogs, random animals and whatnot all waded through puddles of goblin blood. Blood and other contaminants causes more lag that you would ever believe.
Logged
Christ, are you dwarves or are you elves? If you think Hell has too many demons, then youkill them till the population reaches an acceptable number.
Dwarf Fortress: So horrifying the players would rather talk about nice things, like Warhammer 40k.

cancel.man

  • Bay Watcher
    • View Profile
Re: Everything slows to a crawl...
« Reply #3 on: April 06, 2011, 09:56:06 pm »

Do you have ghosts? I think their lag was fixed in .22 or .23, so it could be them.
There was at least one ghost in the last fort and maybe both. I'd never heard of ghost lag- will look into it, may be the culprit.

Blood could be it, but the lag/hiccups come more like something flipped a switch than something built up (even in a short span of time). I had a pretty good dwarf dip in each fort and made use of the dfcleanmap utility quite often. And in 10 years of regular sieges the blood never caused slow downs.
« Last Edit: April 06, 2011, 09:58:25 pm by cancel.man »
Logged
DF version 0.34.05 Lazy Newb Pack

Urist Imiknorris

  • Bay Watcher
  • In the flesh, on the phone and in your account...
    • View Profile
Re: Everything slows to a crawl...
« Reply #4 on: April 06, 2011, 09:59:14 pm »

Maybe you have a few ambushes on-map. I hear those can occasionally make processors cry.
Logged
Quote from: LordSlowpoke
I don't know how it works. It does.
Quote from: Jim Groovester
YOU CANT NOT HAVE SUSPECTS IN A GAME OF MAFIA

ITS THE WHOLE POINT OF THE GAME
Quote from: Cheeetar
If Tiruin redirected the lynch, then this means that, and... the Illuminati! Of course!

cancel.man

  • Bay Watcher
    • View Profile
Re: Everything slows to a crawl...
« Reply #5 on: April 06, 2011, 10:10:53 pm »

Yeah, I've heard of ambushes doing it as well. Could be, but once again- had plenty of previous ambushes that never had this effect.

Should also mention that the last fort was at capacity (200+ citizens, nobles up to King) and had been for a while so there wasn't any recent growth spurt.

Is it worth destroying items/stocks (in magma) to keep things moving along? Is it really effective?

Anything else I should watch out for/try to avoid in my next fort that may keep it from becoming unplayable?
Logged
DF version 0.34.05 Lazy Newb Pack

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: Everything slows to a crawl...
« Reply #6 on: April 06, 2011, 10:33:49 pm »

Upload some of your unplayable laggy saves to DFFD and label them properly, bonus points if you include a save that was just fine that made shortly before it.

We don't have many good samples to look at when studying the problem :/
Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

cancel.man

  • Bay Watcher
    • View Profile
Re: Everything slows to a crawl...
« Reply #7 on: April 06, 2011, 10:50:51 pm »

Will do. It's actually hard to save- the lag is so bad it can take minutes just to see the Escape window. I just get frustrated and kill the process :P

Moved my 31.21 fort (pre major lag) to 31.25, it comes to a crawl again I'll save and submit it. If it doesn't, I might go crash an older version just to prove the problem exists/existed.
Logged
DF version 0.34.05 Lazy Newb Pack

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: Everything slows to a crawl...
« Reply #8 on: April 06, 2011, 10:57:48 pm »

The dfhack utility set has dfpause, which will pause your game when its not acting responsive.

Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

Reelyanoob

  • Bay Watcher
    • View Profile
Re: Everything slows to a crawl...
« Reply #9 on: April 07, 2011, 12:56:09 am »

I had the choppy lag problem cause me to abandon many lovely forts in ~31.18. But with 31.23 - 31.25 I haven't had anymore excessive lags. I'm getting higher average frame rates with more dwarves, no laggy waiting, and all this while I've been forced to use my old sempron 1.8 ghz laptop due to main PC death.

Try loading some of those old forts into the new version, if you kept them.
Logged

foop

  • Bay Watcher
    • View Profile
Re: Everything slows to a crawl...
« Reply #10 on: April 07, 2011, 04:18:30 am »

This probably isn't what happened to you, but I had an unexpected massive drop in FPS in my fort recently.  I couldn't work out why it went from ~150 FPS to ~30.  Eventually I realised that the forgotten beast made of flame that arrived a year or so before had stumbled into the massive cavern lake.  It was charging around vapourising the water and creating lots of flow from the edge of the map.

I solved that problem by killing the FB.  Then I had the problem of the !!crundles!!.
Logged

Flare

  • Bay Watcher
    • View Profile
Re: Everything slows to a crawl...
« Reply #11 on: April 07, 2011, 04:38:00 am »

-Kill everything that isn't a dwarf.

-Make a public bath in a high traffic area to wash off contaminents.

- Use dfclean to be rid of blood.

- Stop any generators that you don't need running non stop.

- And if you're producing a lot of things, stop it.
Logged