Thanks for the info everyone.
From Android, I am guessing you would use JNI to call LuaJIT, but what about
from Swift on iOS?
On 21 Apr 2017, at 02:36, Janusz Jankowski
<ufomstr@xxxxxxxxx<mailto:ufomstr@xxxxxxxxx>> wrote:
I made games that use LuaJIT for both Android and iOS. You won't have problems
related to CPU on Android and you shouldnt' have them on iOS either. I made
game that processes tens of thousands of objects in game loop and it worked
well, I think that you won't need more realtime processing power than this
game. You can check games here:
https://play.google.com/store/apps/details?id=com.mawges.rts.strategy.aliens.vs.bugs.colony.tower.defense&hl=en
https://itunes.apple.com/us/app/aliens-vs-bugs-colony-defense/id911206606?mt=8
You can check other games on may accounts also, all of them use LuaJIT. I
ported one of games to windows phone where I had to use vanilla Lua and I had
some performance problems. LuaJIT is much faster even in just interpreter mode
so unless you do something really bad you shouldn't have performance problems.
2017-04-20 18:21 GMT+02:00 Blaise R.
<rex2k8@xxxxxxxxx<mailto:rex2k8@xxxxxxxxx>>:
See http://luajit.org/running.html and http://luajit.org/install.html ;.
The former mentions that LuaJIT can run in interpreter only mode and the latter
mentions how to go about (cross) compiling for iOS and Android on ARM (among
other things). It also mentions there is no JIT on iOS but the interpreter mode
is still faster than vanilla Lua 5.x (not surprising, LuaJIT is hand optimized
ASM, vanilla Lua is pure and portable C code). The wording ("Please complain to
Apple, not me. Or use Android. :-p ") makes it seem like there is proper JIT on
Android without problems.
2017-04-20 17:43 GMT+02:00 Felix Bembrick
<lucan1d@xxxxxxxxxxx<mailto:lucan1d@xxxxxxxxxxx>>:
Sorry for the newbie question but I figured I get the fastest and most accurate
answer here:
1. Does LuaJIT run on both iOS and Android?
2. If yes to either, does it run any faster than standard Lua?
I ask these because I've heard that "executable memory" is not a feature
supported on these platforms so perhaps either LuaJIT won't work at all or
could be slower than Lua itself.
Thanks!