cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX: Performance Issues SwipeContainer with DynamicGraphs

Julian_
Associate III

Hi all,

we're right now switching from 32F469IDISCOVERY with STM32F469NIH6 (running @180Mhz) to another display board with a STM32U5A9NJH6Q (running @160Mhz).

Our UI has one Screen with a SwipeContainer (total of 3 pages). On the second page we're using two DynamicGraphs to display a target curve and a curve with measured data (both Graphs are using a Line as Element).

During swiping the animation is very slow and laggy. Of course we can also see some performance decrease on the discovery board but on the new board it is not acceptable- therefore I'm searching for some hints how to improve this behaviour.

When the graphs are empty the animation of the swipe container is fast enought. But If both graphs are filled with data (right now we have 480 datapoints for each graph / maximum is 600 for each graph) the animation is very slow. The more datapoints are pushed to the graphs the slower the animation gets.

1) Is there a way to improve this?

2) Why the Line/Data has such an impact on the performance?

Performance

The Dynamic Graph performance will vary, depending upon the setup of the widget.

The chosen dynamic behavior impacts the performance.

  • "Wrap And Clear" is a fast performing behavior because it only draws the newest data point added.
  • "Wrap And Overwrite" is a fast performing behavior because it only draws the newest data point added. <- we use Wrap and overwrite
  • "Scroll" is a demanding behavior, since everytime a data point is added, all the previous data points visible also need to be redrawn.

Certain graph elements will be faster to draw.

Boxes and Histogram are the fastest performing graph elements, because they do not have to read any pixel data or do any complicated calculations.

Area, Diamonds, Dots and Line <- we use Line, are CanvasWidgets and are heavily dependent on the MCU for rendering. (dots is even slower)

 

Hope for some hints. Thanks.

Best regards,

Julian

 

 

0 REPLIES 0