Page 1 of 1

on_tower_mined_plant event should support filters

Posted: Fri Sep 25, 2026 6:00 pm
by MeteorSwarm
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

Posted: Fri Sep 25, 2026 11:47 pm
by Rseding91
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.