-
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
Current best practice re: RS2_OPTION_FRAMES_QUEUE_SIZE #5041
Comments
A further example of use of the frame queue size can be found in the official documentation link below, under the 'librealsense2' heading. It suggests a value of '5', representing a maximum latency of 5 frames. As far as I understand it, the smaller the value used, the more performance you may get but the higher the risk of dropping frames. |
Thank you, Marty. You've pointed out a fundamental flaw in my original question. Please allow me to be more precise: In the case where color + depth streams are enabled, what is the best setting for Also, would this answer change if there were multiple sensors using hardware-synchronization? Please understand that the nature of my question is to ensure that we're adhering to current [late-2019] best practices, noting that there is conflicting documentation on the ideal setting for this option. |
The suggestion of the frame buffering documentation is to use a value of '2' if you are using two streams. Ultimately though, I believe that this should be taken as guidance rather than an unbreakable rule though, since the frame queue size option encourages you to choose your own value based on your personal priorities - whether performance (low value) or greater stability through added latency (higher value) is important to you. If you want to find a good balance between two-stream stability and minimizing frame drop, '3' might be a good compromise value, adding a little extra wait into the process without slowing it down too much. Try '2' first and see what kind of frame drop you get, and go to '3' if you think extra stability is needed. Regarding multiple camera sync, my interpretation of the advice in the multicam white paper on this subject (section 3B) is that you should stick with the recommended values if possible - '1' for a single stream and '2' for two streams - as using a larger buffer value may introduce problems. |
I believe this should be fairly accurate advise:
|
Thank you both. Part 2 of @dorodnic 's above answer satisfies my question. Closing. |
Camera Model: D415
Firmware Version: 05.11.15.00
OS: Ubuntu 18.04 with kernel 4.18.20-041820-generic
Platform: PC
SDK Version: librealsense-2.29.0
Segment: Telecommunications
Question:
What's understood to the be the best practice relating to
RS2_OPTION_FRAMES_QUEUE_SIZE
, noting that there various documents indicate different things. For instance:#2637
^^ The above states:
https://github.com/IntelRealSense/librealsense/wiki/Frame-Buffering-Management-in-RealSense-SDK-2.0
^^ While here we have (as stated in the white-paper as well):
It's very important for us to have certainty that we're aligning to established best-practices.
Thanks!
The text was updated successfully, but these errors were encountered: