Mihara / RasterPropMonitor

Plugin for Kerbal Space Program. This repository is out of date and is primarily of historic interest. See https://github.com/JonnyOThan/RasterPropMonitor
http://forum.kerbalspaceprogram.com/threads/57603
Other
116 stars 67 forks source link

Optimize CUSTOM_, MATH_, and SELECT_ #548

Closed MOARdV closed 8 years ago

MOARdV commented 8 years ago

An adjunct to Issue #547.

This family of variables is used very extensively in more advanced IVAs, and they may be costly to process (particularly for compound nested varibles). I should see what I can do with them, and with VariableOrNumber, to make them less costly.

MOARdV commented 8 years ago

Changing VariableOrNumber has eliminated the need for optimization. The one outstanding issue that's been there all along is that any IComplexVariable that uses a random number doesn't will cache its value, since they're not aware of random numbers not being cacheable. It's not a tough fix, but I haven't done it yet.