I recently discovered a seemingly simple data set that slows down OxyPlot redraws to 1 or 2 FPS. I'm using OxyPlot.WPF 2013.1.67.1. I have a plot that takes up a full window and the window is nearly full screen (1680 x 1050). There is one LineSeries with 500 points generated like so:
```
const int n = 500;
var points = new List<IDataPoint>(n);
var rng = new System.Random();
for (int i = 0; i < n; i++)
points.Add(new DataPoint(i + 1, rng.NextDouble()));
```
As I adjust the window size, OxyPlot redraw performance is very slow. This was quite surprising since I've plotted LineSeries with 10,000 points before and had much better performance. My only guess as to why it degrades so much is that the noisy data requires painting more pixels.
Does anyone have a better understanding of why performance is so bad in this case? Even better, is there a way to fix my code or OxyPlot?
Comments: Continued in [discussion 456679][1]. [1]: https://oxyplot.codeplex.com/discussions/456679
```
const int n = 500;
var points = new List<IDataPoint>(n);
var rng = new System.Random();
for (int i = 0; i < n; i++)
points.Add(new DataPoint(i + 1, rng.NextDouble()));
```
As I adjust the window size, OxyPlot redraw performance is very slow. This was quite surprising since I've plotted LineSeries with 10,000 points before and had much better performance. My only guess as to why it degrades so much is that the noisy data requires painting more pixels.
Does anyone have a better understanding of why performance is so bad in this case? Even better, is there a way to fix my code or OxyPlot?
Comments: Continued in [discussion 456679][1]. [1]: https://oxyplot.codeplex.com/discussions/456679