locked
Massive WPF animation problems under windows vista RRS feed

  • Question

  • Hello everybody,

     

    I´ve a strange problem with WPF Animations.

     

    The mouse will moved over an UserControl (screenshot white area) and the current mouse position will displayed in a pixelbar, displayed by a line at the current pixel position (screenshot orange arrows).

     

     

    The pixelbars are own UserControls, which gets the current mouse position over the MouseMove event by the white UserControl.

     

    On my machine with windows vista it´s runs terrible slow, as far the mouse leaves the origin (0x, 0y) it will more stucks, likes on a 486 runinng quake.

     

    Now then, here´s the joke: Under windows XP the same compiled wpf application runs without any problems or stuking. - but, why this?

     

    I´ve tested the executeable on other vista machines, always the the same problem at all.

     

    Anticipate: It´s a Core2Duo with 2.8 GHz and a GeForce 7800 - should actually run ...

    Detailed information:
    The projekt runs under visual studio 2008 beta 2, it´s a wpf application using 3.5 .NET framework.

     

    I´ve observed in general that wpf animations runs very slow under vista, e.g. a simple rectangle opacity fadein and -out. With XP there´s no problem...

     

    Whereby can this due to, has anyone such a similar problem, does anybody know this problem?

    Thursday, August 23, 2007 1:18 PM

Answers

  • Have you checked out this hotfix yet?

      http://support.microsoft.com/kb/938660
    Thursday, August 23, 2007 8:28 PM
  • I´ve solved the problem now.

     

    The microsoft support page contains an article "Performance for a WPF-based program that uses the layered windows feature may be less than expected in Windows Vista":

     

    http://support.microsoft.com/kb/938660/en-us

     

    Because Microsoft didn´t provide the download of this hotfix directly, I´ve found it at this page also:

     

    http://thehotfixshare.net/board/index.ph...s&showfile=2879

     

    Executing this update, at first it throws an exception with the code number "0x80070003", which can be solved by deleting the content files of the folder "\Windows\SoftwareDistribution".

     

    After the update runs sucessfully, the animation performance problem was gone!

     

    So, if you add this XAML code to your application for creating a transparent window:

     

    WindowStyle="None" AllowsTransparency="True" Background="Transparent"
     

    ...the problem occur immediately !

     

    You can check this out, before starting the update by removing the XAML "transparent" parameters.

     

    Another phenomenon is, that under Windows XP the performance problem doesn´t occur, just with Windows Vista.

     

    I think they didn´t tested this setting enough at release state - hope I can help with my thread.

     

    Friday, August 24, 2007 4:56 PM

All replies

  • Where exactly is the animation in this? From what I understand based on your explanation it seems like you're just changing the position of the items in response to mouse events. Are you saying you animate the position when the mouse moves? Can you provide more details on how the animation is put together?

     

    Thanks,
    Drew

    Thursday, August 23, 2007 7:42 PM
  • Have you checked out this hotfix yet?

      http://support.microsoft.com/kb/938660
    Thursday, August 23, 2007 8:28 PM
  • I´ve solved the problem now.

     

    The microsoft support page contains an article "Performance for a WPF-based program that uses the layered windows feature may be less than expected in Windows Vista":

     

    http://support.microsoft.com/kb/938660/en-us

     

    Because Microsoft didn´t provide the download of this hotfix directly, I´ve found it at this page also:

     

    http://thehotfixshare.net/board/index.ph...s&showfile=2879

     

    Executing this update, at first it throws an exception with the code number "0x80070003", which can be solved by deleting the content files of the folder "\Windows\SoftwareDistribution".

     

    After the update runs sucessfully, the animation performance problem was gone!

     

    So, if you add this XAML code to your application for creating a transparent window:

     

    WindowStyle="None" AllowsTransparency="True" Background="Transparent"
     

    ...the problem occur immediately !

     

    You can check this out, before starting the update by removing the XAML "transparent" parameters.

     

    Another phenomenon is, that under Windows XP the performance problem doesn´t occur, just with Windows Vista.

     

    I think they didn´t tested this setting enough at release state - hope I can help with my thread.

     

    Friday, August 24, 2007 4:56 PM
  • Not exactly sure that is the legal way to get those hotfixes but MS does provide a legal automated way.

      https://support.microsoft.com/contactus2/emailcontact.aspx?scid=sw;en;1410&WS=hotfix
    Friday, August 24, 2007 5:51 PM