简体   繁体   中英

How to draw 10000+ ellipses on WPF canvas?

I'm writing a app to built a CAD viewer. When I using EllipseGeometry in canvas, it's very slow to create/move graphics. So i change to use DrawVisual. it's faster than using EllipseGeometry, but still very slow to move the whole graphics. is there any sample code to show me how to deal with so many ellipses.

I think it's probabily too much for WPF.

I would go for DirectX. See SharpDX which is no longer mantained but will give you an idea.

See also Fast 2D graphics in WPF

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM