Skip to main content
Version: 9.0.2

resource-mgr

Plugin Name: resource_mgr (-oresource_mgr,...)

error=[0|1]

When a resource error is encountered a diagnostic message is generated. This option controls if an event for the error is sent (1, default) or not sent (0). This option is currently only enabled for OpenGL render managers.

font=[number]

Similar to the image resource option, this value controls the number of bytes of memory allocated for the font glyph cache. After the cache is full, the behaviour of the allocations is controlled via the font_oom option. A value of 0 (default setting) indicates that the font glyph cache should be limited by the size of available system memory. Otherwise a positive value indicates the size of the cache in bytes and can be symbolically specified using K, M qualifiers such as 4K to indicate an font glpyh cache of 4096 bytes or 1M to indicate 1048576 bytes of memory.

image=[number]

This will set the maximium number of bytes in the image cache. After the cache is full, the behaviour for allocations is controlled via the image_oom option. A value of 0 (default setting) indicates that the image cache should be limited by the size of available system memory. A value of -1 indicates no image cache and only one image at a time will be loaded and that image not cached. Otherwise a positive value indicates the size of the cache in bytes and can be symbolically specified using K, M qualifiers such as 4K to indicate an image cache of 4096 bytes or 1M to indicate 1048576 bytes of memory.

image_oom=[fail|lru]

This sets the behaviour when the maximum value of the image cache is reached. If this is set to the value fail then when an allocation can't be fulfilled the request will fail. If this is set to the value lru then when an allocation can't be fulfilled the request will attempt to remove other entries from the cache until it can either fit the request or it fails. The default behaviour is lru.