Try to change some settings, like shadows or maximum lights.
Use container to store your stuff, stockpiles could slow down the game.
Do not use the second building vision all the time, the one with half opened buildings.
From my experience the game still gets some massive lags from 90%-100% LUA activity.
I cannot figure what causes this but it generally happens when my workers are mining (into dirt at least).
No stockpiles on the floor (except potions), everything is stocked in chests.
No, i didn’t manipulate the water at all in this game. Not yet. But still the game is very laggy.
I tried on some games to make the water flow into holes and create artificial rivers. That was creating some massive lags but only the time the water filled up the area and then stopped.
Right now this cannot be related to water.
To me it looks like this could very well be a problem with too many Hearthlings. At the moment the Hearthlings AI is very ressource intense and this may be the problem here (especially since the AI is written in LUA and you say LUA has uses nearly all of the memory). Have you tried playing with less Hearthlings? (E.g. “delete” some and see if it runs better)
I’ve had the same issue. I’ve turned lights and shadows way down and still have it. It seems to occur when there are lots of lights, such as braziers. Typically saving the game, exit and restart works. Possibly a memory leak?
In your second savefile, @SquidNeko (the one that gets lag after a few minutes) it is caused by Ogo’s Army not finding a path to your city, which makes the pathfinder work hard. This will get solved once we introduce the new reachability service from Chris.
On your case, @TheMournful, looking at that screenshot seems to be the mining. Is all that a single huge region?
In that case the performance will be affected too. I believe devs mentioned once that we need to split mining regions just as we split the ones on building foundations. In the meantime, making smaller mining regions should help.