Hi,

  While using gnuradio (git master) on a Linux Fedora 17 i686 (32bit),
I saw that the refresh rate of the Qt sink was very slow (~2fps).

  I saw that in commit 3259e2a6, the update delay timeout was changed
from 0.1s (10fps) to 0.5s (2fps).  So my 2 fps make sense.

  As a quick workaround, I did the attached patch to be able to change
this refresh rate directly from GRC.

  I think the 10fps default was better than this 2fps.  If there is no
special reason for keeping this 2fps default, I also suggest to put it
back to 10fps.

  Regards,

-- Julien Olivain.
diff --git a/gr-qtgui/grc/qtgui_sink_x.xml b/gr-qtgui/grc/qtgui_sink_x.xml
index 83d6ec2..351fad6 100644
--- a/gr-qtgui/grc/qtgui_sink_x.xml
+++ b/gr-qtgui/grc/qtgui_sink_x.xml
@@ -24,6 +24,7 @@ qtgui.$(type.fcn)(
 	$plottime, \#plottime
 	$plotconst, \#plotconst
 )
+self.$(id).set_update_time(1.0 / $refresh_rate)
 self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), Qt.QWidget)
 $(gui_hint()($win))</make>
 	<callback>set_frequency_range($fc, $bw)</callback>
@@ -133,6 +134,12 @@ $(gui_hint()($win))</make>
 		<type>gui_hint</type>
 		<hide>part</hide>
 	</param>
+	<param>
+		<name>Refresh rate</name>
+		<key>refresh_rate</key>
+		<value>10</value>
+		<type>real</type>
+	</param>
 	<sink>
 		<name>in</name>
 		<type>$type</type>
_______________________________________________
Patch-gnuradio mailing list
Patch-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/patch-gnuradio

Reply via email to