Currently, there is significant overhead with the current implementation of Lua in Vixen. Analyzing the data outputted by visual studio's performance profiler shows that the most expensive operations seem to be accessing the C++ bound objects from their lua tables and calling any C/C++ functions bound to them.
The possible solution and one I am currently exploring is using LuaJIT to precompile all scripts and hopefully increase runtime performance through loading and executing the bytecode.
Currently, there is significant overhead with the current implementation of Lua in Vixen. Analyzing the data outputted by visual studio's performance profiler shows that the most expensive operations seem to be accessing the C++ bound objects from their lua tables and calling any C/C++ functions bound to them.
The possible solution and one I am currently exploring is using LuaJIT to precompile all scripts and hopefully increase runtime performance through loading and executing the bytecode.