Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Diagnose my framerate problem!  (Read 3133 times)

EBannion

  • Bay Watcher
  • Visit my Blog, www.elleshaped.com
    • View Profile
    • ElleShaped
Diagnose my framerate problem!
« on: April 29, 2013, 06:26:00 pm »

Ok, so the save to which I will be referring can be found Here at DFFD

The thread which lead to this is over here.

In fort mode, at the end of the fortress, I was getting about 20 FPS which is in the 'acceptable' range for me.

In adventure mode, several independent adventurers have reported one frame per several minutes as a framerate, which is obviously not acceptable.

Useful information:

- Units:
       - DFHack 'slayrace' antpeople (there is a hive with like a hundred of them alive under the fort) netted no performance improvement
       - There is a nest of batpeople, and several (like, 6) FB's, many of whom have wings. It's possible that flyign pathfinding is part of the issue, but slaying the batpeople resulted in zero improvement, so... who knows


- Flows:
       - The underground sea is apparently not completely full and is sloshing around. On the idea that this might be leading to the framerate issue, an attempt was made to close the edges of the map with DFHack produced obsidian, and then to eliminate the non-full tiles of water to stop the sloshing. I"m not entirely sure of the efficacy of the experiment, and there could probably be more testing.

Does anyone know if there's an elegant way to freeze all of the water? That would let us eliminate water flows entirely as a potential source of issues.

       - The magma is pretty well-contained in its pipes, but I suppose that temperature or sloshing of magma could contribute. I don't think it's likely though since folks have adventurered themselves to places with magma and not been squashed by the FPS gods.

- Objects:
       - There're a lot of... things... scattered around, as is typical for a fort that gets 'crumbled' and then revisited. This didn't cause an issue the last iteration, though, so I don't think that it is related.

Anything else anyone can think of is welcome. If we can crowdsource a solution to this particular site's issue, it might result in data that are applicable in a more large-scale sense.

Please help!
Logged
Torturing Dwarves to death since 2007

mnjiman

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #1 on: April 30, 2013, 12:30:51 am »

I will take a look.

What are your computer specs?
Logged
I was thinking more along the lines of this legendary champion, all clad in dented and dinged up steel plate, his blood-drenched axe slung over his back, a notch in the handle for every enemy that saw the swing of that blade as the last sight they ever saw, a battered shield strapped over his arm... and a fluffy, pink stuffed hippo hidden discretely in his breastplate.

mnjiman

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #2 on: April 30, 2013, 12:43:07 am »

Sorry but why do I have to look for the fortress? I thought this was the fortress file itself.
Logged
I was thinking more along the lines of this legendary champion, all clad in dented and dinged up steel plate, his blood-drenched axe slung over his back, a notch in the handle for every enemy that saw the swing of that blade as the last sight they ever saw, a battered shield strapped over his arm... and a fluffy, pink stuffed hippo hidden discretely in his breastplate.

Catsup

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #3 on: April 30, 2013, 01:09:38 am »

i may post my save for diagnoses later too. Enjoy playing it if you guys want to too, i dont have any goblin torture rooms set up yet, but the corpse grinder and child smasher are fully set up and functional (well, only 2/4 corpse grinders are functional, but they havent seen any usage yet).

Broken

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #4 on: April 30, 2013, 01:28:20 am »

Look, here there is my adventurer, right after reaching the fort.

http://dffd.wimbli.com/file.php?id=7615
Logged
Quote
In a hole in the ground there lived a dwarf. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a dwarf fortress, and that means magma.
Dwarf fortress: Tales of terror and inevitability

EBannion

  • Bay Watcher
  • Visit my Blog, www.elleshaped.com
    • View Profile
    • ElleShaped
Re: Diagnose my framerate problem!
« Reply #5 on: April 30, 2013, 09:14:52 am »

I will take a look.

What are your computer specs?

4 gb RAM, 2.3ghz Athlon X2 dual-core, windows 8 64bit.

I haven't actually taken an adventurer to the site myself, but several other folks reported the same terrible framerate there so it seems like it's bad enough to be pretty common.
Logged
Torturing Dwarves to death since 2007

sealclubber

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #6 on: April 30, 2013, 11:25:49 am »

I will take a look.

What are your computer specs?

4 gb RAM, 2.3ghz Athlon X2 dual-core, windows 8 64bit.

I haven't actually taken an adventurer to the site myself, but several other folks reported the same terrible framerate there so it seems like it's bad enough to be pretty common.

It is common. AFAIK, DF doesn't handle multithreading all that well (if at all?) which is why there are terrible framerate problems even on high end systems with multicore processors. I just hope the new release fixes that...

In other news I'll poke around too and see if I can find anything.
Logged

EBannion

  • Bay Watcher
  • Visit my Blog, www.elleshaped.com
    • View Profile
    • ElleShaped
Re: Diagnose my framerate problem!
« Reply #7 on: April 30, 2013, 11:29:55 am »

Oh, yeah, totally. It makes sense since so many of the processes are dependent on each other; multithreading it would be a huge project all by itself.

Hopefully if we can narrow down the cause of the issues here, we can extrapolate and help Toady identify and remove bottlenecks, eh?
Logged
Torturing Dwarves to death since 2007

Azated

  • Bay Watcher
  • ohai der
    • View Profile
Re: Diagnose my framerate problem!
« Reply #8 on: April 30, 2013, 11:32:55 am »

I don't think the new release will have much to do with anything more than single-core support. DF is sort of complicated when it comes to massive re-writes like that.
Logged
Then it happened. Then I cringed. Then I picked it up and beat him to death with it, and then his buddies, too.
You beat a man to death with his dick?

"I don't feel like myself. Maybe I should have Doc take a look at me" ~ Dreamy
 "You're gonna trust a dwarf that got his medical degree from a pickaxe?" ~ Bossy

sealclubber

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #9 on: April 30, 2013, 11:36:31 am »

Oh, yeah, totally. It makes sense since so many of the processes are dependent on each other; multithreading it would be a huge project all by itself.

Hopefully if we can narrow down the cause of the issues here, we can extrapolate and help Toady identify and remove bottlenecks, eh?

That'd be dope, but unfortunately network security is my expertise. I'm totally vapid when it comes to programming. :)

I don't think the new release will have much to do with anything more than single-core support. DF is sort of complicated when it comes to massive re-writes like that.

True, but one can still hope :(
Logged

CaptainArchmage

  • Bay Watcher
  • Profile Pic has Changed! Sorry for the Delay.
    • View Profile
Re: Diagnose my framerate problem!
« Reply #10 on: April 30, 2013, 11:54:31 am »

Dwarf Fortress runs on four threads, based on the activity monitor. From what I've heard, the game mechanics (i.e. not graphics) seem to run on a single thread, and that happens to be the most intensive one, and some of those other threads (i.e. the parts of the game that are not the mechanics, such as OpenGL) were partly written by someone else.

I think the main source of performance drain is the number of items. I had one accident in a modded game (not modded by me) where a reaction produced 2500 items in one go. The FPS dropped by about 10 each time.

I think FPS also drops depending on the amount of the fortress excavated.
Logged
Given current events, I've altered my profile pic and I'm sorry it took so long to fix. If you find the old one on any of my accounts elsewhere on the internet, let me know by message (along with the specific site) and I'll fix. Can't link the revised avatar for some reason.

sealclubber

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #11 on: April 30, 2013, 12:50:35 pm »

Dwarf Fortress runs on four threads, based on the activity monitor. From what I've heard, the game mechanics (i.e. not graphics) seem to run on a single thread, and that happens to be the most intensive one, and some of those other threads (i.e. the parts of the game that are not the mechanics, such as OpenGL) were partly written by someone else.

I think the main source of performance drain is the number of items. I had one accident in a modded game (not modded by me) where a reaction produced 2500 items in one go. The FPS dropped by about 10 each time.

I think FPS also drops depending on the amount of the fortress excavated.

Good thing to keep in mind. I've been playing smaller forts (60 - 80 pop cap) for years now (mostly because I thought my junk laptop at the time couldn't handle anything higher). I then switched to larger caps of about 140 on a high end machine recently (in anticipation of the newest release) and noticed the problem was just as bad. The performance degradation caused by a bazillion items seems to be noticeable across the board. I might have to start getting fancy with dfhack.
Logged

EBannion

  • Bay Watcher
  • Visit my Blog, www.elleshaped.com
    • View Profile
    • ElleShaped
Re: Diagnose my framerate problem!
« Reply #12 on: April 30, 2013, 01:13:26 pm »

So, how can we test if the lag is primarily caused by the number of items on the site? Can DFHack delete items or something?
Logged
Torturing Dwarves to death since 2007

sealclubber

  • Bay Watcher
    • View Profile
Re: Diagnose my framerate problem!
« Reply #13 on: April 30, 2013, 01:55:54 pm »

So, how can we test if the lag is primarily caused by the number of items on the site? Can DFHack delete items or something?

Dunno how it can be done in adventure mode, but you can designate things to be dumped in-game and then just use 'autodump destroy' to nuke it off the face of the earth. Make sure those items aren't forbidden though.
« Last Edit: April 30, 2013, 02:35:19 pm by sealclubber »
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Diagnose my framerate problem!
« Reply #14 on: April 30, 2013, 07:20:26 pm »

I can only offer help in that I made a mod for people with FPS issues. Accelerated DF, but that cant be retro-actively fitted onto an existing fort.

The biggest issues for FPS is pathfinding, flows and temperature.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::
Pages: [1] 2