setRenderCacheOptions

fun setRenderCacheOptions(options: RenderCacheOptions)

Enables or disables the experimental render cache feature.

Render cache is an experimental feature aiming to reduce resource usage of map rendering by caching intermediate rendering results of tiles into specific cache textures for reuse between frames. Performance benefit of the cache depends on the style as not all layers are cacheable due to e.g. viewport aligned features. Render cache always prefers quality over performance.

If RenderCacheOptions.size is not specified explicitly when using RenderCacheOptions.Builder - render cache will be disabled. If RenderCacheOptions.size is less than zero - IllegalArgumentException will be thrown.

Parameters

options

Options defining the render cache behavior