Attempt to release the resource. Generally this is used when responding to a memory warning from the system. A resource will only be released if it is renewable (i.e. has a renew callback or contains all information needed to reload the resources on demand). Using soft release can save an app in extreme memory circumstances, but may trigger reloads of resources during runtime which can significantly degrade performance.
function softRelease ( MOAIGfxResource self [, number age ] )
- Parameters:
-
self |
( MOAIGfxResource ) |
age |
( number ) Optional. Release only if the texture hasn't been used in X frames. |
- Returns:
- released ( boolean )