Page 2 of 4
Re: LoveJIT
Posted: Sun May 29, 2011 5:11 pm
by Kadoba
Boolsheet wrote:And it's targeting specific architectures and (generic?) PPC is not one of them.
There is a
comparison chart for PPC/e500 machines on the LuaJIT site. Also, support for PPCs is going to be dropped from future versions of Love anyway.
Re: LoveJIT
Posted: Sun May 29, 2011 6:07 pm
by Boolsheet
Kadoba wrote:There is a
comparison chart for PPC/e500 machines on the LuaJIT site. Also, support for PPCs is going to be dropped from future versions of Love anyway.
The e500 CPU is not used in any apple computer and that's one of the reasons PPC gets dropped; to get LuaJIT into LÖVE.
Re: LoveJIT
Posted: Thu Jun 09, 2011 4:00 pm
by xmagicx60
I have a linux so if you can give me the source and tell me how to compile it, I probably will be able to do it for you...
For some reason, the .debs won't download at all once I open with the software center so I really need to know how to compile the source.
Also, first post
Re: LoveJIT
Posted: Thu Jun 09, 2011 5:46 pm
by bartbes
Well, you download the source, then you run:
Code: Select all
sh platform/unix/automagic
./configure --enable-luajit
make
(that is, if you have the required libs, configure will complain otherwise)
Re: LoveJIT
Posted: Thu Jun 09, 2011 8:20 pm
by xmagicx60
bartbes wrote:Well, you download the source, then you run:
Code: Select all
sh platform/unix/automagic
./configure --enable-luajit
make
(that is, if you have the required libs, configure will complain otherwise)
Does it require OpenGL or SDL?
Re: LoveJIT
Posted: Thu Jun 09, 2011 10:07 pm
by bartbes
Well.. yes, that's what love requires.
Re: LoveJIT
Posted: Wed Jun 22, 2011 8:18 am
by Magitek
Loading times shrank by half using JIT! (very important issue in my game currently)
Unfortunately there seems to be a minor issue with arguments.. which breaks my entire project
main scope:
Code: Select all
print(arg[1])
result:
"C:\Love2d\Project\"
function scope with ordinary love 0.7.2:
Code: Select all
function where_are_arguments(...)
where_are_arguments(5,10)
result:
arg[1] = 5
arg[2] = 10
function scope with JIT (slimes version):
Code: Select all
function where_are_arguments(...)
where_are_arguments(5,10)
result:
arg[1] = "C:\Love2d\Project\"
arg[2] = nil
LuaJIT is taking arguments from the executable and is not interested in my local arguments.
Am I doing something wrong here or is this a bug?
Are there any newer compiled JIT versions around?
I'm keen on switching to JIT as I don't believe I can further optimize my map generator, and multithreading it would be incredibly difficult due to the fact that I am physically painting pixel for pixel on a partitioned map.
Re: LoveJIT
Posted: Wed Jun 22, 2011 8:25 am
by bartbes
You are doing something wrong, arg is deprecated, use ... instead. For a table of extra arguments that would be {...}. (... acts like a function returning multiple return values, but it's not!)
Re: LoveJIT
Posted: Wed Jun 22, 2011 8:40 am
by Magitek
I don't quite understand, just for clarification; how am I supposed to be referencing '...' arguments?
Code: Select all
function my_arguments(var1, ...)
print(arg[1])
print(arg[2])
print(arg[3])
end
my_arguments(5, {10,10,10})
Re: LoveJIT
Posted: Wed Jun 22, 2011 8:43 am
by bartbes
Code: Select all
function vararg(...)
print(...)
end
--or
function vararg(...)
local arg = {...}
--then do what you normally would with arg
for i, v in ipairs(arg) do print(v) end
end