High performance graphics using the WPF Visual layer

后端 未结 2 1988
北海茫月
北海茫月 2020-12-02 09:54

I am creating a WPF mapping program which will potentially load and draw hundreds of files to the screen at any one time, and a user may want to zoom and pan this display. S

2条回答
  •  抹茶落季
    2020-12-02 10:14

    Using many small DrawingVisuals with few details rendered per visual gave better performance in my experience compared to less DrawingVisuals with more details rendered per visual. I also found that deleting all of the visuals and rendering new visuals was faster than reusing existing visuals when a redraw was required. Breaking each map into a number of visuals may help performance.

    As with anything performance related, conducting timing tests with your own scenarios is the best way to be sure.

提交回复
热议问题