So I had a nice little camp going… working my way up to a village… and getting lots of raids on against my well defended settlement. Was at 19 hearthlings and all going smoothly on my overkill PC…
As I was located right on the shores of a rather large body of water, I decided to try and create a moat around the settlement that would run up to the first “cliff” that was a higher level. there would be one bridge over this that I could easily defend with military troops and keep the raiders for harassing the hearthlings civilians as they continued to rack up wealth for me.
So I created a 3 depth x 4 wide permiter around the settlement - but did not mine out the last line of blocks that touched the body of water, I wanted to finish all the mining of the perimeter first. The existence of this moat with no water in it but just a single line of blocks stopping the water seemed to trigger some high LUA processes that kept the game VERY slow. As soon as I mined the blocks away … and the animation of the water filling the moat stopped the performance went right back to normal. I repeated this step a second time on another arm of the moat and sure enough the same thing happened. When the water is blocked from flowing into the moat by the small barrier it seemed to spike the LUA up to 50-80%.
Just an observation. I am about to start a new settlement and will let you know if I encounter this again.
Hope this info helps find another point of optimization.
Keep up the great work… love this game.