Click or drag to resize
SoDirectVizManagerfileCaching Property

Enables/disables acceleration structure cache file.

Namespace: OIV.DirectViz
Assembly: OIV.DirectViz (in OIV.DirectViz.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public SoSFBool fileCaching { get; }

Property Value

Type: SoSFBool
Remarks

DirectViz file caching consists of saving on disk the internal accelaration structure built for OpenRTRT objects corresponding to an Open Inventor scene graph, which can save a significant amount of time when reloading large scenes. A cache directory must be specified with the setCacheDirectory method, which will contain the cache files. For each scene graph there is exactly one cache file. A signature is automatically created and written in cache files, so it is not nesessary to name explicitly cached files. If fileCaching is set to true, before rendering a new scene, DirectViz will first search in the cache directory if there is a cache file correponding to the scene signature. If such cache file exists, DirectViz will directly load OpenRTRT objects from it. Otherwise, DirectViz will create OpenRTRT objects from the scene graph and save them with the scene signature in a new cache file in the cache directory. A cache file can also be specified explicitly with setCacheFile(). Default is false.

The initial value can be set using the environment variable DIRECTVIZ_FILE_CACHING. See SoPreferences.

See Also