Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Performance question problems and questions.  (Read 1348 times)

GenJeFT

  • Bay Watcher
    • View Profile
Performance question problems and questions.
« on: October 07, 2017, 08:51:54 pm »

Hello.

Is there anyway to find out what is causing dwarf fortress to run slow. I was getting 20fps then suddenly it dropped to 6fps and I am not sure why. The only big thing I could think of that is a major change is that I captured a dragon and suddenly tamed it. It seems named creatures in cages trigger FPS issues for some reason. But I am not 100% sure what is up and its really annoying. I don't really want to let the dragon out of the cage to find out right now as its "semi-wild" and I don't want this sucker going wild and burning my youtube series fort up.

I know in minecraft (sorry) someone wrote a program that would look at the game and give you a read out of what was using all the resources in the game (like some random zombie stuck on something) so you could take care of the problem and speed it up. Is there anything like that for dwarf fortress?

Also an annoying thing I noticed as well. I looked at the resource monitor to see if it was my CPU that was slowing the game down and its not. The game is not using more then 15% of my CPU cycles. At first I thought it might be using one of several cores at 100% or something but nope, its not. So there also seems to be something that throttles the game from being able to use all the resources it possibly could use.

Any suggestions?
Logged

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: Performance question problems and questions.
« Reply #1 on: October 07, 2017, 08:56:19 pm »

This post might help guide you to diagnose the issue. Usually the drop you have may be something like mood or pet-impassable door somewhere, but may also be something in the caverns (ex, one person from yesterday had their fps killed by random cave crocodile).

MorsDux

  • Bay Watcher
  • If you only have a hammer, all problems seem nails
    • View Profile
Re: Performance question problems and questions.
« Reply #2 on: October 08, 2017, 01:23:34 am »

A sudden drastic drop is usually connected to pathing. Try walling off cave entrances but also if the caves are connected through tunnels, you need to wall those off too, so no creature can decide to go from 1 cave to another.

alternatively backup your save, use dfhack to exterminate wildlife dwarves etc. and reload the save when you found out what was the cause of the fps drop.
Logged

anewaname

  • Bay Watcher
  • The mattock... My choice for problem solving.
    • View Profile
Re: Performance question problems and questions.
« Reply #3 on: October 09, 2017, 12:30:15 am »

The only big thing I could think of that is a major change is that I captured a dragon and suddenly tamed it. It seems named creatures in cages trigger FPS issues for some reason.
I think it is not named creatures that cause the pathing FPS issues, but creatures that are attempting to path to another creature (usually pets, invaders, and creatures that are hunting). Speculation: They are attempting to path to a moving target, so they run the pathing calculation more often, sometimes over a long distance and probably each time their chosen target moves. I had a prison fort with 500-800 named and caged things, mostly goblinoids but including a dragon (never did get a mate for it) and FPS stayed steady about 20 except when new invaders arrived.
Logged
Quote from: dragdeler
There is something to be said about, if the stakes are as high, maybe reconsider your certitudes. One has to be aggressively allistic to feel entitled to be able to trust. But it won't happen to me, my bit doesn't count etc etc... Just saying, after my recent experiences I couldn't trust the public if I wanted to. People got their risk assessment neurons rotten and replaced with game theory. Folks walk around like fat turkeys taunting the world to slaughter them.

Staalo

  • Bay Watcher
  • It's all for the betterment of Dwarfkind - honest!
    • View Profile
Re: Performance question problems and questions.
« Reply #4 on: October 09, 2017, 09:24:57 am »

One perhaps less obvious pathing-related problem is related to doors. A door that's locked for animals but not dwarves ("Passable" in the building view screen) seems to be erroneously considered as open space for animal pathing. Because animals can't actually move through the door, it looks they start spamming pathing calculations trying to find a route through it over and over again. Even one animal head-butting such a door can crash FPS noticeably.
« Last Edit: October 09, 2017, 09:33:09 am by Staalo »
Logged
Kasmko Taldequihu, Human Criminal corrupted zombie is visiting.
Mong Todsporro, Human Criminal death zombie is visiting.

Uhhh... welcome?