Jump to content
The simFlight Network Forums

Lua and pre-compiling

Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.