How could I optimize a scrolling (not scrollable) QtQuick Chart?
Unsolved
QML and Qt Quick
-
I need to optimize a line graph to which data is constantly being appended, with the expectation that old data is discarded and the graph as a whole 'shifts' onward in a constant feed. Dozens of new points are added per second.
I currently accomplish this by updating the
min
andmax
properties of the x Axis within theonPointAdded
function. However, this slows down my application as it redraws the entire graph.Is there some way to optimize this, for example such that the chart properly shifts the previously drawn image to the side in-GPU and draws only new points? Or, if that is not possible, is there some way to take advantage of Qt Chart drawing code while using custom rendering logic to achieve this optimization manually with OpenGL?