Bay 12 Games Forum

Please login or register.

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

Author Topic: Major excavations vs. my FPS: Fight!  (Read 1254 times)

Fossaman

  • Bay Watcher
    • View Profile
Major excavations vs. my FPS: Fight!
« on: December 04, 2009, 07:37:43 am »

So I'm trying to complete an epic project. Unfortunately, said project involves digging out the better part of a 3x3 embark tile square over 20 z-levels. At first I thought that the FPS drops I was experiencing were due to the large quantities of stone produced, but I've managed to keep that number below 20,000 by using atom smashers.

But my FPS has dropped from 150 to 50, while my dwarfs are idle. The end result of this project is supposed to be a big huge waterfall tower, but that's looking overly optimistic; I'm only about halfway through the excavatory phase, and I don't like to think what flowing water will do to my CPU.

So what's causing this? It's not excess items. It drops further with every level I dig out. My guess is un-revealed tiles being loaded into memory; if so, is there any way to fix it?
Logged
Quote from: ThreeToe
This story had a slide down a chute. Everybody likes chutes.

Ubern00b

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #1 on: December 04, 2009, 07:50:02 am »

Not a clue, but what sort of computer are you running?

I was thinking of doing this on my 6x6 map, now im not too sure if it'll lag or not.
Logged
Quote from: Canuhearme(Facepunch Studios)
Isn't Dwarf Fortress just a game of delayed free-fall into a hideously painful and frighteningly horrific death?

darkflagrance

  • Bay Watcher
  • Carry on, carry on
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #2 on: December 04, 2009, 08:02:01 am »

Alas...could this be another memory issue that will need fixing?

It might also be that atom-smashing does not actually eliminate all of the effects of mined out stone.
Logged
...as if nothing really matters...
   
The Legend of Tholtig Cryptbrain: 8000 dead elves and a cyclops

Tired of going decades without goblin sieges? Try The Fortress Defense Mod

Overspeculated

  • Bay Watcher
  • euklid on pth
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #3 on: December 04, 2009, 08:30:44 am »

Maybe I'm wrong, but I was under the impression that covered tiles do not strain CPU?

So... uncovering those tiles would make them strain CPU?
There you have it.
There.
Right there.
Logged

Retro

  • Bay Watcher
  • o7
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #4 on: December 04, 2009, 09:15:08 am »

Collapse the floors. I've been doing something similar; 25z collapsed down to a large open space. Admittedly I was also having FPS issues from rocks, but I solves that seperately. You'll get insane drain until you collapse the levels, thereby removing them.

smjjames

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #5 on: December 04, 2009, 11:06:39 am »

If you're using ramps, those kill FPS pretty quick.

In my current fort, I am having somewhat more lag than usual, I usually have FPS around 50-40, but its been in the 20s and 30s. It may be the way I have built my fort.

This is one of those times where a tool that shows where pathing is heavy or something is useful, but such a program does not exist. At least not for general use I don't think.
Logged

Derakon

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #6 on: December 04, 2009, 11:27:26 am »

I believe it's actually the digging designations that are hurting you here. Each accessible designation tries to make a job, after all.
Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

Hyndis

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #7 on: December 04, 2009, 11:46:36 am »

Digging ramps is the quickest way to excavate huge areas, but it will destroy your FPS. It will only destroy your FPS while digging however, once you're done your FPS will go back to normal.

I think this has to do with continually recalculating the pathing for multiple levels. If its just regular mining there is almost no FPS hit, but doing ramps which clears out two Z levels at once, your FPS is gonna die.
Logged

Fossaman

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #8 on: December 04, 2009, 05:04:13 pm »

Hm. This is a problem. I have been using ramps, and yes, I do see a larger FPS drop while the designations are active. But a lesser drop remains in place after each level is dug out.

And there are no floors to collapse, Retro. When I say excavation, I mean a big huge open pit quarry, not tunnels.
Logged
Quote from: ThreeToe
This story had a slide down a chute. Everybody likes chutes.

hitto

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #9 on: December 04, 2009, 07:47:21 pm »

I believe it's actually the digging designations that are hurting you here. Each accessible designation tries to make a job, after all.

That. Remove just half of the designations and you will see a huge fps boost.
Logged

Fossaman

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #10 on: December 04, 2009, 08:38:55 pm »

Nnnnnope. I'm talking about after all the active designations are gone, dug out, mined, destroyed. As in, there aren't any active designations on the map whatsoever. It is an ex-designation!
Logged
Quote from: ThreeToe
This story had a slide down a chute. Everybody likes chutes.

Firnagzen

  • Bay Watcher
  • [CURIOUSBEAST_INSANE]
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #11 on: December 04, 2009, 09:36:28 pm »

It may be the pathfinding. The algorithm searches every tile on the way to its destination, while looking for the shortest path, right? (Not sure. Not a computing sciences person.) So big, empty rooms would take up more computing power, because, well, all of it would be searched.
Logged
Christ, are you dwarves or are you elves? If you think Hell has too many demons, then you kill them till the population reaches an acceptable number.

Fossaman

  • Bay Watcher
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #12 on: December 04, 2009, 10:03:09 pm »

Hm. I don't think that's it, either. I've been doing excavations like so:

Code: [Select]
O_________O
OOOOOOOOOOO
OOOOOOOOOOO
OOOOOOOOOOO
OOOOOOOOOOO Stage 1

O_________O
OO_______OO
OOOOOOOOOOO
OOOOOOOOOOO
OOOOOOOOOOO Stage 2

O_________O
OO_______OO
OOO_____OOO
OOOOOOOOOOO
OOOOOOOOOOO Stage 3
[code]

Removing one level at a time, but keeping the overall number of walkable tiles the same. So unless it's something strange with z-level pathfinding...but that doesn't make much sense either. I've seen mountains with more ramps on them than I'm digging here.
Logged
Quote from: ThreeToe
This story had a slide down a chute. Everybody likes chutes.

Doomshifter

  • Bay Watcher
  • Deal with it.
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #13 on: December 04, 2009, 10:38:05 pm »

Maybe I'm wrong, but I was under the impression that covered tiles do not strain CPU?

So... uncovering those tiles would make them strain CPU?
There you have it.
There.
Right there.
It says in the wiki it's the other way around. Uncovered tiles strain less, probably due to the fact that it's a bit more strain to remember what is hidden there without telling you.
Logged
Add me on PesterChum! My chumhandle is doomedHermit.
Right now Rampages seem to be Godzilla quietly walking into Tokyo, biting the leg off of one reporter... then creeping off again without a sound.

Retro

  • Bay Watcher
  • o7
    • View Profile
Re: Major excavations vs. my FPS: Fight!
« Reply #14 on: December 04, 2009, 11:37:58 pm »

Ah, thought you were doing the regular-dig-then-collapse method. You can check if it's pathfinding by getting a lot of idle dwarves on one side of the quarry and designating an insane amount of no-talent jobs on the other; if there's a noticeable stall when you unpause that's your issue. Otherwise, that much stone shouldn't prove a problem at all; not sure what the issue would be then. Let us know what you find.
Pages: [1] 2