calling functions too slow

51 views
Skip to first unread message

3oj...@gmail.com

unread,
Jan 30, 2014, 6:47:36 AM1/30/14
to lua-alc...@googlegroups.com
While running on mobile devices on AIR 3 when calling lua functions framerate comes to 6-7 fps, and if i need enter frame function, If lua has a callback it is impossible that runs over 10 fps, is it possible to solve this? 

Alexander Gladysh

unread,
Jan 30, 2014, 7:25:32 AM1/30/14
to Lua Alchemy Developers
Hi,

ActionScript <-> Lua bridge is inherently slow in Adobe Alchemy.

Try to avoid doing more than one call per frame.

Alexander.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "lua-alchemy-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lua-alchemy-d...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

old...@gmail.com

unread,
Jun 11, 2014, 1:47:33 AM6/11/14
to lua-alc...@googlegroups.com
Hi Alexand
So if i have ten function call from flash to lua.
You mean must sperate those in each frame?
I call function in ten frame?
Thanks.

Alexander Gladysh於 2014年1月30日星期四UTC+8下午8時25分32秒寫道:

Alexander Gladysh

unread,
Jun 11, 2014, 2:23:05 AM6/11/14
to Lua Alchemy Developers
Hi,

Not sure what exactly are you asking about.

But if you need to call 10 Lua functions from AS3, write a single Lua
function that would call these ten, and call it from AS3. This way you
will pay the performance cost only once, not ten times.

Best,
Alexander.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages