bfishman / Docking-Port-Alignment-Indicator

Official repository of the DPAI mod for Kerbal Space Program
MIT License
20 stars 7 forks source link

Code refactoring #7

Open mwerle opened 4 years ago

mwerle commented 4 years ago

A lot of the code could do with some refactoring and turn from polling into event-driven code.

This should make the code more readable as well as more performant.

mwerle commented 4 years ago

After some profiling, this is probably not so much an issue. Most of the heavy code is only run rarely, such as when we change the active ship. Might need some feedback from people with less powerful computers.