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.
Editing v0.34:Maximizing framerate
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 13: | Line 13: | ||
====Fortress Design==== | ====Fortress Design==== | ||
− | * | + | *Using the 'dwarf drops item when the path disappears' technique pioneered by Nil Eyeglazed [http://dwarffortresswiki.org/index.php/User:Vasiln/Undump link] it is possible to eliminate bins and most stockpiles from a fort. This 'allows for near infinite item storage with almost zero impact on fps' as shown [http://dffd.wimbli.com/file.php?id=6316 here] and discussed [http://www.bay12forums.com/smf/index.php?topic=92241.msg3271945#msg3271945 forum]. |
− | |||
− | |||
− | |||
* Fewer items inside a fort means fewer items to be [[stockpile]]d, checked for [[wear]], and so on and so forth. | * Fewer items inside a fort means fewer items to be [[stockpile]]d, checked for [[wear]], and so on and so forth. | ||
− | + | ** Use a [[Dwarven atom smasher]] to remove items, or donate them to [[Trading|passing caravans]] to be taken away. | |
− | + | ** Don't dig out so much of the ground, don't build such large [[Farming|farm plot]]s, just don't generate so many items in the first place. | |
− | ** Use a [[Dwarven | ||
− | ** | ||
− | |||
* Flowing [[water]] slows the game down. | * Flowing [[water]] slows the game down. | ||
** Don't build [[mist]] generators, [[Screw pump|pump stacks]], or other major water-moving projects. If you do build them, build a [[Lever|way to switch them off]]. | ** Don't build [[mist]] generators, [[Screw pump|pump stacks]], or other major water-moving projects. If you do build them, build a [[Lever|way to switch them off]]. | ||
Line 31: | Line 25: | ||
** Setting corridors to "high" traffic, and dead-end workshop rooms next to them to "low" traffic, means the pathfinder algorithm will search more quickly along the corridor, and waste less time searching in the rooms. | ** Setting corridors to "high" traffic, and dead-end workshop rooms next to them to "low" traffic, means the pathfinder algorithm will search more quickly along the corridor, and waste less time searching in the rooms. | ||
** Changing the normal traffic weight to 1 in d_init.txt will optimize the pathfinder at the cost of High traffic zones not making a difference ([http://www.bay12forums.com/smf/index.php?topic=97763.msg2841109#msg2841109 source]) | ** Changing the normal traffic weight to 1 in d_init.txt will optimize the pathfinder at the cost of High traffic zones not making a difference ([http://www.bay12forums.com/smf/index.php?topic=97763.msg2841109#msg2841109 source]) | ||
− | + | * Closing off unused areas with raised [[bridge]]s and locked [[door]]s can help. | |
− | + | ** Reducing the area which the pathfinder algorithm has to search lets it run faster. | |
− | + | ** In general the pathfinder algorithm is good about not searching irrelevant areas. Caverns are probably the worst offender. | |
− | + | * The size of your embark site increases the amount of terrain which DF needs to keep track of. | |
− | ** Caverns are probably the worst offender | + | ** If you don't mind going vertical, try reducing your embark site from the default 4x4 squares to 3x3 or even 2x2. |
− | * | + | ** World size probably doesn't matter except for the size of the save files, but reducing the number of cavern layers (default of 3) will help. You need at least 1 cavern layer to get underground [[crop|plants]], and 2 caverns to get all the underground [[tree]]s. |
− | ** If | ||
− | ** | ||
* Encountering [[HFS]] will dramatically reduce FPS AFTER you seal the breach ({{bug|1340}}). Either avoid doing so or use the work around posted in the bug report. | * Encountering [[HFS]] will dramatically reduce FPS AFTER you seal the breach ({{bug|1340}}). Either avoid doing so or use the work around posted in the bug report. | ||
Line 49: | Line 41: | ||
** More advanced methods may still have bugs. 2D is more likely to be reliable. | ** More advanced methods may still have bugs. 2D is more likely to be reliable. | ||
* Using creature graphics may reduce FPS. (Using a custom ASCII tileset should have no effect) | * Using creature graphics may reduce FPS. (Using a custom ASCII tileset should have no effect) | ||
− | *PRIORITY represents how much importance the game is given when it makes a request of the CPU. From [[init.txt]]: | + | *PRIORITY represents how much importance importance the game is given when it makes a request of the CPU. From [[init.txt]]: |
**"Change this to make the dwarfort.exe process have a different priority. From highest to lowest, the options are REALTIME, HIGH, ABOVE_NORMAL, NORMAL, BELOW_NORMAL and IDLE." | **"Change this to make the dwarfort.exe process have a different priority. From highest to lowest, the options are REALTIME, HIGH, ABOVE_NORMAL, NORMAL, BELOW_NORMAL and IDLE." | ||
**While it's best to run DF with no other programs in the background if FPS is an issue, giving the priority a bump or two can help speed things up regardless. | **While it's best to run DF with no other programs in the background if FPS is an issue, giving the priority a bump or two can help speed things up regardless. | ||
Line 59: | Line 51: | ||
====Game Settings==== | ====Game Settings==== | ||
− | * Consider running an older version of DF. | + | *Consider running an older version of DF. 40d should run better than 2010 or 2012, and 23a, while severely lacking, should be significantly faster. |
− | * [[Temperature]] | + | * [[Temperature]] and [[Weather]] are two more features which users may or may not notice. |
− | + | ** Disabling them, using the settings in d_init.txt, can speed things up. | |
− | ** Disabling them, using the settings in d_init.txt, | + | ** But then rain won't refill [[murky pool]]s, [[magma]] won't melt [[goblin]]s, etc. |
− | ** | + | ** One user [http://www.bay12forums.com/smf/index.php?topic=86761.msg2352509#msg2352509 reported] an FPS boost from 35 to 90 upon disabling temperature. |
− | ** | ||
− | |||
− | |||
* Each dwarf needs to keep track of where he's going. | * Each dwarf needs to keep track of where he's going. | ||
** Limit the number of dwarves by setting the population cap. | ** Limit the number of dwarves by setting the population cap. | ||
Line 73: | Line 62: | ||
* Invaders also need to pathfind. | * Invaders also need to pathfind. | ||
** Turn off invasions using the option in [[D_init.txt]]. Or you can kill them all. | ** Turn off invasions using the option in [[D_init.txt]]. Or you can kill them all. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ====Mods==== | |
− | + | * Disabling your Dwarven civ from wearing clothing as a mod (required regen of world) may help maintain higher fps later in the game{{bug|3942}}, if you don't mind naked dwarves running around. Alternatively, finding a way to dump excess/worn out clothing might help restore fps on existing fortresses. Requires research. | |
− | |||
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Mac OS X Specific== | ==Mac OS X Specific== | ||
− | Spotlight indexes files on your mac. Since DF constantly changes files, spotlight will keep indexing them using 60-70% of your CPU. Exclude DF in system preferences: spotlight's privacy settings | + | Spotlight indexes files on your mac. Since DF constantly changes files, spotlight will keep indexing them using 60-70% of your CPU. Exclude DF in system preferences: spotlight's privacy settings and you can get a factor of two in FPS. This can easily provide benefits of over 30 FPS, even on multicore computers that do not need to worry about CPU. |
− | |||
− | |||
− | |||
− |