composer.recycleOnLowMemory

Type Boolean
Library composer.*
Return value none
Revision 2017.3060
Keywords composer, scene, recycle, recycleOnLowMemory
See also composer.removeScene()

Overview

If the OS issues a low memory warning, Composer will automatically recycle the scene used least recently (that scene's self.view will be removed). If you prefer to disable auto-recycling functionality, set this property to false. Default is true.

Syntax

composer.recycleOnLowMemory

Example

-- Turn off auto-recycle on low memory (recommended only for advanced situations)
composer.recycleOnLowMemory = false