[multiplayer] Idle Hearthlings

After a while all the Hearthlings become idle, and refuse to work. This in includes their job, hauling, mining, building etc. The only work around is to pause the game for a little while, then suddenly all the Hearthlings will switch off idle.

Steps to reproduce:

  1. Made a multiplayer game
  2. We each had 12 Hearthlings
  3. After a while they stopped doing their job

Expected Results:
Hearthlings would work on available tasks

Actual Results:
Hearthlings would remain idle even though there was work to be done.

It seems this is an issue which has been reported since 2015. Is it possible the thread that assigns Hearthlings jobs is being starved? The fact that pausing the game for a short while works as a workaround, suggest this could be the case.


Version Number and Mods in use:
Stonehearth Version (x64)

System Information:
16 GB DDR3-1600 RAM
AMD R9-295X2
Microsoft Windows 10 Pro: 10.0.16299 Build 16299

Yes, this is a server performance issue and we are actively optimizing this right now.