Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

possible bug in composer.recycleOnSceneChange
Started by deniz Nov 14 2018 10:41 AM

No replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

deniz

[GLOBAL: userInfoPane.html]
deniz
  • Contributor

  • 152 posts
  • Corona SDK

Hi,

 

I think I just found a bug in composer.recycleOnSceneChange. As I understand when we set: 

composer.recycleOnSceneChange = true

display group of the scene we left after transitioning to a new scene will be destroyed, but the scene module itself should stay in memory.

 

My tests show that the display object is destroyed but also the scene module is removed from the memory too.

 

I downloaded composer-framework from the github and inspect the source code a bit.  On line 893 of composer.lua we got:

lib.removeHidden()

This code should be replaced with:

lib.removeHidden(lib.recycleOnSceneChange)

I tested this with builds 3434, 3326 and 3201. 

 

 




[topic_controls]
[/topic_controls]