-
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
Streaming cpu high usage fix #1844
Streaming cpu high usage fix #1844
Conversation
Merge from IntelRealSense/librealsense/master
…e streaming is enabled. Found the bug on post processing filters render loop thread The thread is polling for new frames on a high frequency The fix: change render loop thread from frame polling to wait for frame with small timeout (100 msec) This will free the CPU (sleep) until frame arrives, without delay on new frames, and not hang the render thread for more than 100 msec when video stream is disabled.
This fix is a suggested fix to: #1809 |
I would go with 30 msec, agree? |
This will set the lowest CPU usage + shortest stream close delay
I'm concerned that this will introduce frequent handled exceptions, preventing effective debugging of the application. The issue is with |
@dorodnic |
In #1730 we had a proposal to change the time-out behaviour of |
Pending this pull request for wait_for_frame refactoring. |
Continued on #2055 |
Bug fix: The CPU usage is too high when running Realsense Viewer while streaming is enabled.
Found the bug on post processing filters render loop thread
The thread is polling for new frames on a high frequency
The fix: change render loop thread from frame polling to wait for frame with small timeout (100 msec)
This will free the CPU (sleep) until frame arrives, without delay on new frames,
and not hang the render thread for more than 100 msec when video stream is disabled.