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 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.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

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 124: Line 124:
  
 
*{{DFtext|tweak fast-heat|white}} Further improves temperature update performance.
 
*{{DFtext|tweak fast-heat|white}} Further improves temperature update performance.
 
*{{DFtext|timestream}} alters the game simulation speed so that it *feels* fast even at low FPS. Either the calendar, or the units themselves, or both, can be changed - so {{DFtext|timestream -fps 100 -units}} while your actual FPS sits at a measly 20 will make the calendar tick and the units move five times faster. This is very useful to extend the playability of older forts where early micromanagement isn't as important and most of day-to-day functioning runs itself.
 
  
 
*{{DFtext|fastdwarf|white}} Causes dwarves and other creatures to move and work faster or causes them to teleport. Run {{DFtext|fastdwarf help|white}} for more information.
 
*{{DFtext|fastdwarf|white}} Causes dwarves and other creatures to move and work faster or causes them to teleport. Run {{DFtext|fastdwarf help|white}} for more information.
Line 139: Line 137:
 
If you run any indexing, exclude DF directory.
 
If you run any indexing, exclude DF directory.
  
Installing mimalloc or jemalloc and preloading it in your ./df script to run ''Dwarf Fortress'' may result in improved framerates:
+
Installing libjemalloc using your distro's package manager and writing a bash script to preload it and run ''Dwarf Fortress'' may result in improved framerates:
  
 
  <nowiki>#!/bin/sh
 
  <nowiki>#!/bin/sh
DF_DIR=$(dirname "$0")
+
cd /path/to/df_linux
cd "${DF_DIR}"
+
LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so.1" ./df</nowiki>
LD_PRELOAD="/path/to/libmimalloc.so.2.0" ./libs/Dwarf_Fortress "$@"</nowiki>
 
 
 
The path the malloc is installed to may vary, check ''/usr/lib/'', ''/usr/lib64/'', ''/usr/local/lib/'', ''/usr/local/lib64/'', and ''/usr/lib/x86_64-linux-gnu/''. The .so file's name may also vary.
 
  
 
==Mac OS X or GNU/Linux Specific==
 
==Mac OS X or GNU/Linux Specific==
 
===Setting process niceness===
 
===Setting process niceness===
One thing that Unix-like systems feature is being able to control the priority of a process in relation to other processes running at the same time. This is its "niceness" value, with -20 being most favorable to the process. Some graphical task managers can set this value, but otherwise, you can use the "renice" command as so:
+
One thing that Unix-like systems feature is being able to control the priority of a process in relation to other processes running at the same time. This is its "niceness" value, with -20 being most favorable to the process. Some graphical task managers can do this, but otherwise, you can use the "renice" command as so:
  
 
  <nowiki>sudo renice -n -20 -p $(pgrep Dwarf_Fortress)</nowiki>
 
  <nowiki>sudo renice -n -20 -p $(pgrep Dwarf_Fortress)</nowiki>

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page:

This page is a member of 2 hidden categories: