Slow Animation Performance with Multiple Animations

  • Thread starter Thread starter vineet
  • Start date Start date
V

vineet

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.
 
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
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Hi,
Sorry for the (very)late reply

Here is a link to attached solution,
http://www.mediafire.com/?5d1xl0cwzug

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
CompositionTarget.Rendering

Also here is the dxdiag report as asked by Bob Powell.
http://www.mediafire.com/?bjsixwahm44


Thanks.








Nicholas Paldino said:
Can you post an example of the problem?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

vineet said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top