<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dienes</id>
	<title>Dwarf Fortress Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dienes"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/Dienes"/>
	<updated>2026-08-23T22:55:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:Maximizing_framerate&amp;diff=152946</id>
		<title>v0.31:Maximizing framerate</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:Maximizing_framerate&amp;diff=152946"/>
		<updated>2011-09-08T22:37:12Z</updated>

		<summary type="html">&lt;p&gt;Dienes: /* Increasing your Framerate */  HFS fps fix.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{quality|Fine|01:51, 19 January 2011 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
[[File:Frames_Per_Second_Meter.png|300px|thumb|bottom|A picture of Dwarf Fortress with Frames Per Second displayed.]]&lt;br /&gt;
&lt;br /&gt;
{{L|Frames per second|Framerate}} is used in Dwarf Fortress to measure the speed at which the game is running. It is measured in &amp;quot;frames per second&amp;quot;, or FPS for short. To check your FPS in Dwarf Fortress, simply change [FPS:NO] to [FPS:YES] in {{l|init.txt}}, and your FPS will be displayed on the top row of the screen.  The first number is the current frame rate, while the number in parentheses is the current graphical frame refresh rate.&lt;br /&gt;
&lt;br /&gt;
==Increasing your Framerate==&lt;br /&gt;
In general, the more stuff the game has to keep track of, the slower the game will run.  So, reducing the amount of stuff active keeps your game running fast.  Some possible reasons for slowdown, and ways to reduce and/or eliminate them:&lt;br /&gt;
&lt;br /&gt;
* Each dwarf needs to keep track of where he's going.&lt;br /&gt;
** Limit the number of dwarves by setting the population cap.&lt;br /&gt;
* Each animal needs to pathfind, too.&lt;br /&gt;
** Tame animals can be put into {{l|cage}}s, keeping them from having anywhere to go.  Or you can butcher them.&lt;br /&gt;
* Invaders also need to pathfind.&lt;br /&gt;
** Turn off invasions using the option in {{l|D_init.txt}}. Or you can kill them all.&lt;br /&gt;
* Contaminants, including {{l|blood}} spatters, accumulate on the ground and on dwarves and creatures.  When they walk over contaminants, these sometimes get smeared and spread.  There is a bug ({{bug|296}}) which makes contaminants continuously multiply and another bug ({{bug|3270}}) which prevents blood spatters from ever disappearing.&lt;br /&gt;
** There is a setting in D_init.txt (as of&amp;amp;nbsp;{{version|0.31.16}}) that prevents them spreading from dwarf (or animal) to ground.  For [[DF2010:Fortress_mode|Fortress Mode]], this is [[DF2010:Technical_tricks#More_Game_Options|WALKING_SPREADS_SPATTER_DWF]] and is already turned off by default.&lt;br /&gt;
** If the contaminants are outside, isolate the area and let [[DF2010:Weather|rain]] slowly wash it away. Pets can be kept out with a [[Activity_zone#Pen.2FPasture|pen/pasture]] or a [[DF2010:Activity_zone#Pit.2FPond|pit]]. Similarly, setting the {{l|traffic}} designation to restricted and/or assigning [[Activity_zone|Activity Zones]] strategically may keep dwarves away.&lt;br /&gt;
** Add in some in-fortress means of cleaning dwarves and pets. The &amp;quot;Dwarven Bathtub&amp;quot; is one example. And make sure you have the {{l|cleaning}} labor enabled. Details of these and other suggestions can be found on the {{l|cleaning}} page.&lt;br /&gt;
** Finding the above cleaning measures too tedious or lacking, some players opt to [[DF2010:Cheating|cheat]] by using the [[DF2010:Utilities#dfcleanmap|dfcleanmap]] tool from the [[DF2010:Utilities#DFHack|DFhack]] library.&lt;br /&gt;
* G_FPS is a setting in the {{l|init.txt}} file.  It controls how often Dwarf Fortress redraws the screen.  It also controls how often the game checks for keyboard or mouse input.&lt;br /&gt;
** Reducing G_FPS can speed up the rest of the game.  The default choice of 50 works well, but many people reduce it down to 20 with no ill effect.&lt;br /&gt;
** Reducing G_FPS too far can make the game unresponsive and glitchy.  Some people can cope with 5;  most cannot.&lt;br /&gt;
* PRINT_MODE is another init setting.  It controls the method Dwarf Fortress uses to draw the screen.&lt;br /&gt;
** More advanced methods allow DF to make more use of OpenGL features and therefore your graphics card.  STANDARD is a good starting point.&lt;br /&gt;
** More advanced methods may still have bugs.  2D is more likely to be reliable.&lt;br /&gt;
* {{l|Temperature}} and {{l|Weather}} are two more features which users may or may not notice.&lt;br /&gt;
** Disabling them, using the settings in d_init.txt, can speed things up.&lt;br /&gt;
** But then rain won't refill {{l|murky pool}}s, {{l|magma}} won't melt {{l|goblin}}s, etc.&lt;br /&gt;
** One user [http://www.bay12forums.com/smf/index.php?topic=86761.msg2352509#msg2352509 reported] an FPS boost from 35 to 90 upon disabling temperature.&lt;br /&gt;
* The size of your world and embark site both increase the amount of terrain which DF needs to keep track of.&lt;br /&gt;
** If you don't mind going vertical, try reducing your embark site from the default 4x4 squares to 3x3 or even 2x2.&lt;br /&gt;
** 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 {{l|crop|plants}}, and 2 caverns to get all the underground {{l|tree}}s.&lt;br /&gt;
* Proper use of {{l|traffic}} designations will help.&lt;br /&gt;
** Setting corridors to &amp;quot;high&amp;quot; traffic, and dead-end workshop rooms next to them to &amp;quot;low&amp;quot; traffic, means the pathfinder algorithm will search more quickly along the corridor, and waste less time searching in the rooms.&lt;br /&gt;
* Closing off unused areas with raised {{l|bridge}}s and locked {{l|door}}s can help.&lt;br /&gt;
** Reducing the area which the pathfinder algorithm has to search lets it run faster.&lt;br /&gt;
** In general the pathfinder algorithm is good about not searching irrelevant areas.  Caverns are probably the worst offender.&lt;br /&gt;
* Fewer items inside a fort means fewer items to be {{l|stockpile}}d, checked for {{l|wear}}, and so on and so forth.&lt;br /&gt;
** Use a {{l|Dwarven atom smasher}} to remove items, or donate them to {{l|Trading|passing caravans}} to be taken away.&lt;br /&gt;
** Don't dig out so much of the ground, don't build such large {{l|Farming|farm plot}}s, just don't generate so many items in the first place.&lt;br /&gt;
* Flowing {{l|water}} slows the game down.&lt;br /&gt;
** Don't build {{l|mist}} generators, {{l|Screw pump|pump stacks}}, or other major water-moving projects.  If you do build them, build a {{L|Lever|way to switch them off}}.  &lt;br /&gt;
** Don't embark on a {{l|river}} or {{l|ocean}}.  Rivers aren't too bad in their natural state, because the game only needs to calculate at where the water enters and where the water leaves, more-or-less skipping the water in between.  Then you start damming them and pumping water out, and it gets worse.&lt;br /&gt;
** {{l|Aquifer}}s don't impose load until you start digging around in them.&lt;br /&gt;
**{{l|Water wheel#Perpetual motion|Dwarven water reactors}} also slow down the game, often significantly. &lt;br /&gt;
* 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.&lt;br /&gt;
*OSX Snow Leopard: Spotlight indexes files on your mac. Since DF constantly changes files, spotlight will keep indexing them using 60-70% of your CPU. Exclude DF from spotlight and you can get a factor of two in FPS. See how to [http://superuser.com/questions/46195/why-does-mds-run-wild-in-mac-os-x-10-6 here].&lt;br /&gt;
* Encountering [[HFS]] will dramatically reduce FPS if you seal the breach ({{bug|1340}}). Either avoid doing so or use the work around posted in the bug report.&lt;/div&gt;</summary>
		<author><name>Dienes</name></author>
	</entry>
</feed>