From b1fff92b08ccb2d0aecdea56450c79a63ab3178b Mon Sep 17 00:00:00 2001 From: trondeau Date: Mon, 10 Aug 2009 02:07:55 +0000 Subject: Significantly improved performance of the Qt Gui sinks. This removes a number of redundant loops and memcopies by combining operations and reduces the CPU load greatly to run much more smoothly. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11559 221aa14e-8319-0410-a670-987f0aec2ac5 --- gr-qtgui/src/lib/qtgui_sink_c.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gr-qtgui/src/lib/qtgui_sink_c.h') diff --git a/gr-qtgui/src/lib/qtgui_sink_c.h b/gr-qtgui/src/lib/qtgui_sink_c.h index 1c9d59200..e36c8c9b0 100644 --- a/gr-qtgui/src/lib/qtgui_sink_c.h +++ b/gr-qtgui/src/lib/qtgui_sink_c.h @@ -63,6 +63,8 @@ private: bool use_openGL, QWidget *parent); + void forecast(int noutput_items, gr_vector_int &ninput_items_required); + // use opengl to force OpenGL on or off // this might be necessary for sessions over SSH void initialize(const bool opengl=true); @@ -78,7 +80,6 @@ private: bool d_shift; gri_fft_complex *d_fft; - gr_complex *d_fftdata; int d_index; gr_complex *d_residbuf; @@ -91,7 +92,7 @@ private: void windowreset(); void buildwindow(); void fftresize(); - void fft(const gr_complex *data_in, int size, gr_complex *data_out); + void fft(const gr_complex *data_in, int size); public: ~qtgui_sink_c(); -- cgit