Singleplayer test: Lag spike during engine plasma flood. No damage visible on generator or airlock control.
Conclusion: Likely wiring damage lag.
Search results: The engine wires are directly connected to the whole station.
Old engine NOT connected.
Therefore, to stop the engine-crash, disconnect the powernet from generator to SMES terminal from the SMES to station powernet.
This reduces the size of both, so that when the engine destroys wiring during a plasma flood, the powernet rebuilding does not lag past the critical crash point.
Oh, wait, no, they are split, however, the wiring needs to be adjusted.
Coding project: modify powernets to accept limited quantities of wires, but link to other powernets.
That, or a power distribution node that can be used to split two powernets and have them act as if they were a single one.
OR, port the SS81 conduit code as a long term goal, as it prevents the overuse of large networks.
Finally, maybe alter the code to pause after an especially long propagation...
Edit:
It worked: Pausing after every 40 wires of propagation only added about a second long pause before the syndicate closets were spawned, if those weren't there before, but there was NO visible lag when a superheated, admin-assisted, engine "leak" destroyed cables off the main powernet.
As usual, precompiled host files will be sent to Andrea(Do you prefer capitalized, as it is a name, or lowercase, as it is spelt?), though I will update noclip for passing the other direction through windows and windoors first...
Edit again: moved misplaced Edit: from mid-post to end.