Click or drag to resize
SoLDMResourceParametersmaxMainMemory Property

Maximum allowed main memory in MB that LDM is allowed to use for this data set.

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public SoSFInt32 maxMainMemory { get; }

Property Value

Type: SoSFInt32
Remarks

Default value is -1, meaning LDM is in charge of the automatic sharing of a given resource. Automatic sharing means LDM will compute, by itself, the amount of associated resource it allocates to each dataset. The automatic allocation take in account all nodes in scenegraph.

If value is not -1 (default) LDM will not consider this node in memory allocation, and allocated CPU memory for this node will be the exact value set in the field. In this case, the amount of memory is removed from Global value. All other dataset will share (OIV.LDM.SoLDMGlobalResourceParameters.GetMaxMainMemory() - ( Sum of memory of all datasets with OIV.LDM.Nodes.SoLDMResourceParameters.maxMainMemory != -1 )) / ( number of datasets with OIV.LDM.Nodes.SoLDMResourceParameters.maxMainMemory == -1 )

See Also