SampleDataSeries PointsRenderOptimization explanation

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

SampleDataSeries PointsRenderOptimization explanation

Post by greggorob64 » Tue Apr 07, 2015 5:28 pm

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!

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: SampleDataSeries PointsRenderOptimization explanation

Post by ArctionPasi » Tue Apr 07, 2015 6:08 pm

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.
PointStyle.Color = (120,255,255,255) <br />PointsOptimization = Pixels
PointStyle.Color = (120,255,255,255)
PointsOptimization = Pixels
PointsOptimizationPixels.jpg (340.47 KiB) Viewed 7930 times
PointStyle.Color = (120,255,255,255) <br />PointsOptimization = LotsOfPixels
PointStyle.Color = (120,255,255,255)
PointsOptimization = LotsOfPixels
PointsOptimizationLotsOfPixels.jpg (341.26 KiB) Viewed 7930 times
LightningChart Support Team, PT

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: SampleDataSeries PointsRenderOptimization explanation

Post by greggorob64 » Wed Apr 08, 2015 5:30 pm

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)

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: SampleDataSeries PointsRenderOptimization explanation

Post by ArctionPasi » Wed Apr 08, 2015 5:55 pm

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.
LightningChart Support Team, PT

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: SampleDataSeries PointsRenderOptimization explanation

Post by greggorob64 » Thu Apr 09, 2015 12:49 pm

Thanks, I came to the conclusion that linewidth = 1 improved performance pretty quickly.

Post Reply