why gui becomes very slow when implementing system_gui plugin to save frames using user camera?
Hello
I am implementing the gui system plugin to save frames using user camera and following this tutorial http://gazebosim.org/wiki/Tutorials/1.9/plugins/camera_plugin
I have compiled and run the plugin just fine. But my concern is regarding the gui interface became very slow when I run the plugin as following: gzclient –g libsystem_gui.so And when I tested the CPU% usage by gzclient using (top) command I found that gzclient jumped up to 120% while running gzclient without the plugin CPU% was around 28%
So is there away to get around this issue when implementing this plugin.
Note: I am using 1.9.1 gazebo version and groovy.
Thanks in advance!
Asked by Zahra on 2013-09-22 05:55:28 UTC
Answers
The problem is probably just that you're saving frames. This is a slow and expensive process. Try turning the save frames functionality off. Performance will likely improve.
Asked by nkoenig on 2013-09-23 09:49:32 UTC
Comments
The whole point of using this plugin , is that I want to use gui camera to save images. And disabling save frames functions would be not useful in my case. However I disenabled this function to test the plugin as following :this->userCam->EnableSaveFrame(false); and the performance didn't change!
Asked by Zahra on 2013-09-24 08:25:20 UTC
Comments