Click or drag to resize
SoDBSetNumRenderCaches Method

This method sets the maximum number of caches for nodes that create render caches.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
public static void SetNumRenderCaches(
	int num
)

Parameters

num
Type: SystemInt32
Remarks

Examples of nodes that create render caches are SoSeparator (OpenGL display lists) and SoTexture2 (OpenGL texture objects). This method affects only nodes that are created after it is called, not nodes that were created before it. Setting the number of caches to zero disables render caching for all nodes created after the call.

By default, each node maintains 2 render caches. (This is to allow two different representations, e.g., filled and wireframe, to both be cached.) Each render cache uses memory, so decreasing this number may decrease the memory requirements of the application. However multi-pipe applications should generally set the number of render caches equal to the number of pipes because pipes may not be able to share display lists.

This value can also be specified globally using the environment variable OIV_MAX_CACHES. This value can also be specified separately for classes that have a setNumRenderCaches method.

See Also