Does the Android version of Love on the Play Store support JIT and FFI?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
therektafire
Prole
Posts: 12
Joined: Mon May 22, 2017 3:45 am

Does the Android version of Love on the Play Store support JIT and FFI?

Post by therektafire »

I remember reading somewhere that there were problems with the LuaJIT implementation on Android and iOS for Love that caused them to be disabled by default (namely, the fact LuaJIT basically isnt allowed to run on iOS and executable memory issues on Android). To be fair I think it was a kind of old post though so I'm not sure if it holds true today.

I also wanted to know if C FFI is working in this version.
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Does the Android version of Love on the Play Store support JIT and FFI?

Post by zorg »

FFI does work, but without JIT, it'll be slower. No idea if the Android bug was fixed or not, the iOS "bug" will probably never will be "fixed" though. :3
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Does the Android version of Love on the Play Store support JIT and FFI?

Post by raidho36 »

Note that you can enable JIT in runtime anyway. But it may not actually improve performance under certain circumstances.

Code: Select all

jit.on ( )
Attachments
test.love
(531 Bytes) Downloaded 167 times
User avatar
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Does the Android version of Love on the Play Store support JIT and FFI?

Post by slime »

therektafire wrote: Mon May 22, 2017 6:36 amTo be fair I think it was a kind of old post though so I'm not sure if it holds true today.

I also wanted to know if C FFI is working in this version.
Still true unfortunately. The FFI works even with JIT compilation disabled, but it's fairly slow without it.
therektafire
Prole
Posts: 12
Joined: Mon May 22, 2017 3:45 am

Re: Does the Android version of Love on the Play Store support JIT and FFI?

Post by therektafire »

Yeah, I read up on that, apparently it is slower to use FFI with JIT off than it is to use vanilla Lua in most cases :O Huh, I wonder how fast FFI with JIT off is compared to FFI + buggy Android JIT, probably the same if not even slower... Will probably test this at some point, when i feel like it :)
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Does the Android version of Love on the Play Store support JIT and FFI?

Post by raidho36 »

I've posted a test file above, on my phone the difference is almost 2 orders of magnitude. But that's only with FFI. Not sure what is the difference between plain Lua and FFI JIT code.
Post Reply

Who is online

Users browsing this forum: gianmichele and 46 guests