Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to defeat the lag-DEATH of fortresses  (Read 2736 times)

iyaerP

  • Bay Watcher
  • has mandated the production of 3 gold shields.
    • View Profile
How to defeat the lag-DEATH of fortresses
« on: December 15, 2010, 08:26:01 pm »

I have been working on my fort for seven in game years now, and for the past four of them, I have been at the point where normally a player would give up and consign a fort to its demise via lag. However, with some innovation, I have had the past two years in game take less real time to play then the preceding season. The solution is that I leave dwarf fortress running all the time. In the shower, at work, while asleep, where I am does not matter as DF chugs away. Sure it may sit idle for eight of the twelve hours that I am at work due to an auto-pause, but that is four more hours of progress than I would have had otherwise. Even now while I sit at my desk at work, my dorfs labour away.

Any event that is auto-pause worthy is in need of micromanagement usually anyway (except newborns), so I don't really miss anything important. Don't really need to worry about running out of food or anything equally vital as my fortress is long since an automated machine, completely self sufficient. Were it not, I wouldn't very well be in lag-death FPS to begin with anyway. Megaprojects and other Dorfy things requiring much micromanagement to prevent cave-ins and base-jumping carpenters take longer in Dorf years, but less real life time as they can get a lot of work done with me not bothering them as they chug along at 7 fps.

So tell me bay12. Did I just make the greatest breakthrough ever, or was I just shouting off about the newest thing that people have already been doing since the dawn of time?
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.

brucemo

  • Bay Watcher
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #1 on: December 15, 2010, 08:43:19 pm »

It's kind of like suggesting cannibalization of self as a solution to hunger.
Logged

profit

  • Bay Watcher
  • Finely Crafted Engravings... Or it didn't happen.
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #2 on: December 15, 2010, 08:46:06 pm »

Dawn of time.

I also know that it is possible to stop most autopauses.

IE I have one that does not stop work when a warm tile is hit * invaluable for working over magma lakes*

However you should be real careful with designation, and if your room is dug oddly, double check it for magma around it.

This goes double for wet tiles but a godsend when you created a large farm above room your trying to dig out and every tile is "Damp"

For babies just change [BIRTH_CITIZEN:A_D:D_D:P:R] in announcement.txt to[BIRTH_CITIZEN:A_D:D_D] I believe.   You can also do the same for migrants.

BTW... Just wait till you hit zero FPS.   THAT was a test of patience.

To be fair I did have a minor tower cap operation going on at the time.....
Hosted by imgur.com
Took 3 days.... real time.




« Last Edit: December 15, 2010, 08:53:13 pm by profit »
Logged
Mods and the best utilities for dwarf fortress
Community Mods and utilities thread.

Jacob/Lee

  • Bay Watcher
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #3 on: December 15, 2010, 08:46:14 pm »

No, you've just stated the worst possible solution to an age old problem (DF age that is)

PLANKS

  • Bay Watcher
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #4 on: December 15, 2010, 09:15:17 pm »

i just overclocked my pc to squeeze more fps out of DF

:D

iyaerP

  • Bay Watcher
  • has mandated the production of 3 gold shields.
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #5 on: December 15, 2010, 09:21:32 pm »

No, you've just stated the worst possible solution to an age old problem (DF age that is)

its not like I haven't done everything I can to atom smash cats, rocks and any other source of lag. It is just that once you
Spoiler (click to show/hide)
, your FPS goes down the drain anyway. I sit at 7 fps on average. Yet since I have started leaving it going almost 24/7 have gotten more out of my fortress than I had the previous week.
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.

Ze Spy

  • Bay Watcher
  • I was your beginning - so shall I be...your end.
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #6 on: December 15, 2010, 09:30:48 pm »

Just another fortress , there's a bunch of massive , old fortresses dating to 60 ingame years or more that's still alive right now

Wait until you get 0 FPS
Logged

Aspgren

  • Bay Watcher
  • Every fortress needs a spike pit.
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #7 on: December 16, 2010, 01:43:54 am »

I don't mind lag, I spend lots of time doing other things by the side so if the dwarves move slowly that means more time for my books or writings or whatever i'm up to :)

Something that helps though is to take scattered and near-useless equipment (like used ammunition) and just atomsmash it.
Logged
The crossbow squad, 'The Bolts of Fleeing' wouldn't even show up.
I have an art blog now.

Nivim

  • Bay Watcher
  • Has the asylum forgotten? Are they still the same?
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #8 on: December 16, 2010, 02:28:26 am »

 Who was that person that made the longest existing fort by this method at a decent FPS? I recall being amazed at the autonomy (without burrows), but I can't seem to recall any keywords for it.
Logged
Imagine a cool peice of sky-blue and milk-white marble about 3cm by 2cm and by 0.5cm, containing a tiny 2mm malacolite crystal. Now imagine the miles of metamorphic rock it's embedded in that no pick or chisel will ever touch. Then, imagine that those miles will melt back into their mantle long before any telescope even refracts an image of their planet. The watchers will be so excited to have that image too.

Marlen

  • Escaped Lunatic
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #9 on: December 16, 2010, 11:28:20 am »

Check out the bottom two tips here: http://df.magmawiki.com/index.php/DF2010:Maximizing_framerate

I can vouch for those. I went from 5 to the 30's just by putting a couple 2/7 ponds in hallways that my dwarves had to path through.
Logged

celem

  • Bay Watcher
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #10 on: December 16, 2010, 11:48:38 am »

I forget the longest running fort too.

However if you dig through the first few pages of community games and stories you can probably find it.  Theres a community fort in there that still updates occasionally and is into its 3rd century.  260+ rings a bell.

Leaving the fort running is probably the only way to reliably do this kinda thing.  You gut the announcements that will actually pause to include only those that will need it.  I usually switch off thieves and ambushes along with dwarven births. 

In a properly established and automated fort you can axe a whole lot more.  If supplies are good then caravans become useless, you can just ignore em.  You can switch off pause on mood/claim/artifact construction too.  Infact theres so little that pauses my game these days that i sometimes come home from work to find those conditions never arose and the game is either still running or the fort died somehow.

Deactivating digging damp/warm stone pauses is as mentioned awesome for mining above the magma sea or under a large body of water somewhere....just....be careful.

If you've really gone to the lengths to recover fps in every other way imaginable then fully automating your fort for unattended running is probably your last option, but by no means a bad one.  One piece of advice though, make an auto-save yearly (but remember to deactivate the pause after it).  Several times after running free for 12+ hours my forts have crumbled to unusual seiges or titans.  Sods law says this happens within the half-hour before you return to the keyboard
« Last Edit: December 16, 2010, 11:51:17 am by celem »
Logged
Marksdwarf Pillboxes
I wish I had something cool to say about this.  Because it's really cool.

Schmlok

  • Bay Watcher
    • View Profile
Re: How to defeat the lag-DEATH of fortresses
« Reply #11 on: December 16, 2010, 08:41:16 pm »

I don't find 5 10 fps to be that bad.  I get to plan ahead and inspect stuff while they work.

On the other hand I seem to have a problem with it locking up for up to 10 seconds for a 1-5 second burst of 5 fps :(

Blood washing+dfcleanmap seemed to help.  Walling off did not.
« Last Edit: December 16, 2010, 09:45:34 pm by Schmlok »
Logged