Post
by ArctionPasi » Mon Nov 17, 2014 12:02 pm
Memory sets limits. For each PointLineSeries or FreeformPointLineSeries point, 20 bytes of memory is needed, to hold the data points in the Points array.
For SampleDataSeries, a more compact format is used, only Y values are stored because the point X interval is the same throughout the monintoring. It takes only 4 bytes (Single format) or 8 bytes (Double format) for each data point.
Memory needed per hour by PointLineSeries = Series count * new points / sec * 20 bytes * 60 * 60
For example, 20 series, 1000 new data points / sec needs 1.3 GB.
Respectively, single-format SampleDataSeries it needs only 274 MB.
The chart rendering data also needs memory, but not much when compared to series point storage.
The chart has out ViewXY.DropOldSeriesData property. By enabling it, it automatically destroys out-scrolled data now and then, so memory is compacted.
LightningChart Support Team, PT