allista / ConfigurableContainers

This is a plugin for KSP mod development.
MIT License
8 stars 7 forks source link

Lag/freeze when placing tanks in VAB #20

Closed Xetaxheb closed 6 years ago

Xetaxheb commented 6 years ago

Anytime I try to place a tank that's editable with configurablecontainers there's a game-frozen lag spike, increasing in severity the bigger the symmetry is set and the more tanks being initialized at once.

By "place" I don't mean the click to actually place a tank, but moving the mouse with a tank on it in such a way that symmetry ghosts would pop up and it would start checking for valid surface/node placement spots. If I start a new ship, choose mk1 pod, strap an orange tank to the bottom, then put 8 decouplers in radial symmetry and try putting T800's on those decouplers, there's about 2 seconds of freeze as soon as the cursor-with-tank encounters the orange tank edge, then another 2 seconds of freeze when it encounters the decoupler edge. This only occurs with tanks, and i've definitely narrowed it down to this mod exclusively.

Being a programmer I get the gist of why it probably happens, guessing the tanks are being initialized during some function called when first encountering a new surface to attach to, rather than when actually placing the tanks.

Is this usual behavior or am I encountering something strange? (my computer specs are way above my modlist) Nothing useful is in my ksp log/console, unfortunately.