-
Notifications
You must be signed in to change notification settings - Fork 16
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
ergoCubEmotions uses more than 100% of the cpu on ergocub-head #213
Comments
If I remember correctly once we checked that, one problem may be that at every module update, the file are re-read (see
|
Hi @traversaro, thank you for your suggestion. Actually, we are reading videos and not images (the static part is a 2 sec looped video and the transitions from one expression to another too). If I remember well, opencv shows videos one frame at the time after they are opened. I don't know if it's possible to save cv::VideoCapture elements as per cv::Mat ones. Today I tried to use the configuration Moreover, the % showed by jtop should correspond to the sum of the cpu usage for each core: in fact running This means that the cores should not be saturated, I don't know if you see some delays. |
Sorry, I closed it by mistake. |
I opened a draft PR with the suggestions of @traversaro. It's in draft since I have to test it on ergocub-head |
The @martinaxgloria fix improves significantly the performance, @GiulioRomualdi in case not sufficient feel free to reopen it. |
I noticed that
ergoCubEmotions
uses a really high amount of CPU on the ergocub-head.In the following screenshot you can check the amount of used CPU (181%) only ergoCubEmotions was running on the ergocub-head
I was wondering if it is normal
cc @martinaxgloria
The text was updated successfully, but these errors were encountered: