Save memory on Lua-apps! Great app from Jetimodel

  • TeroS
  • TeroS's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • RC-Thoughts
  • Posts: 527
  • Thank you received: 370

TPL_KUNENA_MESSAGE_REPLIED_NEW Save memory on Lua-apps! Great app from Jetimodel

06 Jan 2017 21:34
#7
What comes to the marketing-thing, we do not know if the idea on bottom of the whole thing is truly marketing, "a teaser into Lua". One thing is sure, it have worked. There's not that many places in web where there is info on Lua for Jeti but my site is one of them and after Lua came to 16 I can see a clear peak in the visitor-amount. Also looking at what pages are visited it is very clear that Lua is definately the most interesting thing in Jeti-stuff right now.

What comes to the boomerang, yes, I agree with you. It's a thin line.

One more thing, put this line in to your local function loop(), just before the loop-closing end:

print(collectgarbage('count'))

Now run your app, memory-usage (in kB) is shown in console.
The following user(s) said Thank You: wstech, Sepp62

Please Log in or Create an account to join the conversation.

  • Thorn
  • Thorn's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 3464
  • Thank you received: 1485

TPL_KUNENA_MESSAGE_REPLIED_NEW Save memory on Lua-apps! Great app from Jetimodel

06 Jan 2017 21:46
#8
I have just tested it is amistered that the problem with the sounds is only now is the problem that the battery on the screen remains to 99.4 per cent. Had as a sensor a unisence E installed. No matter if I use voltage or capacity it simply does not happen ..... Do they have an idea Tores?

Danke Jeti
!! Bitte alle meine Apps vom Sender Löschen!

Sorry, wegen meiner Rechtschreibung und Grammatik!!!

Lg Thorn

Please Log in or Create an account to join the conversation.

  • Sepp62
  • Sepp62's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 305
  • Thank you received: 154

TPL_KUNENA_MESSAGE_REPLIED_NEW Save memory on Lua-apps! Great app from Jetimodel

06 Jan 2017 21:51
#9
Thanks for your advice with the "collectgarbage" command.

I found another way to show the GC value:
- Activate Lua console (F1)
- Press the info key (F1)
- Press Refresh (F3) and Yes (F5)

GC Count value is printed to console.

Since the active Lua script does not contain any collectgarbage-statement, I assume that the output is generated by "the system".

Please Log in or Create an account to join the conversation.

  • TeroS
  • TeroS's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • RC-Thoughts
  • Posts: 527
  • Thank you received: 370

TPL_KUNENA_MESSAGE_REPLIED_NEW Re:Save memory on Lua-apps! Great app from Jetimodel

06 Jan 2017 23:33
#10
Activate Lua console where? I cant get that to sum up.

Please Log in or Create an account to join the conversation.

  • Sepp62
  • Sepp62's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 305
  • Thank you received: 154

TPL_KUNENA_MESSAGE_REPLIED_NEW Re:Save memory on Lua-apps! Great app from Jetimodel

07 Jan 2017 08:04
#11
:unsure: Ah ok, I saw this only works in DC24 Emulator. Sorry for misinformation.:unsure:

Please Log in or Create an account to join the conversation.

Moderators: ThornIG-Modellbau
Time to create page: 0.335 seconds
Powered by Kunena Forum