Specifies the maximum number of bytes the engine should use to cache content for the stack.
# Metadata
Platforms: desktop, mobile OS: mac, windows, linux, ios, android Introduced: 5.0 Security:
# Syntax
set the compositorCacheLimit of stack to cacheLimit
# Params
- Stack : The name or ID of the stack. - cacheLimit : A number containing the maximum number of bytes to be used when caching dynamic content.
# Examples
set the compositorCacheLimit of this stack to 8388608 -- 8Mb
put 4 *1024 * 1024 into tCacheLimit -- 4Mb set the compositorCacheLimit of this stack to tCacheLimit
# Description
Use the compositorCacheLimit property to specify the maximum number of bytes the engine should use to cache content for the stack. If the limit is not big enough to render the stack, accelerated rendering is not used and the default rendering used instead.
>*Note:* The required size of the compositorCacheLimit can be > determined by the objects whose layerMode property is set to > 'dynamic'. The compositorCacheLimit should be set to the amount of > memory the LiveCode engine needs to cache them. If you have 10 layers > all 400x400 pixels, you need roughly 10*400*400*4 bytes. > Experimentation is required to find the optimal value.
>*Note:* Set the compositor properties in a preOpenStack or preOpenCard > handler - they are not persistent (not saved into the stackfile).
# Tags
# See
- **property:** compositorType, compositorTileSize, layerMode