KSPModdingLibs / KSPCommunityFixes

Community patches for bugs in the KSP codebase
49 stars 17 forks source link

Potential fix for issue #216 #220

Closed gotmachine closed 5 months ago

gotmachine commented 5 months ago

Optimization of raycasts in ModuleEngines.EngineExhaustDamage() and ModuleDeployableSolarPanel.CalculateTrackingLOS() :

On a side note, it seems there are some unrelated optimizations opportunities in ModuleDeployablePart.FixedUpdate() (which is the base class of solar panels, also shared by radiators and antennas), as when profiling (static) solar panels, the bulk of the call time was spent there doing more or less nothing. I suspect continuously (and uselessly) setting the drag cube weights is in large part responsible.