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 40d Talk: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 "40d"). 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 10: Line 10:
  
 
::Wow, I can't stand things if FPS falls under ~80! Though, running a 2.1Ghz Dual Core and 512M 8600GeForce probably has some bearing on it. Personally, I run my G_FPS at only 10, and FPS_CAP at 200. I haven't gotten to economy sized populations yet with these settings (mostly on purpose cause I also keep my POP_CAP to only 10 until I've gotten the majority of the fortress dug out and a good stock of food and bedrooms, etc. The extra dwarves end up just getting in the way any other time I've tried my play-style. With this setup, I usually average around 150 FPS. Also, I've noticed a difference in FPS if I have the map section open, either single or double pane, moreso when there are a large number of creatures on the map. Simply closing (tabbing) the map got me an increase from ~125 to ~140. Should be worth 2-3 frames at the low FPS levels you guys are talking about. I'm also curious if the FPS counter itself has a significant effect on frames... --[[User:n9103|n9103]] 11:40, 17 Dec 2007 (PST)
 
::Wow, I can't stand things if FPS falls under ~80! Though, running a 2.1Ghz Dual Core and 512M 8600GeForce probably has some bearing on it. Personally, I run my G_FPS at only 10, and FPS_CAP at 200. I haven't gotten to economy sized populations yet with these settings (mostly on purpose cause I also keep my POP_CAP to only 10 until I've gotten the majority of the fortress dug out and a good stock of food and bedrooms, etc. The extra dwarves end up just getting in the way any other time I've tried my play-style. With this setup, I usually average around 150 FPS. Also, I've noticed a difference in FPS if I have the map section open, either single or double pane, moreso when there are a large number of creatures on the map. Simply closing (tabbing) the map got me an increase from ~125 to ~140. Should be worth 2-3 frames at the low FPS levels you guys are talking about. I'm also curious if the FPS counter itself has a significant effect on frames... --[[User:n9103|n9103]] 11:40, 17 Dec 2007 (PST)
 
:::Dude... you are runnning the game displaying at 10 FPS even though it's 80~200 FPS (IE: Should be pretty damn jerky), and never got an economy sized population. Of course you have a good FPS. Hell, mine was sticking at 100 with 10 dwarves and I just have a ~2 year old straight out of the box PC. [[User:Milskidasith|Milskidasith]] 22:18, 11 November 2008 (EST)
 
  
 
== Weather and Trees ==
 
== Weather and Trees ==
Line 27: Line 25:
 
:::::HA! Tell that to Flingify() ^.^  Most things in DF do get a logical implementation... notable exceptions exist of course, but generally speaking, things follow commonsense. ... So Nya! --[[User:N9103|Edward]] 05:55, 22 March 2008 (EDT)
 
:::::HA! Tell that to Flingify() ^.^  Most things in DF do get a logical implementation... notable exceptions exist of course, but generally speaking, things follow commonsense. ... So Nya! --[[User:N9103|Edward]] 05:55, 22 March 2008 (EDT)
  
:Is any part of the area you embarked at evil? If so, are they the areas that the trees could grow in? (i.e. a mirthful mountain next to haunted woods) If you're beyond doubt sure that that's not the case, then going on what else has been investigated, I see one of two things: Complete deforestation *stops* tree growth, including saplings; Or, you've got some kind of bug that hasn't been documented yet. --[[User:N9103|Edward]] 19:05, 2 April 2008 (EDT)
+
:Is any part of the area you embarked at evil? If so, are they the areas that the trees could grow in? (i.e. a mirthful mountain next to haunted woods) If you're beyond doubt sure that that's not the case, then going on what else has been investigated, I see one of two things: Complete deforestation *stops* tree growth, including saplings; Or, you've got some kind of bug that hasn't been documented yet.
  
 
== Economy ==
 
== Economy ==
Line 58: Line 56:
  
 
:::::How about using floor hatches every level? -- Digger
 
:::::How about using floor hatches every level? -- Digger
 
::::::Those cause annoying blinkage. --[[User:Silfir|Silfir]] 07:17, 5 November 2008 (EST)
 
 
:::::::Don't use stairs at all. Use ramps, the distance to travel a ramp is only 1, compared to a stair, which is two. (ramps, step on it, your down auto; stairs, you step on it, then you step down.) <small>&ndash; [[template:unsigned|unsigned]] comment by [[User:Zchris13|Zchris13]]</small>
 
 
::::::::Please, please, ''please'' sign your comments (use four tildes). Anyway, I haven't had any significant problems with dwarves dodging and falling down stairs, because my levels don't span in a way that allows it to happen in the first place. Personally, I find that it's easier to lock down things that way, but others will probably disagree. ~ [[User:Midna|Midna]] 02:11, 9 December 2009 (UTC)
 
  
 
== Weather and windmills ==
 
== Weather and windmills ==
Line 78: Line 70:
  
 
:Well... from that data, that's likely. Personally, I play all my forts on separate worlds. --[[User:Savok|Savok]] 15:12, 21 March 2008 (EDT)
 
:Well... from that data, that's likely. Personally, I play all my forts on separate worlds. --[[User:Savok|Savok]] 15:12, 21 March 2008 (EDT)
 
:I think I have to second the idea of (small histories == higher framerates) I've been playing a lot of small and smaller worlds, and even when I pick larger than normal sites, my frames seem to stay up better than on standard worlds.  I'll test at some point just how well a Full Local map holds up in a Pocket world. --[[User:N9103|Edward]] 19:04, 2 April 2008 (EDT)
 
 
== Disconnection ==
 
 
I've found it '''VERY''' important, in terms of framerates, not to block all paths between your fortress and the outside world, either with raised bridges, or with forbidden doors. I'm not certain about walls, as I haven't desired "permanent" blocking, but temporary, to prevent thives and the like. Infact, pathfinding errors from those I desire to keep out are exactly what crashes the framerate.<br>
 
<br>
 
I'm talking about '''50% loss''', and that's just to start. If you continue to block the pathfinding, It's possible to have it completely crawl to a stop, as in 0-1 FPS!<br>
 
It's a shame that such a primitive defense results in such a catastrophic failure of the pathing system. :(<br>
 
<br>
 
As I didn't see it mentioned anywhere, I'm adding it here, and will eventually add it to the main article if no one else feels like pretty-ing it up for display.<br>
 
--[[User:N9103|Edward]] 17:42, 29 March 2008 (EDT)
 
 
:That's happening for you? I've been setting up an elaborate set of bridges and floodgates that serves as the only entrance to my fortress, and have closed my dwarves off inside on numerable occasions and it caused little more than make them cancel tasks that required them to leave the fortress.--[[User:Eurytus|Eurytus]] 15:57, 2 April 2008 (EST)
 
 
::Have you turned off invasions as well? I used to do that when I played with invasions off to develop my management abilities. I did it now in three different worlds (smaller) and have had it happen every time. The framerate loss began as soon as a goblin/kobold tried to do mischief and pull a lever, as determined in the error log. I would assume that thieves/snatchers would likely cause similar frame-crashes, but that much isn't verified on my part. --[[User:N9103|Edward]] 04:04, 4 April 2008 (EDT)
 
 
:::I have invasions on, although any attackers have died rather quickly.--[[User:Eurytus|Eurytus]] 21:48, 2 April 2008 (EST)
 
 
::::Hey look! invaders! I closed the gates and lowered the bridge, but my framerate didn't drop. In fact, just as the invaders got there my framerate went back up from a puzzlingly low 40 back up to a regular 90.--[[User:Eurytus|Eurytus]] 22:19, 2 April 2008 (EST)
 
 
::::I've tested it again with a couple more waves of goblins, and I've come to the conclusion that the preceding immense slowdown is while the goblins are on the map but not in view. This makes me think that either hidden units contribute to lag more, or the difficult terrain in my area causes their pathfinding to temporarily "freak out."--[[User:Eurytus|Eurytus]] 1:03, 3 April 2008 (EST)
 
 
:::::Well, it would seem obvious that invaders have glitches that have direct effects on framerates... just not well defined effects :-/  The "not in view" part seems true enough since the 'mischief-makers' are always invisible until discovered, and my forts generally have been rather far from invasion points. Looks like this is gonna be on hold for the page until someone does some '''extensive''' testing. --[[User:N9103|Edward]] 04:04, 4 April 2008 (EDT)
 
 
::::::I'll be happy to start testing it as soon as I start establishing some more long-term fortresses.--[[User:Eurytus|Eurytus]] 11:23, 4 April 2008 (EST)
 
 
:[[User_talk:Squirrelloid#Animals_try_to_path_through_tightly_closed_doors|Squirrelloid]]'s done some tests that end up proving the same point, but with animals instead of thieves/snatchers. Both of those groups use flawed pathfinding that doesn't properly account for created obstacles that are passable under certain conditions that aren't true at the time of the pathfind. (Doors being forbidden, or bridges raised for the thieves, and doors being designated as pet forbidden for the animals.) I still say that failed pathfinds cause 90% of framerate loss. --[[User:N9103|Edward]] 06:24, 1 May 2008 (EDT)
 
 
:I've uploaded a zip of my errorlog.txt that encompasses a decent, but not overly long amount of time. The unzipped file is 22MB! Thankfully, text compresses very well, and the zip is only 387K. <99% of the file is failed mischief from either goblins or kobolds. [http://dffd.wimbli.com/file.php?id=167] --[[User:N9103|Edward]] 02:29, 11 May 2008 (EDT)
 
 
: At some point the article on Maximizing Framerate should include a section that deals with player actions that can have an impact.  Things like connecting a large open pipe system to a running water source, mass-designating stone for dumping, and closing off your fortress should all be listed as cons.  I'm doing some research right now into the benefits of intelligent [[traffic area]] designations as well.  For example, rooms larger than 11x11 with only two doors should have a high-traffic line linking the two doors, and two low-traffic "curbs" on either edge, to prevent the Dijkstra half of A* from spending extra cycles looking in dumb places. --[[User:Jurph|Jurph]] 18:01, 8 April 2009 (UTC)
 
 
== Dual Screens ==
 
 
I just put a second monitor on my computer, partly so I could fullscreen DF with the wiki in another screen. However, running DF in fullscreen make sit take up one screen like normal, and the other goes black. Ckciking the black monitor causes DF to stretch across the monitors. Since there is info here about running DF in one monitor to save CPU cycles, I was wondering is anyone could help. <small>&ndash; [[template:unsigned|unsigned]] comment by [[User:Ilmmad|Ilmmad]]</small>
 
 
:I don't understand what you're saying. Dwarf Fortress does not do that on my computer. Operating system, perhaps?<br>By the way, sign your comments using <nowiki>--~~~~</nowiki>. --[[User:GreyMario|GreyMario]] 17:24, 22 April 2008 (EDT)
 
 
:When you enter fullscreen mode with most graphics apis (such as OpenGL) you will take full control, which is why the other screen goes black. Your best bet is to run in windowed mode with the window size set to your resolution. --[[User:Shades|Shades]] 18:01, 22 April 2008 (EDT)
 
 
::I had this same thought; and did some measurement - on Windows with the "windows standard" theme and default fonts, the room needed for the chrome is 27 pixels vertical, 8 pixels horizontal. [[User:Random832|Random832]] 10:31, 14 October 2008 (EDT)
 
 
== temperature ==
 
 
From the article "" You're well-advised to stick with "warm" or "hot" fortress sites if you turn temperature off and your source of water is a stream.""  ---  I cannot understand that. --[[User:Catpaw|Catpaw]] 08:29, 16 September 2008 (EDT)
 
 
:If you turn temperature off, and you start on a cold location with a stream, the stream will be frozen and never thaw.[[User:DaBing|DaBing]]
 
 
So wait, it says some "rather nice lava warming effects" are turned off, but what are these exactly? Can I still dump stone in lava? What stops working? [[User:Ar-Pharazon|Ar-Pharazon]] 17:09, 18 February 2009 (EST)
 
 
:You can still dump stone in lava, it just won't melt as there is no heat transfer. --[[User:Elvang|Elvang]] 21:00, 18 February 2009 (EST)
 
 
== New 40d# releases and the Acceleration program ==
 
 
So I'm sure most of you are aware of the new 40d releases (I think it's on 40d7) that toady has been putting out that incorporate better handling of OpenGL. In so far as I understand, he is combining the acceleration program into Dwarf Fortress, so they come 'packaged' together right out of the box. Also, the thread that the wiki is linking to ( http://www.bay12games.com/forum/index.php?topic=27262.0 ) is stated to be obsolete and sends the user to the 40d# thread ( http://www.bay12games.com/forum/index.php?topic=27262.0 ). I think we should update/remove/replace the 'acceleration program' portion of this article to point users to the new 40d# releases, unless we want to wait until Toady releases something final before changing anything? If do decide to change it, we might want to make people aware that there WAS an acceleration program, but it has been superseded by the new 40d# releases. Thoughts? --[[User:Sinergistic|Sinergistic]] 00:24, 6 January 2009 (EST)
 
 
=== Turn Mouse Support Off ===
 
 
With the graphics-accelerated versions of 40d above, I've found that turning mouse support completely off ( [MOUSE:NO] in init.txt ) has had greater improvement in framerate than anything else I've tried.  Can anyone else confirm this? (nammyung)
 
 
:This does not appear to be the case in 40d17 - FPS also seems unaffected with .bmp cursor enabled. [[User:Kludge|-K]] 23:51, 9 February 2010 (UTC)
 
 
== Small Worlds ==
 
 
I noticed mention of small worlds.  I have no doubt that they probably reduce lag, but I will argue the creation time issue.  My experience so far has been that "pocket" and "smaller" sized worlds take longer to gen than "Small" and "Medium," because of the shear volume of rejected attempts in the initial creation stage.  My experience is entirely with 40d and 40d9. [[User:Burlingk|Burlingk]] 01:42, 10 February 2009 (EST)
 
:You don't get many rejects with the default configurations for worlds. When you start changing those, yes, rejects will happen, especially if you're trying to fit as much into a pocket sized one as you would into a small. [[User:Shardok|Shardok]] 00:06, 25 August 2009 (UTC)
 
 
== Peasant cancels Rest: Interrupted by recruit ==
 
 
This event caused my FPS to drop to <1. One of my recruits went berserk over the loss of his pet and started attacking an unlucky peasant. The peasant went unconscious and the above message was spammed on the screen thousands and thousands of times. As soon as my military had finished off the berserk recruit, the FPS jumped back to the solid 100.
 
 
== Random Flickering? ==
 
 
I've found that if the G-FPS is set to below 40 i get a severe flickering which affects the use of lists (like military and unit lists) I'm wondering if anyone else has experienced this or if its just something with my computer...[[User:Haydosss|Haydosss]]Haydosss - 20-2-2010
 

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!

Please sign comments with ~~~~

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

Cancel Editing help (opens in new window)