Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: fps went from 50-100 to 0-4  (Read 986 times)

justicarab

  • Bay Watcher
    • View Profile
fps went from 50-100 to 0-4
« on: December 19, 2014, 01:34:41 pm »

is there a way to see what is the cause of it, it just happened all of the sudden

here is my save, thank you if you take the time to look at it. i can imagine it takes a while to find it.

https://mega.co.nz/#!cBJFnR7L!KygrSReuXjmUo7XYaKAonAP9EQOeN8l_QJEhfze-ito
Logged
This forum is the most helpful and polite i have ever seen. always happy to help my many post and to you all i say thank you so much for making me feel welcomed!

Foxite

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #1 on: December 19, 2014, 04:32:27 pm »

This always happens when I start a new fort... the first few ingame seasons are nicely between 80 and 100 fps, although fluctating wildly it seems to mostly stay in that range. After the second migrant wave the fps drops dramatically, from nice 80s to 60s. Although the effects appear to decrease with each migrant wave, After reaching the 100 population milestone my FPS is waving around 10 or 15. But that's just because of my sucky pc.

To keep your FPS nice and high:
  • This doesn't really help, but try to keep your computer up-to-date, both in software and hardware. Better hardware has a MUCH better effect on your FPS than better software.
  • Consider wether you really need 200 dwarves. Try lowering the population cap in d_init.txt to something like 150 or 100. More dwarves always means less FPS.
  • Refrain from breaching and exploring the caverns unless you really need to. The revealed tiles cause significant drops in FPS.
  • Don't do exploratory mining when you don't really need to. The revealed tiles and the items created cause a small drop in FPS, although unnoticable in the short term, it will hurt the framerate on the long term.
  • Before embarking, consider not getting a site with a river. Flowing water can quite lower FPS. If you really need water, you can almost always get it from the caverns.
  • Before embarking, consider getting a smaller site like a 3x3 embark. This will dramatically increase the FPS. A 2x2 embark will launch the FPS to space, but it will severely handicap your fort.
  • Before generating the world, consider genning a smaller world and a very short history. Doing this will skyrocket the FPS, especially on older machines. The effect is not as great in v0.34.11 and before, however.
  • Soundsense is a great and awesome thing, but can lower the FPS on older machines. Unless you rely on it for cues, you may want to disable it.
« Last Edit: December 19, 2014, 04:44:15 pm by latias1290 »
Logged
The best way to demonstrate it to him is take a save of 40 year old fortress with 150 dwarves in it on a good sized embark with a volcano that just breached the circus and install it on his gaming rig and watch it bring his rig to its knees.

justicarab

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #2 on: December 19, 2014, 05:01:02 pm »

wow thank you for the helpful advice, it means alot that you took the time to look at my save!
My computer is far from low spec. i have a very powerful pc, and i heard that the game has a 2gb ram limit, and i heard of ways to raise it... is this true? i have 12 gigs and most of it is never used.
would this help alot?
Logged
This forum is the most helpful and polite i have ever seen. always happy to help my many post and to you all i say thank you so much for making me feel welcomed!

PatrikLundell

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #3 on: December 19, 2014, 05:19:46 pm »

Using the 4 GB patch will just allow you to do a larger embark without the game crashing, while the FPS crash dives, so no, it won't help.

There is a wiki page on "FPS" with some info. Apart from reducing the number of dwarves, reducing the number of livestock should help as well. Locking livestock in so they have nowhere to go should help remove their pathfinding CPU usage, although there is (was?) a bug that caused animals to still try to path through tightly locked doors.
For some reason the graphics cause a significant FPS hit when viewing the above ground situation, especially if there are significant elevation differences in the view, so if you're reasonably OK until the late stages you can get things a bit speedier by looking at things under ground.
Logged

justicarab

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #4 on: December 19, 2014, 05:27:03 pm »

ok, thanks guys for the help
Logged
This forum is the most helpful and polite i have ever seen. always happy to help my many post and to you all i say thank you so much for making me feel welcomed!

Vndetta

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #5 on: December 19, 2014, 05:55:35 pm »

I took a look at your save and have a few ideas. I've got a new PC myself and the FPS was indeed single-digits, whereas my own fort is up near 100, so I see your problem. Here's my advice:

1) You have a huge number of items marked for dumping. Each item is its own job request. This causes the dwarves to path and sort this out, and can account for the "sudden" drop. If you don't find it too exploity, you can use DFHack to mass dump items instead.
2) You have a huge number of items, period. I saw over a thousand stone, cloth, food, plants, etc. - each! - in a couple cases two, all laying around. Tons of worn clothing. The biggest FPS gain I've ever experienced in any fort was after trading thousands of these items that I didn't need. I went from 1 FPS to 80 the second the caravan left the map. Make stuff out of the cloth, cook/mill/etc. the plants, trade the excessive meals and drinks (dwarves don't eat much), trade or smash the rest. I also suggest using quantum (one-tile) stockpiles with one-tile minecart dumps because big stockpiles seem to send out requests for items and lag everything to pieces. Let me know if you'd like an example on how to stockpile this way and I'll explain it in more detail.
3) You have a high population of dwarves and animals (200+ each). The animals run around and path in their pastures, too, so you could consider putting the non-grazers in cages or individual 1x1 pastures or otherwise limiting their ability to wander, and slaughtering any animals you don't need. I personally cage the babies, keep adults with "huge/fat" descriptions for breeding, and slaughter the rest.
4) Big designations like stockpiles, plant gathering/chopping, smoothing and so forth can cause sudden lag. Big open areas can do it, to a lesser extent, because units have to pick which way to go... it's usually a minor difference, but you could try using traffic designations with [d-o] to make preferred paths to get around in your fort.
EDIT: 5) I'm sure it's on purpose, but you have some dwarves locked in rooms with no path out, one of which is in a strange mood. Dwarves that can't path will keep trying, and that equals lag.

In my opinion a lot of the standard other answers aren't really a big deal in your case, if your PC is decent - your water is a brook, your embark isn't insanely big nor is your fort insanely old. There weren't many contaminants. You have some dfhack autoscripts running, which can slow things down a touch, but your PC should be able to handle it. I'd work on the things listed above - especially the second one! - and see if that helps.


tl;dr - you have too much stuff. Trade away your stuff.
« Last Edit: December 19, 2014, 08:17:06 pm by Vndetta »
Logged

justicarab

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #6 on: December 20, 2014, 12:59:08 am »

i will definitely try it, thank you so much for the advice!
Logged
This forum is the most helpful and polite i have ever seen. always happy to help my many post and to you all i say thank you so much for making me feel welcomed!

utunnels

  • Bay Watcher
  • Axedwarf
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #7 on: December 20, 2014, 01:12:51 am »

Well before making the changes, back up your save.
Use autodump to destroy all the worn clothes and stones to see if fps is improved.
But I doubt that. I think the biggest offending factor is your animals.
Try exterminate them using dfhack then destroy their corpses to see the result.

Logged
The troglodyte head shakes The Troglodyte around by the head, tearing apart the head's muscle!

Risen Asteshdakas, Ghostly Recruit has risen and is haunting the fortress!

justicarab

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #8 on: December 20, 2014, 02:20:14 am »

well haha, this might sound wierd, but i killed allllll my llamas and poults (40+animals) and nothing... then i killed the two vampires i had in my trap (one with strange mood) and it went up to 40.. strange lol
« Last Edit: December 20, 2014, 02:31:27 am by justicarab »
Logged
This forum is the most helpful and polite i have ever seen. always happy to help my many post and to you all i say thank you so much for making me feel welcomed!

Deboche

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #9 on: December 20, 2014, 02:42:42 am »

That's not so strange. If he was in a strange mood, he might've been constantly trying to check for and path to an object.

I'd say you don't really need more than 70 dwarves and a 2x2 embark is also fine.
Logged

justicarab

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #10 on: December 20, 2014, 02:45:44 am »

i'm still really new (few weeks) but i'm hooked, i guess i have the mentality that i want the strongest largest fort in the worldgen... any advice to keep better track of my stocks? cause ya... i let alot get out of hand lol
Logged
This forum is the most helpful and polite i have ever seen. always happy to help my many post and to you all i say thank you so much for making me feel welcomed!

Headless

  • Bay Watcher
    • View Profile
Re: fps went from 50-100 to 0-4
« Reply #11 on: December 20, 2014, 10:14:58 am »

You seem to have some good advice already.  Just thought I would add an observation.  I had a military squad following a downward passage to the bottom of the world.  When they were done I Unstationed them and the fps went from about 45 back up to 80.
Logged