dekoning-lab / WFES2-GUI

GUI implementation of wfes2.
GNU General Public License v3.0
0 stars 1 forks source link

Qt Charts so slow #90

Closed AlbertoCasasOrtiz closed 3 years ago

AlbertoCasasOrtiz commented 3 years ago

In applications generating a chart, when the chart is too big, it takes too much time to generate.

Looks like the current way of adding the chart using QML (appending each point inside a for loop, is slow). Seems like using qml, the series cannot be created dynamically in other way.

Options:

  1. Look for a way of optimise it.
  2. Look for an alternative to Qt Charts. (like https://www.qcustomplot.com/)
AlbertoCasasOrtiz commented 3 years ago

The problem was a for loop in qml, that appended each point to the LineSeries one by one.

Now, the LineSeries is created directly in C++, so it is almost instantaneous. Working even with m=500000.