Matthew Twomey Posted October 2, 2020 Report Share Posted October 2, 2020 Just digging into Lua a bit and before I get too far, I wanted to understand how FSUIPC loads these. I'm not concerned at all with the startup time of FSUIPC, but for repeating functions I wanted to understand if they're being re-compiled anew on each execution. If so, no problem - but I may wish to plan on pre-compiling them. Link to comment Share on other sites More sharing options...
John Dowson Posted October 2, 2020 Report Share Posted October 2, 2020 1 hour ago, Matthew Twomey said: I wanted to understand if they're being re-compiled anew on each execution Yes. Each time you start a lua function, it will be compiled and ran. This its why it is better, for many use-case scenarios, to have a lua pre-compiled and running (from the [Auto] ini section). and then waiting on events to activate. Link to comment Share on other sites More sharing options...
Matthew Twomey Posted October 2, 2020 Author Report Share Posted October 2, 2020 Perfect, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now