Induction Charging Revamp

by OwnlyMe

Use your electric network to power your equipment grid.

Content
4 months ago
2.0
1.40K
Armor Power

g ups killer

4 months ago

i updated the mod and it kills my FPS down to 30 instead of steady 60

4 months ago

oh wow thats crazy. i knew custom graphs could be quite taxing, but i didn't expect it to be that bad on some systems.
you can disable the graph in the player-specific settings and turn up the update interval in the map settings

4 months ago

let me know if you need further assistance.
what you described sounds a bit off, so i'd love to hear more details about your scenario (settings? how many entities with induction charging? what's your cpu? did disabling the GUI fix it?)

4 months ago

sorry for the late response, i used 9 induction charging,
my pc specs is:
amd ryzen 7 7800x3d
64gb ddr 5 6000 ram
samsung m.2 990 2tb ssd
rtx 4070 super
i highly doubt its my pc :)

4 months ago

i have difficulties reproducing your issue though, i can get over 600 ups with the mod... what about the other questions?

4 months ago

my grid is 13x15 >purple quality<
and i have the mod that makes all 1x1 sized its quite a few i think...but before the update i had zero problem.... after the update i dont know what changed
the UPS drops to 40 when it wanna push to 60

4 months ago
(updated 4 months ago)

By my testing this could happen when you have 100 grids of 200 batteries that are all just a tiny bit discharged and the update frequency at 1..
I can try to add some optimizations for this case
Before you had the issue must been when the coils were still acting like batteries, maybe those were fewer things it had to iterate over

4 months ago
(updated 4 months ago)

i have not changed my lay out
22 purple battery's, 80 shields, 21 tool betls, 4 robot ports 1 nightvision and belt immumity, 6 personal laser turrets 2 laser rifle charger >yes also a mod from you< :D and 4 exo skeleton

now i have 12 fission reactor's because i get TONS of ups lagg sadly

4 months ago
(updated 4 months ago)

i optimized the battery charging so it uses less than half the performance now
i also set the minimum intervals to 3 in the settings, which should make a huge difference when you have multiple entities with induction charging
you might need to set your preferred update rates again.
also i added 3 new map settings for you to try out. ("test 1", "test 2" and "test 3")
please enable them individually and let me know which one fixed the bad ups (and let me know what message it prints)

please also try pressing F4 and tick the "show-time-usage" in the debug mode tab.
Then press F5 and find the line with "mod-InductionChargingRevamp: xxxxx/xxxxx/xxxxx"
Please tell me what values it reports. anything smaller than 0.2 for the first value and smaller than 1 for the third value is well within spec (the values are average, min, max in milliseconds per tick)
this rules out that there's some unexpected resonance with another mod that creates these lagspikes. it also allows you to verify that the low UPS didn't just get converted into lagspikes every [default setting] ticks, if your update rate was lower than 3 before.

4 months ago

any new infos?

4 months ago

i optimized the battery charging so it uses less than half the performance now
i also set the minimum intervals to 3 in the settings, which should make a huge difference when you have multiple entities with induction charging
you might need to set your preferred update rates again.
also i added 3 new map settings for you to try out. ("test 1", "test 2" and "test 3")
please enable them individually and let me know which one fixed the bad ups (and let me know what message it prints)

please also try pressing F4 and tick the "show-time-usage" in the debug mode tab.
Then press F5 and find the line with "mod-InductionChargingRevamp: xxxxx/xxxxx/xxxxx"
Please tell me what values it reports. anything smaller than 0.2 for the first value and smaller than 1 for the third value is well within spec (the values are average, min, max in milliseconds per tick)
this rules out that there's some unexpected resonance with another mod that creates these lagspikes. it also allows you to verify that the low UPS didn't just get converted into lagspikes every [default setting] ticks, if your update rate was lower than 3 before.

i have no idea what you are talking about lol

4 months ago
(updated 4 months ago)

load your savegame and go into the mod settings
find induction charging in the "map" tab (the middle one)
there are 3 new settings:
"test 1-3"
activate them one after another and see if the ups killing gets fixed
please let me know which one fixed it

4 months ago

i unchecked the mod and when i reloaded it, it was fixed....i have no idea what happend sorry

4 months ago
(updated 4 months ago)

It would be a big help if you could test on your old save game what the cause was (by trying the new testing settings)

4 months ago

i made screenshots of all the tests usage
and the top one is with all test off

https://ibb.co/CsBqZsDn

i hope this was of big help :)

4 months ago
(updated 4 months ago)

Thank you, these numbers are very low so another mod must have caused the low ups I think.. or it already got fixed

4 months ago

i think it got fixed, when i updated your mod it killed the ups, when i turned it off the ups was fine....maybe it was a collision of 2 mods or more i dont know but i use all the mods i have right now and it is fine....maybe there was a error that was ruining my ups i dont know xD

4 months ago

Okay, thanks again for helping investigate this

New response