Personal Transformer2


Allows you to charge your power armor from the electric network, and vice versa.

Content
25 days ago
1.1 - 2.0
3.05K
Armor Power

b High update time

a month ago
(updated a month ago)

Hello! I enjoy the mod, however I find the 1,7/1,1/4,2ms update times/UPS usage to be excessive. To clarify, I am talking about the update times available in the debug menu. I know modding is hard, but can there be anything done to reduce this? I don't even have that many entities using the PT.

a month ago

Unfortunately due to the nature of this mod, I don't think I can reduce the UPS usage of the mod any more than I already have.
To be more specific, unlike most mods which use event triggers to only run their logic when a specific event runs, PT has to be done on_tick. Meaning that for every game tick it has to run the calculation logic. I've looked into other options for trying to reduce the update times but according to some of the more experienced modders, there is sadly no better way of implementing it.

If you want to reduce the update times, you can increase the tick delay in the settings. I've had pretty good results with turning it up to about 5, but if you want/need faster update times then the lower number is for you. Another option is to make sure that on your personal armor you disable the input and output when you're not using it so that it doesn't run the calculations for the PTs in your armor.

If that still doesn't work for you, there is another mod out there that creates a charging station for your armor. Though, I'm not very familiar with it, and you do have to go to those specific stations for it to work. Though, I'm not sure if it has been updated for 2.0.

I do wish I could make it perform drastically better, but I think I'm stuck with this unless Wube provides another way with the API. Of course, if anyone does learn of a better way, please direct me to it as I would like this mod to be the best it can be.

New response