Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Wait for a garbage collection cycle?
Started by varscott16 Aug 24 2018 02:17 PM

- - - - -
1 reply to this topic
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 6 posts
  • Corona SDK

I know that it is possible to just force a gc cycle with collectgarbage("collect"), but is there also a sure way for just waiting for it? For example a sleep function? I know this is a weird question but in the _ENV i'm working in I don't have that luxury.

[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,205 posts
  • Enterprise

If you don't do anything, that's the same as waiting on collection. I'm not sure why you need more than "collect now" and "collect when its time".