Sets the maximum memory allocated for rendering for this MentalRaySettings object.
Returns eOk if successful, or an appropriate error code if not.
The renderer will decrease performance so as to stay below the memory limit.
The default value for MemoryLimit is 1048.