[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To enable the network cache, use the following RiOption
:
Option "netcache" "string cachedir" ["/tmp/3delight_cache/"] |
This informs 3Delight to use a directory named `/tmp/3delight_cache/' to cache textures files. If the directory is already created, 3Delight will use whatever cached files it contains. It is important to use a locally mounted directory since caching network files on a network volume is useless. Also, the choosen directory should be dedicated to 3Delight: do not put any of your files in that directory since they can disapear without notice.
It is possible to disable the cache again by calling the same RiOption
with an null file name. This can be useful in multi-frame RIBs.
Option "netcache" "string cachedir" [""] |
Cache size is controlled using another RiOption
. For example, to specify 1000 megabytes of network cache, use:
Option "netcache" "integer cachesize" 1000 |
Specifiying a size which is smaller than the actual cache size will cause files to be removed from the cache until the specified size is reached.
There is no need to specify which files to cache, 3Delight will automatically detect slow access files and cache them. Slow access files are files mounted on a NFS disk or a CD-ROM. Also, caching is perfomed in a lazy fashion: if an object is not visible, its textures will not be cached.