-
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
Is poll_for_frames with thread suitable for non-realtime application? #2711
Comments
Hi @chunhai |
Hi @dorodnic Thanks for quick replying!
However, it seems there are still some frame loss. How can I make pipe wait until the completion of processing current frame? Am I using poll_for_frames in a correct way? |
It depends if the drops occurred during recording or just during playback. |
Hi @dorodnic ,
If there is no sleep, the output frame number is continuous. If it sleeps a while, it will drop frames. thanks |
After I upgraded to 2.16.1, |
[Realsense Customer Engineering Team Comment] Glad to see that set_real_time off 2.16.1 works well for you. Thank you! |
Issue Description
Hey,
I am trying to develop a non-realtime application, where it may take long time to process each frame. I used wait_for_frames without thread, but it causes frames dropping during processing. Thus I am thinking to use a background thread to store the stream frames and use another thread to process each frame one by one, something like the following:
My understanding is that poll_for_frames will wait the user to fetch next frame, unlike wait_for_frame. Is it correct to use poll_for_frames in this way?
Thank you in advance for the help.
The text was updated successfully, but these errors were encountered: