Profile Picture

Performance degradation while zooming in on dashed lines

Posted By Sandor Davidhazi 9 Years Ago

Performance degradation while zooming in on dashed lines

Author
Message
Sandor Davidhazi
Problem Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 5, Visits: 24
Hi,

We have encountered a problem where if you zoom in on dashed lines the re-rendering takes longer and longer each time. After a while the chart seems to be frozen.

I have attached a file which is a modified WPF sample file. Just replace the contents of the original sample, start the WPF Example app, go to Chart Gallery / Line / Sampled 2D line and keep zooming in on the dashed line (keep it in the viewport in every zoom level).

The key seems to be the property called NLineSeries.SamplingMode. If it is set to SeriesSamplingMode.Enabled then as you zoom in the dashes get longer and wider. If it is Disabled, then the dashes stay at their original size regardless of the zoom level, but the rendering get longer.

1.) What can be done to keep the performance during zooming regardless of the chosen SeriesSamplingMode value?
2.) In our solution it is set to enabled, but it still behaves as if it was disabled. (The performance problem persists.) Is there any other factor which influences the performance during zooming in on dashed lines which we may not be aware of?

Thanks,
Sandor

Attachments
NSampledLine2DUC.xaml.cs.txt (418 views, 6.00 KB)



Similar Topics


Reading This Topic