What is the fastest way to draw some text in chart?
We use SeriesEventMarkers with MoveByMouse = false, but have a big performance hit.
In our application we have aprox. 15000 line series + 12000 text labels (sample application is in attachment).
Scrolling and panning performance is poor if we add text labels but without them it is OK.
SeriesEventMarker performance
Moderator: Queue Moderators
SeriesEventMarker performance
- Attachments
-
- LightningChartApp.zip
- (22.26 KiB) Downloaded 561 times
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: SeriesEventMarker performance
Markers are the most efficient way to render text.
I performance profiled your application. There's just too many series objects and marker objects in the scene, and chart has to loop through them every time it renders, and reconstruct rendering data when panning.
If possible, try to group more series data under under one series.
By setting marker.MouseInteraction = true and series.MouseInteraction = true will help a little bit with the performance.
I performance profiled your application. There's just too many series objects and marker objects in the scene, and chart has to loop through them every time it renders, and reconstruct rendering data when panning.
If possible, try to group more series data under under one series.
By setting marker.MouseInteraction = true and series.MouseInteraction = true will help a little bit with the performance.
LightningChart Support Team, PT