-
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
increased latency with multi camera in the same process #935
Comments
Hi @svensht2 |
@dorodnic sorry, copy paste error. The system we're using is Ubuntu 16.04, we did not test this on windows. |
Tried your suggestion, seem to improve things a bit, but issue is still there. You suspicion didn't quite made sense to me for our application (in which we still see latency) since we hold the frame for a very short time, however we do run at a slightly slower FPS than 30. I looked into the user space queue/dequeue and I did find that you allow for a queue of size QUEUE_MAX_SIZE = 10; When I set this number to 1 the issue goes away, even without your suggestion. |
Hi |
I have localized the problematic queue to pipeline.h:19. When main is taking too long, this queue was reaching its maximum capacity. |
@aangerma you're right, I think I was running multi-cam example in Debug, but my application was running in Release. |
nm I see #938 |
The PR should improve the situation, even in Debug. Please close the issue if you have no additional questions on this topic |
We're using RS415 with FW 5.8.14.0. librealsense 2.8.3, Windows 10 1709.
When using one RS415 we're seeing low latency, but when we connect 3 cameras we see a very obvious increase in latency. We can reproduce the issue in the multi-cam example app.
I'm attaching links to 2 videos showing the issue:
one camera: https://drive.google.com/open?id=1eTAxBEujdxrIbn6UgkqmwUVRpPiCoJNx
three cameras: https://drive.google.com/open?id=1Aqve0U4FBlgJPOMnHyQRbiwyz5tRMMor
We also ran an experiment where we run each camera in a separate process at the same time, and the latency was low, just like in one cameras case.
We have a dedicated USB controller per cameras.
We are seeing increased latency with DS430 when running 3 in parallel as well.
The text was updated successfully, but these errors were encountered: