Zomis / FactorioMods

Various mods for the game Factorio
https://mods.factorio.com/mods/zomis
MIT License
15 stars 7 forks source link

Speed up resource count #9

Closed Zomis closed 8 years ago

Zomis commented 8 years ago

By storing the resource-entities that was found while hovering, it can save performance by only having to loop over those entities again (assuming we're still holding over the same resource group), instead of searching again for which tiles contains resources.