I'm building an application that switches between several video files as condition changes. To make the switch smooth and the video starts smoothly, MediaElement's are not closed on switched out; I just Pause() and unload so that I can load it again when I need.
Doing this increases "Video Memory Usage" in Perforator. When "Video Memory Usage" gets close to specific amount, MediaElement either:
* Stops playing videos
* Plays audio okay, but video plays slow, like 1 FPS or less.
I tried this on two PCs.
1. DELL OptiPlex 745, 4GB RAM, Windows XP, NVIDIA GeForce 7600GS 256MB
2. DELL Precision T3400, 8GB RAM, Server 2008 x64, NVIDIA GeForce 9800GT 512MB
Problem starts appearing around over 200MB for GeForce 7600GS (256MB), and around over 470MB for 9800GT (512MB). I'm guessing this relates to the video memory amount of the video card. I can't be sure though.