lua-users home
lua-l archive

Re: Update the Lua engine in Lua-scripted games with LuaJIT

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Johnson Lin wrote:
> So far I didn't noticed any performance differences though ... lol,
> rendering is THE BEAST.
> Maybe when the map is bigger, you'll feel the calculations after "End
> Turn" a little little bit faster?
Errm ... if Civ5 doesn't use luaL_openlibs() then the jit.*
library may not be loaded and the JIT compiler is not enabled.
For LuaJIT 1.x this means you end up with plain Lua. :-)
If this allows you to run your own Lua scripts, then try printing
the version, e.g.: print(jit.version)
--Mike

AltStyle によって変換されたページ (->オリジナル) /