compositorTileSize

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the compositorTileSize of <stack> to <tileSize>
Associationsstack
Summary

Specifies the size the fragments of object images it caches should be.

Introduced5.0
OSmac, windows, linux, ios, android
Platformsdesktop, mobile
Parameters
NameTypeDescription
Stack

The name or ID of the stack.

tileSize

A number specifying the size of tiles the engine uses when caching. It must be a power-of-two between 16 and 256 inclusive (16, 32 (default), 64, 128 or 256). The smaller the number, the more potential for engine optimizations as less is redrawn when layers change. However, there is a higher overhead. Experimentation is required to gain optimal performance.

Example
set the compositorTileSize of this stack to 128
local tTileSize
put 256 into tTileSize
set the compositorTileSize of this stack to tTileSize
RelatedProperty: compositorType, compositorCacheLimit, layerMode
Description

Use the compositorTileSize property to specify the size the fragments of object images it caches should be. It must be a power-of-two between 16 and 256 inclusive (i.e. 16, 32, 64, 128 or 256).

General suggested tileSize settings:

  • iOS Retina displays: 64
  • iOS Non-retina: 32
  • Android large screens: 64
  • Android small screens: 32
  • Desktop: 32

Note: Use a large tile size when creating big scrolling layers. The maximum size of a scrolling layer is 256 * the tileSize.

Warning: Using a very small tileSize when in openGL mode may decrease performance.

Note: Set the compositor properties in a preOpenStack or preOpenCard handler - they are not persistent (not saved into the stackfile).

Tagswindowing