Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

MediaElement high cpu

$
0
0

I'm facing an increase on cpu usage when using MediaElement. The weird is that in one screen I use 4 small MediaElements and the cpu doesn't increase.

When I move to another screen where MediaElement is bigger, the cpu increase a little, but in a way that the controls in the screen behaves slowly, like when you click in a ComboBox, and it has a delay to show the items.

If I make the MediaElement smaller, the cpu usage does not increase.

The worst is that I've made a sample (you can download it here), but I couldn't reproduce.

I'm sure it is the MediaElement, because if I remove it from screen or make it smaller, the cpu does not increase.

Here is 2 pictures showing the size of the MediaElement:

CPU about 13~18

CPU about 19~23


Take a look at WPF FlashMessage
About.me


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>