Possible bug: zoom and smooth
This discussion was imported from CodePlex
everytimer wrote at 2013-09-04 23:14:
If you zoom at a LineSeries whose property Smooth has been set to true you will notice an increasing memory usage and in few seconds an exception is thrown saying that you're out of memory. You can experience this in the examples too. The problem is with
the generation of the segments, I think that the whole curve is being "smoothed" even if it's not visible in the plot.
Is there something that can be done to solve this?
PD. I've tested and even if you don't zoom at the Smoothed LineSeries but to an empty place you'll get the same problem.
Is there something that can be done to solve this?
PD. I've tested and even if you don't zoom at the Smoothed LineSeries but to an empty place you'll get the same problem.
objo wrote at 2013-09-05 07:53:
I see the problem, the Canonical spline creates a list and does not know the total number of points (depends on coordinates), so every time the plot renders, a new list is created.
Yes, I think the line should be clipped before smoothing. But we need a new clipping algorithm, which should include some points outside the clipping rectangle, otherwise the spline will be interpolated differently.
I have added it to the issues:
https://oxyplot.codeplex.com/workitem/10075
Yes, I think the line should be clipped before smoothing. But we need a new clipping algorithm, which should include some points outside the clipping rectangle, otherwise the spline will be interpolated differently.
I have added it to the issues:
https://oxyplot.codeplex.com/workitem/10075
Customer support service by UserEcho