Moving trackball quickly block the whole UI in the case of huge amount of data

I'm using syncfusion_flutter_charts (20.3.49) on pub.dev

I render a chart with around 10000 points and trigger the trackball by long press on the chart, when I move the trackball quickly, it cannot display mark smoothly and the whole app is blocked for a while, but it is real-time and very smooth when I render only 5000 points.


Is there any suggestion that I can skip rendering some marks when user press and move the trackball very fast or any approach that can speed up the reaction time?  


Any suggestions would be greatly appreciated

the attachment is my simple code



Attachment: annotation_de60a26c.zip

4 Replies

LP Lokesh Palani Syncfusion Team October 18, 2022 02:04 PM UTC

Hi Henry,


Currently we are validating your query and we will update further details in one business day (19 Oct 2022). We appreciate your patience until then.


Regards,

Lokesh Palani.



YG Yuvaraj Gajaraj Syncfusion Team October 19, 2022 02:11 PM UTC

Hi Henry,


Thanks for your patience, we can able to reproduce the reported issue at our end while activating the trackball with more than 5000 data points. So, we have considered this as an improvement, and it will be available in any of our upcoming releases. We have logged the feedback for the feature request and shared it below for your reference, you can track the status of the trackball improvement.


Feedback: https://www.syncfusion.com/feedback/38556


Regards,

Yuvaraj.



HL Henry Liang April 28, 2023 03:42 AM UTC

Hi,


I wrote my own line chart from scratch which improved the performance.

I can activate the trackball smoothly and zoom at the real-time response with more than 10000 data points.

If you are interested in my work, refer to my github: https://github.com/henryliang3027/flutter_speed_chart


My test device is Google Pixel 5 which has lower CPU computation (Snapdragon 765G) compared to the latest Android phone nowadays.

but in my Samsung s22 ultra which CPU is Snapdragon 8 Gen 1, there is no performance issue in case of using Syncfusion line chart.


I'm still curious about which part causes the performance drop in Syncfusion line chart, It's hard for me to learn a huge and great work on your github code, I don't know if it is probably because it repaints too often or another calculation during the execution of paint method. 

I would appreciate your guidance if you could let me know which part affects the performance.



LP Lokesh Palani Syncfusion Team May 4, 2023 11:13 AM UTC

Hi Henry,


We have validated your query, GitHub codes and we would like to let you know that you have directly rendered the line and displayed the trackball. But we have considered some features and scenarios with trackball feature while hover on the chart area to display the trackball. Due to some trackball structure and features consideration, the performance of the trackball has been affected. We are unable to share the exact place, but we are continuously working on improving and optimizing the performance of our charts widget at our end and will roll them out in any of our upcoming main releases.


Regards,

Lokesh.




Loader.
Up arrow icon