Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

New Post: Slow redraws with noisy data in WPF

$
0
0
Thanks, objo! I did some more tests based on your suggestions.
  1. Enabled DisconnectCanvasWhileUpdating. I couldn't see or measure any change in performance.
  2. Implemented a FontFamily cache (just like the brush cache). No change.
  3. Eliminate all calls to TextBlock.Measure() by commenting out the whole if{} block in DrawText(). Still no change!
  4. Turn off all ticks and tick labels on the axes. Still no change???
I guess this means that the methods I highlighted before are not actually that expensive. One thing I didn't mention was that System.Windows.Application.Run() was about 50% of exclusive samples. After the changes above, it's nearly 70%. That must be WPF doing what it does.

I think all of this means that optimizing the existing code just can't make that much of a difference. So what about switching to retained graphics mode? My tests don't give any data about that. Is there some way to test the concept without doing a major rewrite first?

Viewing all articles
Browse latest Browse all 2061


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>