From 17b191a01dbb950622baaf7eb74c33400f77f303 Mon Sep 17 00:00:00 2001 From: Thomas Schlichter Date: Fri, 28 Jul 2023 13:49:52 +0200 Subject: [PATCH] use OpenGL for LLR and IQ Plots and fix UE LLR Plot Using OpenGL for IQ and LLR Plots improves plotting time significantly! Also use the correct length for UE CIR and UE LLR Plots. --- openair1/PHY/TOOLS/nr_phy_qt_scope.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openair1/PHY/TOOLS/nr_phy_qt_scope.cpp b/openair1/PHY/TOOLS/nr_phy_qt_scope.cpp index 36b0dc2b93..4151a7e4cd 100644 --- a/openair1/PHY/TOOLS/nr_phy_qt_scope.cpp +++ b/openair1/PHY/TOOLS/nr_phy_qt_scope.cpp @@ -357,6 +357,7 @@ void CIRPlotUE::timerEvent(QTimerEvent *event) maxY = std::max(maxY, value); } + this->axisX->setRange(-this->len / 2, this->len / 2); this->axisY->setMax(maxY); this->series->replace(points); } @@ -368,6 +369,7 @@ LLRPlot::LLRPlot(int16_t *data, int len, int interval, PlotUpdater *plotUpdater) // add new series to the chart this->series = new QScatterSeries(); + this->series->setUseOpenGL(); this->series->setMarkerSize(3); this->series->setMarkerShape(QScatterSeries::MarkerShapeRectangle); this->series->setColor(Qt::blue); @@ -440,6 +442,7 @@ void LLRPlotUE::timerEvent(QTimerEvent *event) maxY = std::max(maxY, abs(this->data[i])); } + this->axisX->setRange(0, this->len); this->axisY->setRange(-maxY, maxY); this->series->replace(points); } @@ -451,6 +454,7 @@ IQPlot::IQPlot(complex16 *data, int len, int interval, PlotUpdater *plotUpdater) // add new series to the chart this->series = new QScatterSeries(); + this->series->setUseOpenGL(); this->series->setMarkerSize(3); this->series->setMarkerShape(QScatterSeries::MarkerShapeRectangle); this->series->setColor(Qt::blue);