API Reference > OdDb Classes > OdDbMentalRayRenderSettings Class > OdDbMentalRayRenderSettings Methods > OdDbMentalRayRenderSettings::setMemoryLimit Method
OdDbMentalRayRenderSettings::setMemoryLimit Method
Syntax
C++
OdResult setMemoryLimit(int memoryLimit);
Parameters 
Description 
int memoryLimit 
[in] Memory limit (MB) [>= 128] 

Returns eOk if successful, or an appropriate error code if not.

Sets the maximum memory allocated for rendering for this MentalRaySettings object.

The renderer will decrease performance so as to stay below the memory limit. 

The default value for MemoryLimit is 1048.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.