Too LuaJIT to quit

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Simtex
Prole
Posts: 39
Joined: Sun Dec 14, 2008 5:31 am

Too LuaJIT to quit

Post by Simtex »

So who else has noticed the Love 0.7 with JIT (just in time compilation) beta in rude's download folder? Last I checked it had 24 downloads so a few of you out there have grabbed it. Impressions? For me at least, it certainly has sped up some of my heavier calculations tremendously. Obviously overall FPS hasn't been helped much since that's graphics card bound, but CPU stuff is great. I've only found one instance of something that would run fine on normal 0.7 but crash on 0.7 JIT (was trying to link in the LuaXML library). Overall pretty impressive. Thank you developers!

A link for anyone who hasn't seen it:
http://bitbucket.org/rude/love/download ... t-beta.zip

Seems to be Windows only for now.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Too LuaJIT to quit

Post by bartbes »

Oh, on linux it's a compile-time switch, --enable-luajit. IIRC that is, anyway ./configure --help should show it.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Too LuaJIT to quit

Post by kikito »

MMMMMmmmmMMMMmmmm
...teresting.

I have not tried it yet. Maybe this weekend.

Is this coming with 0.7 ? Multi-platformerly?
When I write def I mean function.
User avatar
schme16
Party member
Posts: 127
Joined: Thu Oct 02, 2008 2:46 am

Re: Too LuaJIT to quit

Post by schme16 »

This seems to work great, I found I HAVE to limit my frames now, just to get some semblance of sanity back, in game the speed.
I've also found that the CPU intensity of love went from 12% to ~2% when in my game! Big step up!
My Development Diary - http://shanegadsby.info
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: Too LuaJIT to quit

Post by ishkabible »

holy crap why is this not the standerd? LuaJIT is upto 64x faster and in my experience on average of about 4x faster. this is grate. this should be in 1.0 build when ever that comes around. the power of LuaJIT in combination with OpenGL and OpenAL(kinda minute but still) gives love insane speed. why are there only four posts in this topic? this needs to be spread far and wide.

just for the sake of start up times .luac files would be another boost, mostly just for start up times of the game but that is not performance related.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Too LuaJIT to quit

Post by vrld »

ishkabible wrote:holy crap why is this not the standerd?
LuaJIT is only available for a small number of platforms, as it does some really hardcore assembly stuff. The 64bit version only came out recently.
But there is a ./configure option for love 0.7 available...

As for luac: It is already possible to use compiled code (by renaming the bytecode files back to .lua), but it's really not recommended.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: Too LuaJIT to quit

Post by ishkabible »

ya that makes sense. still i have not found any bugs with it so far on windows so i'm gonna keep using it until i find something that is unacceptable.
dharcon
Prole
Posts: 1
Joined: Wed Dec 22, 2010 2:58 am

Re: Too LuaJIT to quit

Post by dharcon »

What version of luajit was used to create this windows package?

I presume beta5, I would like to compile C lua modules, load them with 'require', and be certain I won't have version mismatches on the luajit library used.

Love 0.7 is amazing, keep up the good work!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 12 guests