on_tower_mined_plant event should support filters
-
MeteorSwarm
- Long Handed Inserter

- Posts: 68
- Joined: Thu Sep 25, 2025 10:49 pm
- Contact:
on_tower_mined_plant event should support filters
All of the important events that would fire with great frequency on a large save, like on_entity_died, supports filters to improve performance. On_tower_mined_plant is an exception, and this makes certain optimizations I would like to make impossible. On a large save with many agriculture towers from several different planet mods, any script that only targets one plant type would fire on every agriculture tower at all times.
Re: on_tower_mined_plant event should support filters
I’m not against adding filters however I think you’re drastically over estimating the frequency that event happens. Outside of an artificial test case - and even in one - I have extreme doubts you’d ever see a performance difference with vs without filters.
If you want to get ahold of me I'm almost always on Discord.
