MattGuerrette / VixenEngine

Open Source C++ Game Engine
http://mattguerrette.github.io/VixenEngine/
GNU General Public License v3.0
39 stars 13 forks source link

[VGame] Lua scripting needs to be optimized. #7

Open MattGuerrette opened 9 years ago

MattGuerrette commented 9 years ago

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.