2025-09-25 10:17 AM
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?
The Dynamic Graph performance will vary, depending upon the setup of the widget.
The chosen dynamic behavior impacts the performance.
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