Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Way to destroy dead/deceased list?  (Read 1807 times)

sadron

  • Bay Watcher
  • Manic Asphyxiation
    • View Profile
Way to destroy dead/deceased list?
« on: October 13, 2012, 01:14:31 am »

So obviously the gaming having to track your dead and what not after a while starts to lag the system. I was wondering if there was a way to just completely wipe it clean, and sure you'd be wiping them from reality but I figured it'd be a good way to clean up unnecessary resource hogging. Anyone able to tell me? I'd rather not turn off stuff like temperature if I can help it.
Logged

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: Way to destroy dead/deceased list?
« Reply #1 on: October 13, 2012, 01:18:56 am »

I'm not aware of any utility that does this out of the box, but at the same time I'm all but certain it's possible to do with DFHack.  I don't know if there would be any direct problems with it, but from my messing around with hacking DF, it seems to do a pretty dang good job of ignoring invalid ID references.  It would probably work.

I do wonder how much effect this has on FPS though, has anyone ever actually thoroughly tested it?  I'm not sure how you'd do that really...
Logged
Through pain, I find wisdom.

sadron

  • Bay Watcher
  • Manic Asphyxiation
    • View Profile
Re: Way to destroy dead/deceased list?
« Reply #2 on: October 13, 2012, 01:28:20 am »

Yeah I use DFHack to regularly clear away blood and autodump destroy overflowing refuse piles. If there's a command for DFHack to prune this list and free up some FPS that'd be great. Please let me know.
Logged

AndreaReina

  • Bay Watcher
    • View Profile
Re: Way to destroy dead/deceased list?
« Reply #3 on: October 13, 2012, 01:43:49 am »

From the documentation on github:
Quote
fix/dead-units
Removes uninteresting dead units from the unit list. Doesn't seem to give any
noticeable performance gain, but migrants normally stop if the unit list grows
to around 3000 units, and this script reduces it back.

Can't run DFHack so I don't know if it's fix dead-units or just dead-units to call the script.
Logged

sadron

  • Bay Watcher
  • Manic Asphyxiation
    • View Profile
Re: Way to destroy dead/deceased list?
« Reply #4 on: October 13, 2012, 01:31:20 pm »

*bump* still don't have any proper information for this. Please respond if you know.
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: Way to destroy dead/deceased list?
« Reply #5 on: October 13, 2012, 01:51:17 pm »

fix/dead-units

You need the most recent version of DFHack, which is 34.11r2.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

sadron

  • Bay Watcher
  • Manic Asphyxiation
    • View Profile
Re: Way to destroy dead/deceased list?
« Reply #6 on: October 13, 2012, 03:06:05 pm »

Is that the actual code?
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: Way to destroy dead/deceased list?
« Reply #7 on: October 13, 2012, 03:21:35 pm »

Should be, it works for me. Did you get an error message when you tried it?
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.