Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Managing FPS for Longterm Gameplay  (Read 778 times)

NTJedi

  • Bay Watcher
    • View Profile
Managing FPS for Longterm Gameplay
« on: September 26, 2018, 08:28:10 pm »

To my surprise my FPS have started dropping on a 5x5 embark size map (now at 40 FPS).  I've opened two caverns and can see the magma ocean further down.  PyLNP has 110 population cap and 50 visitor cap with processor priority on HIGH. Any advice or settings for improving the FPS so it doesn't reach unplayable levels??

    My system details:
Windows 10 Pro 64-bit
Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz (4 CPUs)
16 MB RAM
NVIDIA GeForce GTX 1060 3GB
Motherboard: Z170X-Gaming 6


               **  I posted a topic in the modding forum asking about a mod for a dungeon master unit, but no responses.  Would love to eventually improve upon randomly created worlds and upload them for other gamers.  Take a glance at the topic if you might know some answers for it. **
Logged

Bob69Joe

  • Bay Watcher
    • View Profile
Re: Managing FPS for Longterm Gameplay
« Reply #1 on: September 26, 2018, 09:25:32 pm »

I think you can put DFHack into your folder where the executable for DF is and use on any current fortress. That allows you to wipe the map of things like mud, and other spills, and vermin and bones. So what should be a natural process is done in a flash. The clutter is going to use up a lot of space and it should help to clear it. Now, I don't know what command that is to type into dfhack.
Logged

Dahrk

  • Bay Watcher
    • View Profile
Re: Managing FPS for Longterm Gameplay
« Reply #2 on: September 27, 2018, 03:49:09 am »

Some FPS is inevitable at that stage, 40FPS is actually pretty good for a mature fort.

Here are some things that impact FPS:
  • Background world events.
  • Temperatures calculations.
  • Weather.
  • Pathfinding.
  • Flowing water & magma.
  • Checking items for wear.
  • Contaminants on map tiles, creatures & items.
You can use the following commands in the DFHack console window:
  • clean map
    Gets rid of spatters of water, blood, vomit etc from all map tiles.
  • clean units
    Clean all creatures.
  • clean items
    Clean all items.
  • clean
    Does all of the above
  • cleanowned and autodump, used together, are very powerful, but more advanced.
Other things to bear in mind:
  • Avoid digging through the bottom of the world.
  • Use traffic designations wisely, to help your dwarves with pathfinding.
  • Close off unused areas, such as the caverns, with raised bridges.
  • The longer the world gen history and larger the world, the more your precious FPS will be lost to background processes.
« Last Edit: September 27, 2018, 04:13:22 am by Dahrk »
Logged

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: Managing FPS for Longterm Gameplay
« Reply #3 on: September 27, 2018, 07:01:15 pm »

If it was relatively rapid change, I'd check recent possible causes such as

- pet-locked doors
- recently installed alternate paths and digging (walling off helps improve pathfinding where the spaces hurt - bridges supposedly work too, but may not have quite the same effect going by TheAussieGuy's checkerboard experiments(spoilers). Also, they're slower to install and raise for spaces you're not going to use again)
- fighting and fire below
- too small tavern
(incomplete list)

Also, if you can't find an answer to a question and nobody else will provide either, you have to be the change you wish to see.
« Last Edit: September 27, 2018, 07:03:53 pm by Fleeting Frames »
Logged

NTJedi

  • Bay Watcher
    • View Profile
Re: Managing FPS for Longterm Gameplay
« Reply #4 on: September 27, 2018, 09:08:18 pm »

Great stuff!   Thank you!!
Logged

KittyTac

  • Bay Watcher
  • Impending Catsplosion. [PREFSTRING:aloofness]
    • View Profile
Re: Managing FPS for Longterm Gameplay
« Reply #5 on: September 27, 2018, 09:30:24 pm »

I don't worry much about FPS. When I reach 10 or so, I just tab away and do other things while my tasks finish.
Logged
Don't trust this toaster that much, it could be a villain in disguise.
Mostly phone-posting, sorry for any typos or autocorrect hijinks.