narc0tiq / YARM

Yet another variant of the Resource Monitor for Factorio
https://mods.factorio.com/mod/YARM
MIT License
59 stars 43 forks source link

Scan bigger chunks #186

Open narc0tiq opened 5 days ago

narc0tiq commented 5 days ago

Configure a linking distance for ores (Factorio may already have this property) and search larger areas with find_entities_filtered to look for connected ores from the same patch.

Compare performance with the single-tile, single entity search we do right now. I suspect it will be faster to iterate the larger result than to search N times.

narc0tiq commented 2 days ago

Factorio does already have the property, but it exists only in the data stage: resource_patch_search_radius (default 3) controls how the mouseover counts are done on the map.

I suppose we'll have to have our own search radius (but 3, aka a 5x5, seems like a good start).