I dont know why the game slows down all the time.
The longer i play the more it slows down.
Then i save and load and it works fine for alittle. Then slows down again lagging.
Im at Stoneheart 0.19.0 (Release 687) x64 build.
My pc specs should not be the case. I have 32 bg ram.
Skylake I7
Nvidia GeForce GTX 980 Ti
etc etc. This pc can run nearly all games on maximum without much trouble.
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.
Could you upload your save so we can look into it? It should be in where you installed the game, compressing it and uploading it here, or if it’s too big via somewhere like google gDrive
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.
also i noticed the night is lagging the most of the game… can play daytime nice with smooth fps but when it gets night my game is lagging hard, im sure its because all of the lights