jeff
jeff

Reputation: 3327

Visual and high CPU Utilization, is this heavy?

I have a WPF Canvas with about 240 paths. A path may go out to column 550 when I look at it in Visual Studio. It's a picture of a handheld remote with many buttons that was originally exported from adobe illustrator.

On a dual core machine, 4gb, when I show the graphic, it can spike the processor from a normal of about 10% up to 30% to 40% and it will stay there. There's nothing going on, just sitting there. Probably nothing special with respect to the graphic card. If I hide the graphic, the CPU usage will drop back down.

On a better machine with more cores (I7) and a better graphics card, the change is not really noticeable, but still a spike none the less.

Anyone share a similar experience?

Upvotes: 3

Views: 365

Answers (1)

Naresh Goradara
Naresh Goradara

Reputation: 1896

WPF need powerful processor to work smoothly. But in case of lower h/w it gives lower performance, specially when animation is used.

  • Reduce the frame rate of animation
  • Do not use transparency unless it is required
  • Use dispatcher to smooth the UI

Upvotes: 1

Related Questions