First of all thank you for Lua and this great forum, we learn a lot and Lua is very easy to use...
BUT I have got a problem:SPEED.
I start to develop a ARMOR ALLEY clone on PSP with Lua.
First Screenshot (start development phase)

Everything go easy but now as I load more than 30 images and I use this kind of for:
for i = 1,mtf do
for j=1,etf do
if (et[j]-mt)<5 and (et[j]-mt)>0 then
if math.random(2)==2 then
table.insert(dmt,i)
else
table.insert(det,j)
end
end
end
for j=1,eff do
if (ef[j]-mt)<5 and (ef[j]-mt)>0 then
if math.random(5)==5 then
table.insert(dmt,i)
else
table.insert(def,j)
end
end
end
end
(sorry for the code) my pSP with Lua is too slow and so the game is not playable...
Do you think the slow speed is caused by the images loaded, the "fors" instructions or my bullshit code?
If someone has find a solution to accelerate Lua language or Lua player please help me...
(If you want I can give you the code of my ARMOR ALLEY clone)
Thank you and god save PS2DEV!