Pathfinder has really high CPU usage very frequently

*I saw a few similar bugs reported but they were all back from February of this year or earlier.

As I’m trying to play, I very frequently notice that the pathfinder has high CPU utilization which causes the game to run slowly, stutter, etc. This happens during the day, night, when people are building, etc. Everything quiets down when my people go to sleep but even if they’re all sitting around the fire doing nothing the pathfinder is going crazy. Every now and then it will go back to normal for a minute but then it always starts back up. It got worse as I added more things to my world but I hardly think I have that much. Note: My guys do keep working and completing new tasks.

No mods or anything like that. I understand this is alpha and that this problem might go away or get fixed with some other stuff, so there’s no rush to try and support this but I’ll be happy to help however I can.

Stonehearth 0.1.0 r144 (Steam install)

Here are some screenshots of what I have going on right now: Imgur: The magic of the Internet

Intel Core 2 Duo
Windows 8.1 64-bit
Radeon HD 4850


Must be a problem with the game’s optimization or CPU.

I can confirm a similar amount of work on pathfinding relative to everything else, but I’ve never noticed the game suffering for it. On the other hand, I’ve triple the RAM of @jonzoid so that’s probably not surprising.

Is that the entire size of your settlement? Have you explored much outside that area in your screenshots? @ponder has been doing some good work optimizing the pathfinder just in the last couple of days, so the next update should give you some improved performance, but it’s surprising that you’re seeing these issues with such a small settlement.

Yep, that’s all of it and I haven’t been anywhere else. I looked around to try and make sure all my beds had plenty of space around them and stuff but nothing seems out of place. Maybe there’s some random item glitched out somewhere that everyone is trying to path to constantly?

Like I said, I can just start over and it’s no big deal. If a lot of other people have similar problems or if you need my world save for whatever to debug just say the word.

1 Like

Actually, being able to take a peek at your save could be really useful. This might just be a case of unoptimized code, but I’d love to be able to make sure that that’s all it is. Thanks!

1 Like

Thanks for the hard work on the weekend. :smile:

Here’s the save. I can get it to you via other means if this site doesn’t work: Free File Hosting - Online Storage; Upload Mp3, Videos, Music. Backup Files

Interesting. You have quite a few stockpiles, each with different items they are willing to accept. Our stockpile restocking logic is a bit unoptimized; this is normally not a big deal, as long as you keep the number of stockpiles on the low side. As the game gets bigger and more stable, this is going to become an issue, though, so I’m glad you brought this up! I’ll see if we can’t nip this in the bud :smile:


You’re right. I just loaded up that save and started removing all of my stockpiles and just left one massive one in there. I still had to remove pretty much every one, but I did get the pathfinder usage to die down.

1 Like

I’m going to go ahead and mark this one as resolved. The pathfinder is way better but since it’s apparent that it’s under continuous improvement there’s no need to have an unofficial open bug for it.