newfile.lua is uploading. Uploading finished. --------------------------------------------------------- Testing "getDirection" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0 >> C++ TIME >>0.0010000000000001 on 1000000 cycles C++ Version is inf% SLOVER !!! --------------------------------------------------------- Testing "getDistance" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0 newfile.lua:113: attempt to call field 'getDistance' (a nil value) stack traceback: newfile.lua:113: in main chunk newfile.lua is uploading. Uploading finished. --------------------------------------------------------- Testing "getDirection" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0067920000000186 >> C++ TIME >>0.0017389999999864 on 1000000 cycles C++ Version is 74.396348645736% FASTER !!! --------------------------------------------------------- Testing "getDistance" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0012810000000059 >> C++ TIME >>0.27938599999999 C++ Version is 21709.992193498% SLOVER !!! --------------------------------------------------------- Testing "getAngleDifference" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.33720799999998 >> C++ TIME >>0.18654299999997 C++ Version is 44.68013807502% FASTER !!! --------------------------------------------------------- Testing "getXLenDir" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0012689999999793 >> C++ TIME >>0.272648 C++ Version is 21385.263987742% SLOVER !!! --------------------------------------------------------- Testing "getYLenDir" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0016420000000039 >> C++ TIME >>0.27060999999998 C++ Version is 16380.511571214% SLOVER !!! --------------------------------------------------------- Testing "getXYLenDir" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0017069999999535 >> C++ TIME >>0.36236799999995 C++ Version is 21128.353837716% SLOVER !!! --------------------------------------------------------- Testing "lerp" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0013460000000123 >> C++ TIME >>0.236515 C++ Version is 17471.693907715% SLOVER !!! --------------------------------------------------------- Testing "clamp" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0012409999999932 >> C++ TIME >>0.21841500000005 C++ Version is 17499.919419924% SLOVER !!! --------------------------------------------------------- Testing "circularClamp" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0018369999999663 >> C++ TIME >>0.58713900000004 C++ Version is 31861.839957038% SLOVER !!!
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Uploading finished. --------------------------------------------------------- Testing "getDirection" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0035120000000006 >> C++ TIME >>0.0043790000000001 on 1000000 cycles C++ Version is 24.686788154879% SLOVER !!! --------------------------------------------------------- Testing "getDistance" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0032589999999999 >> C++ TIME >>0.289326 C++ Version is 8777.7539122434% SLOVER !!! --------------------------------------------------------- Testing "getAngleDifference" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.32844 >> C++ TIME >>0.189893 C++ Version is 42.183351601511% FASTER !!! --------------------------------------------------------- Testing "getXLenDir" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.001355999999987 >> C++ TIME >>0.235539 C++ Version is 17270.132743529% SLOVER !!! --------------------------------------------------------- Testing "getYLenDir" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0017430000000047 >> C++ TIME >>0.224957 C++ Version is 12806.310958083% SLOVER !!! --------------------------------------------------------- Testing "getXYLenDir" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0017179999999968 >> C++ TIME >>0.31014999999999 C++ Version is 17952.968568136% SLOVER !!! --------------------------------------------------------- Testing "lerp" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.001293000000004 >> C++ TIME >>0.19709899999999 C++ Version is 15143.542149991% SLOVER !!! --------------------------------------------------------- Testing "clamp" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0013190000000094 >> C++ TIME >>0.19276600000001 C++ Version is 14514.55648208% SLOVER !!! --------------------------------------------------------- Testing "circularClamp" implementation: (lua and C code 1000000 for/loop cycles) >> LUA TIME >>0.0016979999999904 >> C++ TIME >>0.359606 C++ Version is 21078.209658541% SLOVER !!!
Have you changed the libs since the beta you gave me?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
@GregBUG - I'll have to make you a new player as the one I have is heavily modified to be a player for my new game.
But your player plays my LuaJIT fine here.
Have you somehow set some debug options on the phone so that luaJIT somehow doesn't work?
I make a clean player my generating the project -> eclipse then removing the asset folder in eclipse. I then add all the extras that I need for that player.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I have a cheap chinese phone here somewhere - I'll charge it and do a test on that for you.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
No, not yet - Dylan (age 10) is still looking for it! Soon I hope.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Yes, you need to rename the compiler so it doesn't work. Maybe that's what you did wrong?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Have you deleted the temp dir that holds the compiled lua files in your project folder? That might be it?
It *MUST* be something you are doing if the Tab3 is slow.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Did you check that Gideros isn't finding the Lua compiler somewhere (even though you have renamed it in the Gideros folder)? Open a command line and check it's not in your path in some other folder.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Check the size of the lua compiled code in assets with the code that has not been precompiled (by compiled I mean tokenised).
Lua precompiled should not be the same size as LuaJIT unprecompiled code.
Turn off encryption and you should be able to read the code in the assets folder (I think) when using LuaJIT - but you shouldn't be able to read it is using the normal system - because it's tokenised bytecode.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Comments
newfile.lua is uploading.
Uploading finished.
---------------------------------------------------------
Testing "getDirection" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0
>> C++ TIME >>0.0010000000000001
on 1000000 cycles
C++ Version is inf% SLOVER !!!
---------------------------------------------------------
Testing "getDistance" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0
newfile.lua:113: attempt to call field 'getDistance' (a nil value)
stack traceback:
newfile.lua:113: in main chunk
newfile.lua is uploading.
Uploading finished.
---------------------------------------------------------
Testing "getDirection" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0067920000000186
>> C++ TIME >>0.0017389999999864
on 1000000 cycles
C++ Version is 74.396348645736% FASTER !!!
---------------------------------------------------------
Testing "getDistance" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0012810000000059
>> C++ TIME >>0.27938599999999
C++ Version is 21709.992193498% SLOVER !!!
---------------------------------------------------------
Testing "getAngleDifference" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.33720799999998
>> C++ TIME >>0.18654299999997
C++ Version is 44.68013807502% FASTER !!!
---------------------------------------------------------
Testing "getXLenDir" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0012689999999793
>> C++ TIME >>0.272648
C++ Version is 21385.263987742% SLOVER !!!
---------------------------------------------------------
Testing "getYLenDir" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0016420000000039
>> C++ TIME >>0.27060999999998
C++ Version is 16380.511571214% SLOVER !!!
---------------------------------------------------------
Testing "getXYLenDir" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0017069999999535
>> C++ TIME >>0.36236799999995
C++ Version is 21128.353837716% SLOVER !!!
---------------------------------------------------------
Testing "lerp" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0013460000000123
>> C++ TIME >>0.236515
C++ Version is 17471.693907715% SLOVER !!!
---------------------------------------------------------
Testing "clamp" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0012409999999932
>> C++ TIME >>0.21841500000005
C++ Version is 17499.919419924% SLOVER !!!
---------------------------------------------------------
Testing "circularClamp" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0018369999999663
>> C++ TIME >>0.58713900000004
C++ Version is 31861.839957038% SLOVER !!!
https://deluxepixel.com
Uploading finished.
---------------------------------------------------------
Testing "getDirection" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0035120000000006
>> C++ TIME >>0.0043790000000001
on 1000000 cycles
C++ Version is 24.686788154879% SLOVER !!!
---------------------------------------------------------
Testing "getDistance" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0032589999999999
>> C++ TIME >>0.289326
C++ Version is 8777.7539122434% SLOVER !!!
---------------------------------------------------------
Testing "getAngleDifference" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.32844
>> C++ TIME >>0.189893
C++ Version is 42.183351601511% FASTER !!!
---------------------------------------------------------
Testing "getXLenDir" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.001355999999987
>> C++ TIME >>0.235539
C++ Version is 17270.132743529% SLOVER !!!
---------------------------------------------------------
Testing "getYLenDir" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0017430000000047
>> C++ TIME >>0.224957
C++ Version is 12806.310958083% SLOVER !!!
---------------------------------------------------------
Testing "getXYLenDir" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0017179999999968
>> C++ TIME >>0.31014999999999
C++ Version is 17952.968568136% SLOVER !!!
---------------------------------------------------------
Testing "lerp" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.001293000000004
>> C++ TIME >>0.19709899999999
C++ Version is 15143.542149991% SLOVER !!!
---------------------------------------------------------
Testing "clamp" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0013190000000094
>> C++ TIME >>0.19276600000001
C++ Version is 14514.55648208% SLOVER !!!
---------------------------------------------------------
Testing "circularClamp" implementation: (lua and C code 1000000 for/loop cycles)
>> LUA TIME >>0.0016979999999904
>> C++ TIME >>0.359606
C++ Version is 21078.209658541% SLOVER !!!
Have you changed the libs since the beta you gave me?
https://deluxepixel.com
@SinisterSoft can you send me your player (in shared folder)?
i also tested on my samsung tab 2 and c++ is faster on same player that i sent to you...
at this point i'm missing something....
@ar2rsawseen my devices (tab2 and mtk5689) are armv7 processor and also samsung s3... about gpu i don't know...
atp: but how is the correct procedure to generate a clean player?
www.tntengine.com
But your player plays my LuaJIT fine here.
Have you somehow set some debug options on the phone so that luaJIT somehow doesn't work?
I make a clean player my generating the project -> eclipse then removing the asset folder in eclipse. I then add all the extras that I need for that player.
https://deluxepixel.com
no debug options on my phone.
@ar2rsawseen yes
is the same procedure that i use...
any other ideas ?
:-((
www.tntengine.com
https://deluxepixel.com
www.tntengine.com
any news with cheap phone ? ">
www.tntengine.com
https://deluxepixel.com
ok! :P
anyway this night (i hope) to release v1.05 C code plugin.
with some new math functions helper.
as soon as i solve my LuaJIT problems i release also LUA Source code.
if i understood well luaJIT don't like lua Compiled sources right ?
www.tntengine.com
https://deluxepixel.com
i followed again and again install instructions...
nothing...
luaJit on all my android devices is slower than Lua standard ....
on desktop (osx) LuaJit is far far faster
i tested also on Galaxy Tab3 same results...
the strange things is that my LuaJitPlayer works fine on @SinisterSoft device but not on mine...
??? whhhyyyy ??? :-(( :-(( :-(( :-(( :-(( :-((
www.tntengine.com
It *MUST* be something you are doing if the Tab3 is slow.
https://deluxepixel.com
yes...
i double checked all... but i can't find the error (i know it's my fault)
i also checked that the file size of liblua.so (in generated apk) is 370kb in LuaJit version (the normal one is about 148k)...
so linked libs are fine...
(
www.tntengine.com
https://deluxepixel.com
Lua precompiled should not be the same size as LuaJIT unprecompiled code.
Turn off encryption and you should be able to read the code in the assets folder (I think) when using LuaJIT - but you shouldn't be able to read it is using the normal system - because it's tokenised bytecode.
https://deluxepixel.com