I'm trying to figure out what type of optimization I should be using for my sampleline series with several million points.
I don't know what the difference is between pixels and lotsofpixels. I'm not sure which one to use, and why?
Thanks!
SampleDataSeries PointsRenderOptimization explanation
Moderator: Queue Moderators
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: SampleDataSeries PointsRenderOptimization explanation
Points are shown only when having sampleDataSeries.PointsVisible = true.
LotsOfPixels is faster when using millions of points. If using up to say 10,000 points, Pixels is faster for sure. LotsOfPixels renders all the points in a flat layer. If there's several translucent points in the same location, their individual alpha blending is lost in the process. If alpha = 255, there's not much difference in the output.
These are screenshots from LotsOfScatterDots example that uses FreeformPointLineSeries.
LotsOfPixels is faster when using millions of points. If using up to say 10,000 points, Pixels is faster for sure. LotsOfPixels renders all the points in a flat layer. If there's several translucent points in the same location, their individual alpha blending is lost in the process. If alpha = 255, there's not much difference in the output.
These are screenshots from LotsOfScatterDots example that uses FreeformPointLineSeries.
LightningChart Support Team, PT
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
Re: SampleDataSeries PointsRenderOptimization explanation
Thanks for the technical response.
When using a samplelineseries with (linesvisible=true, pointsvisible=false), does the optimization do anything? If so, what should i use for about 1M points? (all samplelineseries)
When using a samplelineseries with (linesvisible=true, pointsvisible=false), does the optimization do anything? If so, what should i use for about 1M points? (all samplelineseries)
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: SampleDataSeries PointsRenderOptimization explanation
If PointsVisible = false, PointsOptimization does nothing. Points are not rendered, only line.
With lots of data in the series, and plotting only line, we recommend optimizing performance by setting series.LineStyle.Width = 1.
With lots of data in the series, and plotting only line, we recommend optimizing performance by setting series.LineStyle.Width = 1.
LightningChart Support Team, PT
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
Re: SampleDataSeries PointsRenderOptimization explanation
Thanks, I came to the conclusion that linewidth = 1 improved performance pretty quickly.