Composer - recycling vs removing scenes

Is this correct?

  1. If composer.recycleOnSceneChange=true then every time we move off a scene, we get a hide event, then a destory event. The scene itself (i.e. the lua module) is not removed from memory (unloaded)

  2. If composer.recycleOnSceneChange is not set or false, then a scene is only recycled if;

a. composer.recycleOnLowMemory=true and the OS gets a low memory event.

b. a scene is explicitly recycled with composer.removeScene( s, true )

– in both cases, we get a destroy event, but the scene itself (i.e. the lua module) is not removed from memory (unloaded)

  1. The only time the module is removed (unloaded) is with the explicit composer.removeScene( s, false ) call.

Yes that is correct

The default for composer.removeScene()'s second parameter is false. So calling composer.removeScene(“someScene”) with out any additional parameters will completely unload/remove the scene.

Rob

Yes that is correct

The default for composer.removeScene()'s second parameter is false. So calling composer.removeScene(“someScene”) with out any additional parameters will completely unload/remove the scene.

Rob