Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF control performance

What is a good (and preferably simple) way to test the rendering performance of WPF custom controls? I have several complex controls in which rendering performance is highly crucial. I want to be able to make sure that I can have lots of them drawwing out in a designer with a minimal impact on performance.

like image 724
MojoFilter Avatar asked Sep 04 '08 13:09

MojoFilter


People also ask

Does WPF use GPU?

The GPU, or Graphics Processing Unit, is the chip that powers your video card. Essentially, hardware acceleration offloads the work of rendering graphics in your WPF application from your computer's main processor (CPU) to the video card's processor (GPU).

What is virtualization WPF?

Virtualization technique in WPF improves the rendering performance of UI elements. By applying virtualization, the layout system ensures that only the visible items of a container are rendered on the screen.

What is VirtualizingStackPanel?

The VirtualizingStackPanel calculates the number of visible items and works with the ItemContainerGenerator from an ItemsControl (such as ListBox or ListView) to create UI elements only for visible items.

How does WPF rendering work?

WPF uses vector graphics as its rendering data format. Vector graphics—which include Scalable Vector Graphics (SVG), Windows metafiles (. wmf), and TrueType fonts—store rendering data and transmit it as a list of instructions that describe how to recreate an image using graphics primitives.


1 Answers

Tool called Perforator will help you.
See following article for details:

Performance Profiling Tools for WPF

like image 185
aku Avatar answered Oct 03 '22 19:10

aku