Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Hello, thanks for reporting! This should happen only on rare ocasions, as the search for a mill looks under a certain radius around the worker, so if the ideal mill is out of the radius, he might default to a "closer" one but requiring more walking. Increasing the radius degrades the overall performance of the game so I can't easily fix it unfortunately.

In general, you could get around the performance issue by calculating the distance to each tree from the mill and storing the closest mill / distance, then calculating the same each time a mill gets placed. Doing this with an R-Tree would be fairly cheap too!

Hey, nice suggestion, this is actually already in place! Every mill has a list of all trees around it by distance, and workers use it to find their next tree. 

But after their bags are full, they run a radius search to find the nearest mill, and that can still have edge cases of finding a mill across the terrain, and a closer one by walking distance is ignored because it was outside the search radius.