473,699 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.


Feb 7 '08 #1
4 3660
Can you post an example of the problem?

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

"vineet" <vi****@discuss ions.microsoft. comwrote in message
news:FE******** *************** ***********@mic rosoft.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.


Feb 7 '08 #2
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.
"vineet" <vi****@discuss ions.microsoft. comwrote in message
news:FE******** *************** ***********@mic rosoft.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.

Feb 8 '08 #3
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
CompositionTarg et.Rendering

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


"Nicholas Paldino [.NET/C# MVP]" wrote:
Can you post an example of the problem?

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

"vineet" <vi****@discuss ions.microsoft. comwrote in message
news:FE******** *************** ***********@mic rosoft.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.




Feb 20 '08 #4
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
CompositionTarg et.Rendering

Also here is the dxdiag report as asked by Bob Powell.
http://www.mediafire.com/?bjsixwahm44
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
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.
"vineet" <vi****@discuss ions.microsoft. comwrote in message
news:FE******** *************** ***********@mic rosoft.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.


Mar 4 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1314
by: Simena Dinas | last post by:
KToon: 2D Animation Toolkit KToon is a 2D Animation Toolkit designed by animators (Toonka Films) for animators, focused to the Cartoon's industry. This project is covered by the GPL License using G++, OpenGL and QT as programming resources from KDevelop as the development platform. One year later of production, it is a pleasure for Toonka Films announces to the Free Software community the release of the KToon
5
3446
by: Brian Angliss | last post by:
I'm relatively new to scripting in JavaScript, so I'm not too surprised I'm having difficulty scripting up an animation effect for my personal site. What I'm trying to do is the following: When I go onMouseOver on a button in a nav bar, I want that button to switch to a different image while at the same time another blank image changes as an animation to an associated image. When I go onMouseOut, the bar image reverts back to the...
6
2395
by: Darren | last post by:
X-No-Archive Hi all, Can anyone help me with structuring the data in a small tool I have to build? I'm trying to work out if there's a design pattern or data structure that would remove some of the dependencies. I am designing an animation tool.
0
1103
by: Thag | last post by:
Hi! I am currently trying to get an overview about the possibility of separating graphical data from its animations. More specifically speaking, the graphical data is made up from 3D-CAD authoring software (e.g. CATIA). This static data is then used to create animations describing construction steps. Because the original 3D data is undergoing continuous (minor) change, it would be necessary to alter the animations whenever the 3D data...
1
1779
by: softwaredeveloper | last post by:
Hi friends, I am very new here, could you please give me some suggestions? Is FLASH the right technology? Or if there is any better solution? Purpose - To generate multiple simple moving objects like a box on my website that can move from left to right and up/down. The moving objects have to be dynamically generated according to different products and the sharps are a little bit different.
0
5320
Frinavale
by: Frinavale | last post by:
I have a peculiar problem with an UpdatePanelAnimationExtender wherein the animation for the OnUpdating event only fires the first time the UpdatePanel it target's performs a PostBack. The animation is quite simple...it disables all of the buttons in the UpdatePanel when it is updating...and enables all the buttons within the UpdatePanel once it finishes it's postback. I am dynamically creating the animation in my VB.NET code: Private...
0
1105
by: shapper | last post by:
Hello, I need to create the following code at runtime: <ajaxToolkit:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server" TargetControlID="updatePanel"> <Animations> <OnUpdating> <Parallel duration="0"> <ScriptAction Script="onUpdating();" />
4
13913
by: Sin Jeong-hun | last post by:
Most applications, including Windows Explorer, show some sort of 'wait' dialog with animation when a lengthy operation is going on. For example, When the Windows Explorer is searching for something, it shows a small dialog with a moving flashlight. I examined the explorer.exe and found that that was an avi file. Now that, I would like to do similar thing in my C# application. But what is the most efficient way to do so? 1)Manually...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.