Re: Update the Lua engine in Lua-scripted games with LuaJIT
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Update the Lua engine in Lua-scripted games with LuaJIT
- From: Mike Pall <mikelu-1010@...>
- Date: 2010年10月25日 18:55:25 +0200
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