v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "v0.31:Maximizing framerate"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(speedup from cleaning)
Line 25: Line 25:
 
* Some people try to reduce the number of items in the fort by "atom-smashing" them under a bridge or donating them away to traders. Alternatively, less digging in the first place results in fewer stones and corridors in the world to consider.
 
* Some people try to reduce the number of items in the fort by "atom-smashing" them under a bridge or donating them away to traders. Alternatively, less digging in the first place results in fewer stones and corridors in the world to consider.
  
* Due to bug (0000296), contaminants such as blood, snow, etc, count as items.  Since contaminants can spread and you cannot easily get rid of them, try to avoid things that spread contaminants: wells, killing things in high traffic spots, and soap. If you have HFS that exudes slime, you might as well save your game and wait for an update.
+
* Due to bug (0000296), contaminants such as blood, snow, etc, count as items.  Since contaminants can spread and you cannot easily get rid of them, try to avoid things that spread contaminants: wells, killing things in high traffic spots, and soap. If you have HFS that exudes slime, you might as well save your game and wait for an update.<br>''"only 8 FPS. When I tried to get rid of blood carried around by dwarfes and pets by using the dfliquids and dfcleanmap tools. after placing some water around important routes and running the cleanmap utility in a loop, performance went up to _33 FPS_. thats more than 4 times as fast... this truely shows that the algorithms for the blood and dirt splattering are very inefficient, to say the least." --unknown author
 +
''

Revision as of 06:58, 20 November 2010

This article is about an older version of DF.
A picture of Dwarf Fortress with Frames Per Second displayed.

Template:L is used in Dwarf Fortress to measure the speed at which the game is running. To check your FPS (frames per second) in Dwarf Fortress, simply change [FPS:NO] to [FPS:YES] in Template:L, and your FPS will be displayed on the top row of the screen.

The graphical FPS is also used to control how often input is received; you may find 5-15 graphical rate too clumsy for fluid text and mouse input.

Ways to increase your framerate

  • Get rid of blood and dirt splatters dwarves and pets are carrying around. doing so increased FPS from 8 to 33 on my machine(6 embark tiles, 130 dwarves, 250 animals, 3 caverns). to achieve this, you can either build a moat around a well-visited area, which keeps the water height on 1-2 by using a pump which will clean the water from the dirt. when the dwarfes walk through the water, the blood etc. will be washed away. a more hacky way is to place some 7/7 water splatters around important way parts with dfliquids, and running dfcleanmap continuously to remove the blood that gets washed away from the dwarfes.
  • Decreasing the G_FPS in the init text file can drastically improve your fortress' overall FPS. Be careful however, decreasing it too much can subject you to incomprehensible graphic instabilities. G_FPS refers to the "maximum graphical frame refresh rate during play." In other words, the maximum number of times it repaints the graphics of your game per second. Remember, with a low G_FPS, it can be dangerous during battle or when arrows are flying over your Dwarves' heads, because the screen doesn't update as often. The default is 50 G_FPS, but it's been reported that 20 G_FPS is fine. Others report being able to play at even 5 G_FPS. There is no set number, just remember to test out a variety of numbers to see which one is right for you and your computer.
  • Disabling Temperature and Weather in the init file increases speed due to fewer calculations being required, but rain will clean the map from blood and broken arrows, so it may actually improve the framerate.
  • Limiting the number of dwarves and other moving units (cage or butcher animals!) greatly helps keep speed up.
  • World size and fortress site size increase RAM usage and decrease speed. Check if you are happier with an embark rectangle of 3x3 or 3x2 and a medium or small world.
(DF .31.12) World size probably doesn't matter at all (except for save file size), but the embark size and how many cavern layers the world has (defaults to 3).
  • Lowering the pathfinder cost for normal tiles to 1 can reduce lag created by open space but does this at the cost of being able to use high traffic options. Alternatively, you can cover the entire map with high traffic tiles and simply make everything you don't want your dwarves traveling through low or restricted.
  • Closing the forts entrance to the outside world with a raised bridge or forbidden door decreases the number of possible routes the pathfinder has to calculate, thus increases performance.
  • Some people try to reduce the number of items in the fort by "atom-smashing" them under a bridge or donating them away to traders. Alternatively, less digging in the first place results in fewer stones and corridors in the world to consider.
  • Due to bug (0000296), contaminants such as blood, snow, etc, count as items. Since contaminants can spread and you cannot easily get rid of them, try to avoid things that spread contaminants: wells, killing things in high traffic spots, and soap. If you have HFS that exudes slime, you might as well save your game and wait for an update.
    "only 8 FPS. When I tried to get rid of blood carried around by dwarfes and pets by using the dfliquids and dfcleanmap tools. after placing some water around important routes and running the cleanmap utility in a loop, performance went up to _33 FPS_. thats more than 4 times as fast... this truely shows that the algorithms for the blood and dirt splattering are very inefficient, to say the least." --unknown author