Heavy lag at consistent intervals [0.18.1722]

Started by Parkin, May 24, 2018, 04:50:26 AM

Previous topic - Next topic

Parkin

Rimworld 0.18.1722 - no mods

Picked up the game a couple of months ago, absolutely adore it. However in my current game at year 5509, regular lag spikes are starting to become a serious issue even on 1x speed.

- no mods
- manual work priorities
- custom allowed areas for animals and people
- about 50 colonists, half on night shift
- around 300 animals

I do have a couple of satellite colonies (increased max colonies to explore the world), but I have confirmed the lag persists even if all colonies except the main are abandoned.

There are two specific situations where the lag spikes most heavily:

(1) Every six hours on 0h, 6h, 12h, 18h.
(2) Whenever a new animal is born.

For the six-hourly lag, I came across this thread which may be related. It's by far the worst cause of lag, always stuttering for at least ~20 seconds (and sometimes over a minute) whenever 0h/6h/12h/18h rolls around.

The animal birth lag is around ~3-4 seconds for each birth, 10+ times per day. I have a hunch as to a possible cause - I am rapidly approaching my 3000th Wild Boar, and the "Social" tab is a complete mess. See screenshot for <1% of the log.

Screenshot - https://www.dropbox.com/s/t1j6fr0nb4bu5ti/Animal%20Social%20Tab.jpg?dl=0

If this ever-expanding family tree is contributing to "birth lag", perhaps just recording the mother and father would be fine? Especially for fast-breeding animals it seems completely redundant to have a permanent record of every relation.

Savegame file - https://www.dropbox.com/s/n0p0naxi69oayav/Parkin.zip?dl=0

Output log file - https://www.dropbox.com/s/kctg2jsu11kqyzl/output_log.txt?dl=0

Canute

Hi,
there isn't anything you can do.
Rimworld isn't realy made/optimized for that hugh colonies yet.
You can try to use the mod
RuntimeGC In-Game Cleaner
https://ludeon.com/forums/index.php?topic=37257.0
To clear unneeded/dead stuff, but basicly the pawn's and animal's are still the main lag issue.

If you got many idle pawn's try the mod
IdleFix (maybe Tick MultiThread too)
https://ludeon.com/forums/index.php?topic=31646.0

All these mod's should be able to add to your colony without problems.