Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: FPS death  (Read 2677 times)

Gearskull1

  • Bay Watcher
    • View Profile
FPS death
« on: March 16, 2011, 02:44:13 pm »

One of the forts that I have been working on forever, A giant castle with moats of lava and catapult towers. Has finally got to the point where it is nearly unplayable, there are so many assorted fluids, corpses, ect. I have so many unused goblinite and items scattered around the map. I also have upwards of 100 dwarves living in my fort. Is there a way to reduce this terrible FPS lag? Other than locking all my dwarves in a room and flooding the world with magma. And that would take hours at this FPS.

I have heard DF hack is a possible solution, but what do you guys do when your FPS gets bad?
Logged

Urist McGyver

  • Bay Watcher
  • I love Roc Birds.
    • View Profile
Re: FPS death
« Reply #1 on: March 16, 2011, 02:52:23 pm »

Set paths that dwarves use a lot to "High Traffic" to reduce pathfinding , bury those corpses(or cremate them in the sea of magma), smelt that goblinite, murder take your useless nobles to the Magma Sea Surf Resort, disable hauling labors of skilled dwarves and add those to unskilled dwarves to reduce pathfinding as well.
Logged
It's treated as completely normal because this is Dwarf Fortress.  There's absolutely nothing wrong with surrounding yourself with a wall of flames, only to later realize that you're surrounded by a wall of flames.
There's nothing that can't be solved by hurling fifteen roc birds at it.

Loki

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #2 on: March 16, 2011, 02:55:20 pm »

I used to cage up all my animals to make sure there wasn't a pathfinding calculation for all of them, but now they starve to death. Pretty sure pastures still reduce it, at least.

Do what the above poster suggested, but also remind yourself: 

7 dwarves * ~400fps = 2800 getting-shit-done-unit

time goes on and you get migrants and that slows everything down

16 dwarves * ~300fps = 4800 getting-shit-done-unit

100 dwarves means your fps is gonna be double digits for most people, I think. So

100 dwarves * 10-to-99 fps means you're still getting a LOT more work done than in the beginning, even if it doesn't feel like it
Logged
Dwarf Fortress: The only game you can play without even unpausing.

Aramco

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #3 on: March 16, 2011, 02:56:13 pm »

A giant castle with moats of lava

More than one moat? Awesome. I usually get bored before my FPS gets that low, but I suggest running the 'clean map' utility from DFHack, and turning off temperature and weather, if you haven't already.
Logged
Or maybe there's a god who's just completely insane and sends you to Detroit, Michigan in a new body if you ever utter the name "Pat Sajak".

agatharchides

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #4 on: March 16, 2011, 03:02:17 pm »

I am pretty painstaking about getting rid of all garbage and items of inferior quality by whatever means necessary. It does seem to help. I've also reduced caverns to 2 and start on smaller embarks but it is a little late for that now. Cleanmap is good. You can try setting your GPS lower, that bought me a few FPS. And what the other people said.
Logged
Memento Mori

Urist Imiknorris

  • Bay Watcher
  • In the flesh, on the phone and in your account...
    • View Profile
Re: FPS death
« Reply #5 on: March 16, 2011, 03:02:48 pm »

Apply atomsmasher to anything that isn't masterwork or edible.
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!

Aramco

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #6 on: March 16, 2011, 03:04:46 pm »

Apply atomsmasher to anything that isn't masterwork or edible.

Just to clarify-- that includes Dwarves.
Logged
Or maybe there's a god who's just completely insane and sends you to Detroit, Michigan in a new body if you ever utter the name "Pat Sajak".

Urist Imiknorris

  • Bay Watcher
  • In the flesh, on the phone and in your account...
    • View Profile
Re: FPS death
« Reply #7 on: March 16, 2011, 03:06:07 pm »

Legendaries count as masterworks, and the elves consider them edible.
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!

Hyndis

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #8 on: March 16, 2011, 03:14:06 pm »

Rather than use an atom smasher I prefer magma chutes. No moving parts, no levers or repeaters, and its more FPS friendly. Every time the bridge moves there is some FPS needed. if you dump it directly into the magma ocean it just vanishes forever. Magma on top of semi-molten rock tiles acts like a bottomless pit. Its just gone.

I'm brutal about dumping things I don't need. If I'm making rock crafts or totems I periodically order all non-masterworks to be thrown into the magma chute. Any corpses that cannot be buried or butchered also get dumped.

I try to minimize flowing liquids if at all possible. Liquids that do not move do not harm your FPS at all, but movement severely drops the FPS. I install drawbridges linked to levers so I can control the flow of water or magma, allowing me to turn the flow on or off as needed, but only when needed.

Wide corridors are also a must. Single tile wide corridors will cause all kinds of traffic jams and FPS issues. 4 tiles wide and you won't have any problems.
Logged

agatharchides

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #9 on: March 16, 2011, 03:16:11 pm »

Atom-smashers hurt FPS? I tend to favor them since it makes it less of a hassle to get captured goblin's metal items melted.
Logged
Memento Mori

Hyndis

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #10 on: March 16, 2011, 04:12:04 pm »

Atom-smashers hurt FPS? I tend to favor them since it makes it less of a hassle to get captured goblin's metal items melted.

They do a little bit, but only when the bridge moves. Atom smashers also fling items around and this takes up some amount of math.

If you only use the atom smasher occasionally and allow the atom smashing pit to build up before pulling the lever a few times then its okay, its just not something you can leave on continually or you'll get an FPS hit.

Magma chutes can be used on a continual basis with no FPS hit, and you don't need to remember to pull the lever occasionally to clean out the pit.
Logged

MonkeyHead

  • Bay Watcher
  • Yma o hyd...
    • View Profile
Re: FPS death
« Reply #11 on: March 16, 2011, 05:02:08 pm »

Prevention is far better than cure. To this end:

1) dwarfwashes at all access points to keep away surface contaminants

2) Central staircase arrangement.

3) all large redundant areas sealed off.

4) animals to a minimum.

5) pocket world and very short history

6) 3x3 embark at max.

7) VBO print mode.

8) all low quality items get magmadumped, atomsmashed or dontated to the caravan - get rid of the clutter.

9) clean up after battles is a high priority. waiting until 2 or 3 will have an exponential effect.

10) avoid fluid flow. if it is a must, ensure it can be easily switched off.

11) high traffic main thoroughfares so dorfs dont waste cycles looking for stupid routes.

12) mine only where needed. strip mining produces a lot of stone for the game to keep track of.

Naryar

  • Bay Watcher
  • [SPHERE:VERMIN][LIKES_FIGHTING]
    • View Profile
Re: FPS death
« Reply #12 on: March 16, 2011, 05:27:55 pm »

Apply atomsmasher to anything that isn't masterwork or edible.

Or useful. I wouldn't atomsmash my wood, obsidian or steel bars.

Trifle pewter, however...

Malibu Stacey

  • Bay Watcher
  • [LIKES_FIGHTING]
    • View Profile
Re: FPS death
« Reply #13 on: March 16, 2011, 07:47:02 pm »

Prevention is far better than cure. To this end:

1) dwarfwashes at all access points to keep away surface contaminants

2) Central staircase arrangement.

3) all large redundant areas sealed off.

4) animals to a minimum.

5) pocket world and very short history

6) 3x3 embark at max.

7) VBO print mode.

8) all low quality items get magmadumped, atomsmashed or dontated to the caravan - get rid of the clutter.

9) clean up after battles is a high priority. waiting until 2 or 3 will have an exponential effect.

10) avoid fluid flow. if it is a must, ensure it can be easily switched off.

11) high traffic main thoroughfares so dorfs dont waste cycles looking for stupid routes.

12) mine only where needed. strip mining produces a lot of stone for the game to keep track of.

Until very recently doing #1 would increase lag due to water multiplying contaminants washed off dwarves.
2, 3, 4 & 11 are summed up with "shitty pathfinding algorithm".

There are currently 2 well known major FPS killing bugs. The first is simply dwarves wearing clothes. The second is another artifact of the terrible pathfinding.
Logged
I bursted out laughing so hard at this that my dog woke up, came in the room, and looked at me like I'm an idiot.

Then proceeded to brag about how he has 27 kills on his kill list and is super-doggenly tough. 

Hyndis

  • Bay Watcher
    • View Profile
Re: FPS death
« Reply #14 on: March 16, 2011, 07:49:03 pm »

Dwarven decontamination ponds remove contaminants. They are dropped off into the 2/7 water in pond, and an idle dwarf will periodically clean out the pond, removing everything in it and turn it pristine again.
Logged
Pages: [1] 2