on_tower_mined_plant event should support filters

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
MeteorSwarm
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Thu Sep 25, 2025 10:49 pm
Contact:

on_tower_mined_plant event should support filters

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 17563
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_tower_mined_plant event should support filters

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding interface requests”