precompiled LUA scripts to byte-code

Questions and information about using Lua scripting with Storyboard

Moderator: jamiev

precompiled LUA scripts to byte-code

Postby hholtmann » Thu Nov 10, 2016 2:27 pm

Does the sbengine suppor pre-compiled (byte-coded) LUA scripts or are they JIT compiled on every script/method call back.
Posts: 1
Joined: Wed Nov 09, 2016 3:50 pm

Re: precompiled LUA scripts to byte-code

Postby thomas » Thu Nov 10, 2016 2:35 pm


You can pre-compile the Lua scripts to bytecode and this should work just fine as long as where you are compiling (presumably using luac) them matches the endian and machine size as the platform you plan to target.

We are working to include a pre-compilation option as part of the next Storyboard release. For now you will be required to build luac yourself from the Lua 5.1 source distribution.

Posts: 135
Joined: Mon Nov 02, 2009 4:32 pm
Location: Ottawa

Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 1 guest