-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object Pool Size #7201
Comments
Hi @amitelle1337 |
Thank you @dorodnic . |
Hi @amitelle1337
If you are not calling Dispose, frame would only get cleaned-up every couple of seconds when GC is triggered. By that time the SDK may run out of space in internal pool. You could only call Keep and not do dispose, but this way your memory consumption would fluctuate rapidly. |
Thanks for the explanation! :D |
Issue Description
I have a system with 6 cameras that capture synchronously (The system is for scanning an object from 6 angles).
I am trying to keep capturing time to a minimum (To prevent problems from noise and movement).
For that, I want to first capture from all the cameras and then start the processing part.
The issue I am having is that the object pool that Librealsense uses is too small for my needs: from my testing, I can only have 16 640X480 DepthFrames at once.
I would like to know if there's a way for me to increase the pool's size or at least know more information about it so I can adjust my program accordingly.
One solution I have in mind regarding whether I can change the pool's size or not is to split the capturing to more devices (For example, 6 Raspberry Pis - one for each camera), but that would be outside the scope of my project, unfortunately.
Another solution is to capture from each camera in a different process, thus each camera has its own pool, but that's assuming the object pool is not global, which I am lacking the information about.
Thanks in Advance for any help.
The text was updated successfully, but these errors were encountered: