Bay 12 Games Forum

Please login or register.

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

Author Topic: Fortress Layout's effects on FPS?  (Read 2333 times)

Zardus

  • Bay Watcher
    • View Profile
Fortress Layout's effects on FPS?
« on: April 11, 2008, 04:25:00 pm »

So I have a fortress that is basically many (about 10 or 15) floors of:

code:

               ===========================
               ===========================
               ===========================
               ===========================
               ===========================
               ===========================
               ===========================
                          XXXXX            
                          XXXXX
                           +++    
                       WWW +++ WWW
                       WWW+++++WWW
                       WWW +++ WWW
                           +++    
                       WWW +++ WWW
                       WWW+++++WWW
                       WWW +++ WWW
                           +++    
                           +++                          
===========   WWW WWW      +++     WWW WWW   ===========
===========   WWW WWW      +++     WWW WWW   ===========
===========   WWW WWW      +++     WWW WWW   ===========
===========XX  +   +       +++      +   +  XX===========
===========XX+++++++++++++XXXXX++++++++++++XX===========
===========XX+++++++++++++XXXXX++++++++++++XX===========
===========XX+++++++++++++XXXXX++++++++++++XX===========
===========XX  +   +       +++      +   +  XX===========
===========   WWW WWW      +++     WWW WWW   ===========
===========   WWW WWW      +++     WWW WWW   ===========
===========   WWW WWW      +++     WWW WWW   ===========
                           +++                          
                           +++    
                       WWW +++ WWW
                       WWW+++++WWW
                       WWW +++ WWW
                           +++    
                       WWW +++ WWW
                       WWW+++++WWW
                       WWW +++ WWW
                           +++    
                          XXXXX
                          XXXXX            
               ===========================
               ===========================
               ===========================
               ===========================
               ===========================
               ===========================
               ===========================                                      

darkness - walls
+ - floor
W - workshop
X - up/down stairs
= - stockpile


Each wing of each floor is dedicated to a single type of workshop, and related workshops are stacked on top of each other (ie, the farm (with a slightly different floor layout) is directly on top of the still which is on top of the farmers market which is on top of the kitchen and so forth) so cross-fort traffic is kept to a minimum.

This is on a 2x2 map with no special features (no lava, river, underground river, just a few surface lakes) and like 21 z-levels. When I started it it was running at 750 FPS but now on almost year 3 with 50 dwarves it's fluctuating between 80 and 120, which is a pretty drastic drop. My last fort (which had a much more horizontal layout) was in a much bigger area (I think 4x4) with a cave river and a demon pit and well over 30 z-levels and was running at somewhere between 150 and 200 fps with the same amount of dwarves.

The FPS drop really surprised me because I figured that the pathfinding would be easier in this fort. What are the chances that the FPS drop is pathfinding related?

The other thing is that this fort is so much more efficient for the dwarves that I have created a ridiculous amount of crafts. I think there are over 1000 laying around right now, and not all of them are in bins. I read on the wiki that that may slow down fps as well.

Any guesses why the FPS is so low? It is making me sad, because I was hoping to run this fortress until I have a ridiculously huge population.

Logged

numerobis

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #1 on: April 11, 2008, 06:15:00 pm »

My friend, 80 FPS is exceedingly fast.
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Fortress Layout's effects on FPS?
« Reply #2 on: April 11, 2008, 06:29:00 pm »

as you dig deeper, you expose more layers to the memory system. that might have some effect on it.
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Sukasa

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #3 on: April 11, 2008, 07:41:00 pm »

80FPS?  Wish I had your computer, I can barely manage 60 with weather/temp turned off.  On the whole, your fort is pretty good, however if you widen the staircases and corridors some...
Logged
<@TRS[DF]> I'll drive this place into the ground faster than Boatmurdered

Shades

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #4 on: April 12, 2008, 05:58:00 am »

Stuff just laying around seems to have a unreasonably large effect on framerates. For example I recently dumped (into magma so removed totally) all the stone laying around in my fortress and gained about 15fps (on average) it didn't even take a month of game time to shift the stone either so it's unlikely the effects where anything else.

Likewise building bins seems to speed things up, I'm assuming because small items are placed in them and so certain calculations in the game are avoided.

Logged
Its like playing god with sentient legos. - They Got Leader
[Dwarf Fortress] plays like a dizzyingly complex hybrid of Dungeon Keeper and The Sims, if all your little people were manic-depressive alcoholics. - tv tropes
You don't use science to show that you're right, you use science to become right. - xkcd

Forumsdwarf

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #5 on: April 12, 2008, 08:12:00 am »

Digging test shafts causes massive lag, moreso than population increases in my experience.

I had a fort population ~30 go from supercharged to hand-cranked FPS-wise after about half a dozen test shafts dug at 20-diagonal-tile intervals.

Edit: I wouldn't be surprised if lag is the "test shaft lag factor" multiplied by population.  6 dwarves in Swiss cheese may still be very fast.

[ April 12, 2008: Message edited by: Forumsdwarf ]

Logged
"Let them eat XXtroutXX!" -Troas

Dwarf Fanatic

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #6 on: April 12, 2008, 09:51:00 am »

I think you have too many stairs... Your dwarfs will walk and then decide on THAT stair... he wanks until anothrrt dwarf interupps him. BAM! Change stairs! Also, the middle stairs are almost usless because they whon't use THOSE, theyr'll use the ones around it sinces they are always closer.
Logged
h, Nessing is cool and all. And Civilization goes from stone to steam punk, but nothin'' beats a good dose of Fanaticialism to Dwarf Fortress and a load of Dwarfen Rum!

TheDistur

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #7 on: April 12, 2008, 12:52:00 pm »

If you put locked doors on your unused shafts and things at some point, I'd think it might help? Also I agree with the others, 80fps would be very nice. I'd assume the stairs and the 1000's of extra objects might take it down a few notches though.
Logged

Metal Chao

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #8 on: April 12, 2008, 04:21:00 pm »

80 FPS?
My computer is so bad that I get 60 WHEN THE LAG IS LOW.

...

But then again, mine probably isn't a good comparison.

:V

Logged

Slappy Moose

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #9 on: April 12, 2008, 04:44:00 pm »

You better not be complaining, or I might just have to go upside your head with a bucket of mice.

You heard me.

Logged
Zaneg Thazor: Armok Reincarnate Story http://www.bay12games.com/forum/index.php?topic=19291.msg196691#msg196691

[Healthcare Update Thread] Personally, I can't wait for doctors to get possessed and start surgically attaching axes to champion soldier's arms.

Axle Gear

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #10 on: April 12, 2008, 05:35:00 pm »

I average 12-15 FPS.

Anywhere.

Logged

A_Fey_Dwarf

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #11 on: April 13, 2008, 12:02:00 am »

quote:
I average 12-15 FPS.

Anywhere.  


Same here, good old 1.6ghz 256RAM computer.
Zardus what sort of CPU do you have, because my mate just bought a quad core with 2gb of ram, and even he can't run the game at that speed.

Logged

zac4213

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #12 on: April 13, 2008, 05:51:00 pm »

Are you guys serious? I have a 1.2 ghz Pentium 4 processor and I average around 60 with 30 dwarves. In the first z level version I would have around 300 at the start (if I didn't go to any other z levels lol)

umiman

  • Bay Watcher
  • Voice Fetishist
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #13 on: April 13, 2008, 06:27:00 pm »

How can you play with the standard 100fps? It's impossible to keep track of what's going on and it would be nigh impossible to micromanage anything important!

numerobis

  • Bay Watcher
    • View Profile
Re: Fortress Layout's effects on FPS?
« Reply #14 on: April 13, 2008, 07:01:00 pm »

One way to increase FPS would be to reduce the number of times a dwarf does path planning.  So making all the paths short like in your present fortress is not optimal in terms of FPS.  In terms of useful stuff per second, though, your fortress layout is pretty golden.  

The only minor improvements would be to make it easier to walk diagonals to go from one quadrant to the next.  And, unless my math is wrong, it'd be slightly better in terms of A* to have your stockpiles flare out rather than opening at a sharp angle.

Logged
Pages: [1] 2