Slow Animation Performance with Multiple Animations

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?dmluZWV0?=

    Slow Animation Performance with Multiple Animations

    In WPF (even with considerable improvement in version 3.5), while running
    multiple animations in a single window, The performance of one animation
    suffers a lot.

    for example, i have two image transitions on two independent Canvases on a
    Grid.

    1. is simple, slide transformation running, continously from left to right
    with multiple images.
    2. 3D transitions over multiple images.

    Even after first run, when the images have beeen cached, when the 3D
    Transition happens, there are lots of jerks in the first transition.

    What are the reasons and ways to avoid it, if any.




  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Slow Animation Performance with Multiple Animations

    Can you post an example of the problem?

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "vineet" <vineet@discuss ions.microsoft. comwrote in message
    news:FE6BE558-30D5-4CED-986A-62D1529EE81A@mi crosoft.com...
    In WPF (even with considerable improvement in version 3.5), while running
    multiple animations in a single window, The performance of one animation
    suffers a lot.
    >
    for example, i have two image transitions on two independent Canvases on a
    Grid.
    >
    1. is simple, slide transformation running, continously from left to right
    with multiple images.
    2. 3D transitions over multiple images.
    >
    Even after first run, when the images have beeen cached, when the 3D
    Transition happens, there are lots of jerks in the first transition.
    >
    What are the reasons and ways to avoid it, if any.
    >
    >
    >
    >

    Comment

    • Bob Powell [MVP]

      #3
      Re: Slow Animation Performance with Multiple Animations

      Hmm, Several well known authors cite the fact that the animation system is
      indeed the most costly of the WPF features.

      The capabilities of the system will also be likely to change depending on
      the graphics card capabilities for DX9.

      As well as posting the example as Nicholas suggests can you post the DXDIAG
      report too?

      --
      --
      Bob Powell [MVP]
      Visual C#, System.Drawing

      Ramuseco Limited .NET consulting


      Find great Windows Forms articles in Windows Forms Tips and Tricks


      Answer those GDI+ questions with the GDI+ FAQ


      All new articles provide code in C# and VB.NET.
      Subscribe to the RSS feeds provided and never miss a new article.


      "vineet" <vineet@discuss ions.microsoft. comwrote in message
      news:FE6BE558-30D5-4CED-986A-62D1529EE81A@mi crosoft.com...
      In WPF (even with considerable improvement in version 3.5), while running
      multiple animations in a single window, The performance of one animation
      suffers a lot.
      >
      for example, i have two image transitions on two independent Canvases on a
      Grid.
      >
      1. is simple, slide transformation running, continously from left to right
      with multiple images.
      2. 3D transitions over multiple images.
      >
      Even after first run, when the images have beeen cached, when the 3D
      Transition happens, there are lots of jerks in the first transition.
      >
      What are the reasons and ways to avoid it, if any.
      >
      >
      >
      >

      Comment

      • =?Utf-8?B?dmluZWV0?=

        #4
        Re: Slow Animation Performance with Multiple Animations

        Hi,
        Sorry for the (very)late reply

        Here is a link to attached solution,


        Note whenever the animation on the upper imageslide show starts, esp, 3D
        Transition, the animation in the bottom strip shakes.
        tried using both Animation Subsystem of WPF as well as
        CompositionTarg et.Rendering

        Also here is the dxdiag report as asked by Bob Powell.



        Thanks.








        "Nicholas Paldino [.NET/C# MVP]" wrote:
        Can you post an example of the problem?
        >
        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m
        >
        "vineet" <vineet@discuss ions.microsoft. comwrote in message
        news:FE6BE558-30D5-4CED-986A-62D1529EE81A@mi crosoft.com...
        In WPF (even with considerable improvement in version 3.5), while running
        multiple animations in a single window, The performance of one animation
        suffers a lot.

        for example, i have two image transitions on two independent Canvases on a
        Grid.

        1. is simple, slide transformation running, continously from left to right
        with multiple images.
        2. 3D transitions over multiple images.

        Even after first run, when the images have beeen cached, when the 3D
        Transition happens, there are lots of jerks in the first transition.

        What are the reasons and ways to avoid it, if any.


        >
        >
        >

        Comment

        • =?Utf-8?B?dmluZWV0?=

          #5
          Re: Slow Animation Performance with Multiple Animations

          Hi,
          Sorry for the (very)late reply

          Here is a link to attached solution,


          Note whenever the animation on the upper imageslide show starts, esp, 3D
          Transition, the animation in the bottom strip shakes.
          tried using both Animation Subsystem of WPF as well as
          CompositionTarg et.Rendering

          Also here is the dxdiag report as asked by Bob Powell.



          Thanks.

          "Bob Powell [MVP]" wrote:
          Hmm, Several well known authors cite the fact that the animation system is
          indeed the most costly of the WPF features.
          >
          The capabilities of the system will also be likely to change depending on
          the graphics card capabilities for DX9.
          >
          As well as posting the example as Nicholas suggests can you post the DXDIAG
          report too?
          >
          --
          --
          Bob Powell [MVP]
          Visual C#, System.Drawing
          >
          Ramuseco Limited .NET consulting

          >
          Find great Windows Forms articles in Windows Forms Tips and Tricks

          >
          Answer those GDI+ questions with the GDI+ FAQ

          >
          All new articles provide code in C# and VB.NET.
          Subscribe to the RSS feeds provided and never miss a new article.
          >
          >
          "vineet" <vineet@discuss ions.microsoft. comwrote in message
          news:FE6BE558-30D5-4CED-986A-62D1529EE81A@mi crosoft.com...
          In WPF (even with considerable improvement in version 3.5), while running
          multiple animations in a single window, The performance of one animation
          suffers a lot.

          for example, i have two image transitions on two independent Canvases on a
          Grid.

          1. is simple, slide transformation running, continously from left to right
          with multiple images.
          2. 3D transitions over multiple images.

          Even after first run, when the images have beeen cached, when the 3D
          Transition happens, there are lots of jerks in the first transition.

          What are the reasons and ways to avoid it, if any.


          >

          Comment

          Working...