MOARdV / AvionicsSystems

MOARdV's Avionics Systems for Kerbal Space Program - a new generation of IVA enhancement.
Other
53 stars 26 forks source link

Convert GetAction to use native dynamic code #76

Closed MOARdV closed 6 years ago

MOARdV commented 7 years ago

Currently, all actions are registered as lambda functions that call Moonsharp to process the action. Based on the performance of Moonsharp and the garbage allocation overhead, it'd be worthwhile to see if I can apply the parser used for variables to create less expensive 'native' C# code.

MOARdV commented 6 years ago

I've made several attempts on this. Short of duplicating the entire variable processing stack, just with out evaluators, this isn't happening. The current configuration is probably the most efficient way to do it (single compiled Lua code snippet).