Improve drawingvisual render's speed

Posted by Michael Hao on Stack Overflow See other posts from Stack Overflow or by Michael Hao
Published on 2009-11-18T11:59:43Z Indexed on 2010/04/08 21:03 UTC
Read the original article Hit count: 428

Filed under:
|

I create my own FrameworkElement and override VisualChildrenCount{get;} and GetVisualChild(int index) by returning my own DrawingVisual collection instance.I have override OnRender .

I will add 20-50 DrawingVisuals in this FrameworkElement ,every DrawingVisual will have 2000 line segments.The logic value of these points between 0 to 60000.when I zoom into 1:1 the FrameworkElement 's Height will be 60000, the rending time will be 15 minutes!!

How do I improve the rending performance ?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about Performance