dkavolis / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
77 stars 32 forks source link

FlightGUI.FixedUpdate is expensive in saves with lots of vessels #142

Open JonnyOThan opened 1 year ago

JonnyOThan commented 1 year ago

I was tracking down some performance issues and I noticed that FlightGUI.FixedUpdate seems to run for every vessel in the universe (and it's in FixedUpdate so it can run twice per frame). This amounted to about 3.5ms (7.5% of the frame) in a save with 250 vessels.