Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Performance drop off, between games  (Read 1230 times)

crossmr

  • Bay Watcher
    • View Profile
    • Jeonsa
Performance drop off, between games
« on: May 04, 2010, 03:28:49 am »

I'm not sure where to post this. this isn't a bug, exactly.
I'm playing with Mayday, and I've played 3 or 4 forts now. Last one was biggish, many floors, around 120 dwarfs.

Performance was fine.

I started a new fort, got a nice location, setting it up just the way I want and at only 20ish dwarfs or so, the performance has completely tanked.
Every 2 or 3 seconds its locking up.

I changed nothing. Didn't do anything special.
I'm not sure if it has anything to do with the well I dug. It might. I started on the same layer as the brook. So in order to put in a controllable well I dug down a couple levels and dropped in a floodgate and a hatch to control the water and capped it with a well.

I seem to recall the performance tanking after that.. I can't imagine anything there should cause it to tank would it? have I done something wrong? I've had wells in all my forts thus far and they haven't caused performance issues, though usually those are several layers down and I'm basically just channeling them over and building on top of them.

I'm using the accelerator, the custom opengl dll. I tried it with and without and it keeps freezing up. I haven't changed anything between the last game and this one and now it is completely unplayable. Even tried downloading another copy of the game, which makes me think its something I've built. Can anyone look at a save and tell me if I did something weird that would cause  massive performance problems?
Logged

Tizer

  • Bay Watcher
  • [PREFSTRING:awesome top hat]
    • View Profile
Re: Performance drop off, between games
« Reply #1 on: May 04, 2010, 03:36:43 am »

Other then having some other program hogging CPU cycle, I think that the underground is more active or something and the other non-dorfs are stealing CPU. Strange
Logged

crossmr

  • Bay Watcher
    • View Profile
    • Jeonsa
Re: Performance drop off, between games
« Reply #2 on: May 04, 2010, 03:48:31 am »

I'm only about 3 or 4 levels down. I haven't gone any deeper than before I dug the well. Maybe one level, just enough to make the reservoir for it.
I haven't opened up any caverns and I have invaders off.
I even restarted and shut everything off.
Anyway to try and figure out what it's jamming up on? is there any kind of debug or something that can be run?
Logged

Tizer

  • Bay Watcher
  • [PREFSTRING:awesome top hat]
    • View Profile
Re: Performance drop off, between games
« Reply #3 on: May 04, 2010, 04:01:14 am »

Have a quick look though your possesses (Ctrl + Alt + Del > Possesses tab) and see if you see anything that's eating up all the ram/cpu.
What kind of environment is it? Is it larger, taller? Have waterfalls? Might be something that's killing fps. :\
Logged

crossmr

  • Bay Watcher
    • View Profile
    • Jeonsa
Re: Performance drop off, between games
« Reply #4 on: May 04, 2010, 04:22:02 am »

Have a quick look though your possesses (Ctrl + Alt + Del > Possesses tab) and see if you see anything that's eating up all the ram/cpu.
What kind of environment is it? Is it larger, taller? Have waterfalls? Might be something that's killing fps. :\

Dwarf fortress was the only thing using it up. Around 50%, nothing else was really coming close.

There is a "waterfall" as I said.
I dug a shaft beside the river/brook to drop the water down so I could make a well.
It looked like this from the side.

|---CCR|
|---C--|
|-W-C--|
|-H-C--|
|-CFC--|
River
Channel
Well
Hatch
Floodgate

Would that destroy the framerate?
Floodgate is closed, so water shouldn't be constantly flowing down there. The intention was to only open the floodgate again if the well ever went dry.

Otherwise the map is the same size as other maps, a little larger brook than I've played with before. It isn't near as big as anything I've built before.

here is my save:
http://www.sendspace.com/file/5zx6sq

luckily I have a backup just before I started digging out the well. If the well is what is causing it, I can design it differently. Maybe put the floodgate at the top before the water falls down.


[edit]
This seemed to be a waterfall issue. Since I moved the floodgate to the top it has been fine. What could possible be the reason for this kind of killer framerate on a little water moving vertically??
« Last Edit: May 04, 2010, 06:16:36 am by crossmr »
Logged

Calhoun

  • Bay Watcher
  • Reusable-Box
    • View Profile
Re: Performance drop off, between games
« Reply #5 on: May 04, 2010, 11:05:09 am »

Theres a lot of calculations with waterflow. Which means major slowdowns.
Logged
I know it's unrealistic, but I can't help but imagine little bearded babies for dwarves. In my mind, they come out of the womb fully bearded. That's how the mother carries them around, too, she just drags them around by the beard or ties it to her belt. When the father's on duty, he just ties their beards together and the baby just kind of hangs there, swinging to and fro with Urist McDaddy's movements.

crossmr

  • Bay Watcher
    • View Profile
    • Jeonsa
Re: Performance drop off, between games
« Reply #6 on: May 04, 2010, 07:37:46 pm »

Theres a lot of calculations with waterflow. Which means major slowdowns.

but are the vertical calculations so much more than horizontal ones? keep in mind that I had a floodgate at the bottom, so the water shouldn't have even been moving when the floodgate was closed. Now I have a bigger fort (around 40 dwarves) and no stuttering, so it must have been the well.
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: Performance drop off, between games
« Reply #7 on: May 06, 2010, 09:17:28 pm »

Spoiler (click to show/hide)

crossmr

  • Bay Watcher
    • View Profile
    • Jeonsa
Re: Performance drop off, between games
« Reply #8 on: May 06, 2010, 09:31:11 pm »

Spoiler (click to show/hide)

Huh? That doesn't make any sense. I remade the well, without the waterfall and there was no problem. I put the floodgate at the top instead of bottom so that there was no vertical flow except for a few seconds while I had it open. No performance issues. Well still exists.
Logged

Quatch

  • Bay Watcher
  • [CURIOUSBEAST_ GRADSTUDENT]
    • View Profile
    • Twitch? Sometimes..
Re: Performance drop off, between games
« Reply #9 on: May 06, 2010, 10:07:08 pm »

You're probably having a huge waterflow underground, say a lake draining offscreen. It doesnt start draining until you embark.

When it finishes you should get FPS back.
Logged
SAVE THE PHILOSOPHER!
>>KillerClowns: It's faster to write "!!science!!" than any of the synonyms: "mad science", "dwarven science", or "crimes against the laws of god and man".
>>Orius: I plan my forts with some degree of paranoia.  It's kept me somewhat safe.

crossmr

  • Bay Watcher
    • View Profile
    • Jeonsa
Re: Performance drop off, between games
« Reply #10 on: May 06, 2010, 11:43:46 pm »

You're probably having a huge waterflow underground, say a lake draining offscreen. It doesnt start draining until you embark.

When it finishes you should get FPS back.

It didn't happen at embark.

Quote
I dug down a couple levels and dropped in a floodgate and a hatch to control the water and capped it with a well.

I seem to recall the performance tanking after that..

For the record the problem was solved and clearly had something to do with allowing the water to free fall down the shaft, even though it was blocked at the bottom with a floodgate and shouldn't have been moving.


Logged

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: Performance drop off, between games
« Reply #11 on: May 07, 2010, 06:08:49 am »

If you do it again, does the problem come back?
Logged
Dwarven blood types are not A, B, AB, O but Ale, Wine, Beer, Rum, Whisky and so forth.
It's not an embark so much as seven dwarves having a simultaneous strange mood and going off to build an artifact fortress that menaces with spikes of awesome and hanging rings of death.

crossmr

  • Bay Watcher
    • View Profile
    • Jeonsa
Re: Performance drop off, between games
« Reply #12 on: May 07, 2010, 07:07:43 am »

If you do it again, does the problem come back?

I can try that. Next chance I get I'll load that old save up again and see how it reacts.
Logged

Meta

  • Bay Watcher
  • Aka Maunoir. French Dwarf
    • View Profile
Re: Performance drop off, between games
« Reply #13 on: May 07, 2010, 08:06:25 am »

Did you play with an external HD plugged into your computer? I remarked that DF is slower when I don't plug-in my external HD.
Logged
Generalized Godwin’s Law: "Every discussion within an online community converges to a zero-information signal characterized by empty assertions concerning the foundational dichotomy of that community."

Hyperturtle

  • Bay Watcher
    • View Profile
Re: Performance drop off, between games
« Reply #14 on: May 08, 2010, 12:16:36 pm »

Your game is slower when you don't have an external device connected?  That's really weird.
Logged
igless