SilverlightShow: Silverlight 2, Databinding to the MediaElement.Position property Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples en-us SilverlightShow.net estoychev@completit.com (Emil Stoychev) Argotic Syndication Framework, http://www.codeplex.com/Argotic http://www.rssboard.org/rss-specification RE: Silverlight 2, Databinding to the MediaElement.Position property http://www.silverlightshow.net/items/Silverlight-2-Databinding-to-the-MediaElement.Position-property.aspx#comment1687 There is also a performance hit if you use binding to set the position instead of setting the Position property directly. I wrote a test app to prove this as I couldn't (and still can't) understand why this might be! Perhaps someone can shed some light?<br /> <p>I want to step through a movie - so  I set up a timer to increment the position (each 100ms originally, then each 1s).  The Binding method is a lot slower. Looking at TaskManager the cpu usage with binding looks like a comb  with 100% cpu usage at least half the time. Using property, there are maybe only a few times when the cpu goes 100%, although when it does the pc is still just about locked. I'm playing H264 FWIW but it came out of a converter app I found on the web and is massively inefficient - 20s of low res AV is over 2 MB!  </p> <p></p> <p> </p> <p> </p> <br /> ( Gavroche) http://www.silverlightshow.net/items/Silverlight-2-Databinding-to-the-MediaElement.Position-property.aspx Wed, 24 Jun 2009 18:38:40 +0300 RE: Silverlight 2, Databinding to the MediaElement.Position property http://www.silverlightshow.net/items/Silverlight-2-Databinding-to-the-MediaElement.Position-property.aspx#comment1686 There is also a performance hit if you use binding to set the position instead of setting the Position property directly. I wrote a test app to prove this as I couldn't (and still can't) understand why this might be! Perhaps someone can shed some light?<br /> <p>I want to step through a movie - so  I set up a timer to increment the position (each 100ms originally, then each 1s).  The Binding method is a lot slower. Looking at TaskManager the cpu usage with binding looks like a comb  with 100% cpu usage at least half the time. Using property, there are maybe only a few times when the cpu goes 100%, although when it does the pc is still just about locked. I'm playing H264 FWIW but it came out of a converter app I found on the web and is massively inefficient - 20s of low res AV is over 2 MB!  </p> <p></p> <p> </p> <p> </p> <br /> ( Gavroche) http://www.silverlightshow.net/items/Silverlight-2-Databinding-to-the-MediaElement.Position-property.aspx Wed, 24 Jun 2009 17:52:24 +0300 RE: Silverlight 2, Databinding to the MediaElement.Position property - Performance issues of binding vs direct http://www.silverlightshow.net/items/Silverlight-2-Databinding-to-the-MediaElement.Position-property.aspx#comment1685 There is also a performance hit if you use binding to set the position instead of setting the Position property directly. I wrote a test app to prove this as I couldn't (and still can't) understand why this might be! Perhaps someone can shed some light?<br /> <p>I want to step through a movie - so  I set up a timer to increment the position (each 100ms originally, then each 1s).  The Binding method is a lot slower. Looking at TaskManager the cpu usage with binding looks like a comb  with 100% cpu usage at least half the time. Using property, there are maybe only a few times when the cpu goes 100%, although when it does the pc is still just about locked. I'm playing H264 FWIW but it came out of a converter app I found on the web and is massively inefficient - 20s of low res AV is over 2 MB!  </p> <p></p> <p> </p> <p> </p> <br /> ( Gavroche) http://www.silverlightshow.net/items/Silverlight-2-Databinding-to-the-MediaElement.Position-property.aspx Wed, 24 Jun 2009 17:51:46 +0300