-
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
realsense L515 frame rate start getting slower and slower #10287
Comments
Hi @Billccx If performance is slowing down over time then there may be a memory leak, where the memory of the computer is progressively consumed over time and causes the program's performance to degrade and even freeze / crash. In Ubuntu you can use a system monitoring tool such as htop to monitor memory usage whilst your program is running to see whether there is a leak. If you are using the RealSense Viewer tool then memory leaks can occur for a small number of RealSense users if the GLSL options are enabled. You can disable GLSL in the Viewer's settings interface using instructions at #8110 (comment) to see whether it improves the reliability of performance. In regard to the L515's temperature, if the casing is hot to the touch only a few minutes after streaming begins then this can indicate that there is an overheating problem related to USB (either a glitch on the USB port or a bad USB cable). The camera's temperatures can be monitored in real-time in the RealSense Viewer under the 'Controls' category of the L500 Depth Sensor options. You can also unplug the micro-sized end of the USB cable from the base of the L515 camera, turn the connector around the opposite way and re-insert it into the base of the camera (as USB-C cables are two-way insertion at the micro-sized end) to see whether performance improves. |
@MartyG-RealSense After running for a while, the htop output is as follow, the fps is around 10-15. Could you please tell me why it was so? |
Thanks very much for testimg memory usage and for your images. Next, please try going to the RGB section of the Viewer's options and disabling an option called Auto-Exposure Priority (whilst keeping Auto-Exposure enabled). If Auto-Exposure is enabled and Auto-Exposure Priority is disabled then the RealSense SDK should try to enforce a constant FPS rate instead of permitting the FPS to vary. Also, did you find that the camera casing was hot to the touch only a few minutes after streaming began, and did you try reversing the connector? |
@MartyG-RealSense Unfortunately, when I try to run my source code, the problem still exist! Even though I have already set Auto-Exposure Priority off in my code:
the output of my code are as follows:
The fps slow down quickly, from 20 to 5~10, only within 80 iterations. Here is my source code:
|
I see that you are using multicam code in your project to access two L515 cameras. It is recommended though to use poll_for_frames() instead of wait_for_frames() for an application that is accessing multiple cameras, like the SDK's rs-multicam example program does. |
@MartyG-RealSense
the output of the program is as follow:
The time cost of the code below grow from 0.03 seconds to 0.07 seconds
Besides that, I have also noticed that my CPU usage is quite heavy after running for a while. What should I do? I do not understand why 'RGB-depth alignment' operation takes more and more time. I am looking forward to your reply. Thanks a lot! |
I have not seen your particular approach in your script before. It looks as though it could be very costly in terms of processing burden. A RealSense team member provides a C++ multicam script that uses pipelines at #2219 (comment) that you could compare to your own approach. |
Hi @Billccx Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Issue Description
Dear researchers:
I use two realsense L515 to get RGB and depth frames. However, I found that the frame rate start getting slower after running for a while, rather than keeping a constant fps. Why is was so? Here is my code:
the output of my program is as follows:
As you can see, the fps slow down from 20 to 10. Besides that, I noticed that realsenseL515 get ‘fever’ after running for a while. Is fps slowing down caused by overheating?
I am really looking forward to you reply and thanks in advance!
The text was updated successfully, but these errors were encountered: