Need suggestions on the following questions , any help would be appreciated. Thanks in advance. I did some homework before starting this post, but I wasn't able to find a good answer.
Context : I am implementing a crowd rendering pipeline in Maya using mental ray geometry shaders. Inside the geometry shader, I am using some 3rd geometry API to read 3rd party geometry cache from disk to define the geometries using mi_api_object_callback() function.
But I found a memory issue that when I have a lot of geometry shaders in a Maya scene and render the scene, the memory usage starts to increase and then I get some error in my 3rd party API calls when the memory is almost full.
In mental ray manual , there is a mi_mem_memory_limit() function, but I also can't find it in the header files.