Ok, I made some optimisations to the transformer update code so now it only takes 3 times as long each tick as pole update, instead of 5 times as long. They still all update every tick, it will require lots more work to avoid this, which I can't do right now.
I did this by splitting create_update_transformer()
into create_transformer()
which does everything required to create a transformer, and check_transformer()
which only does the bare minimum required each tick. And things like surface and force are stored in global instead of re-requested each tick.
That's all I'll be able to do for the foreseeable future, sorry. You've probably just reached the limit of what is possible with a mod like this :(