BB FlashBack SDK: Base Classes |
The larger the cache, the smaller the time taken, on average, to render randomly selected frames. The type of cache, disk or memory, is selected by the CacheType property. Setting CacheEnabled to True means FBPlayer will try to set sensible defaults for other cache-related properties. It is not necessary to set these properties manually, unless defaults need to be overridden. The SDK decides the default cache type as follows: it calculates 2/3 of the free physical memory and tries to allocate that amount. If the allocation succeeds, the cache is held in memory. If the allocation fails, it uses a disk cache of that size. The CacheFramesFrequency property determines how often frames are saved to the cache. The CacheDiskLimit and CacheMemoryLimit properties set the maximum size of the cache. The CacheCompressionType property sets the degree of compression used in the cache.
|