Strange Choppy WPF Animation

I am making an app that scrolls information on the desktop. The window is transparent. I am starting out simple, trying to find the lowest CPU use for animating things and I am starting with a simple TextBlock.

On my development machine, I get a very smooth animation across the screen setting the Canvas.Left property with a DoubleAnimation. However, on another Vista computer I get about a 1 second lag every 6 to 7 seconds. On an XP machine, it is again quite smooth. I have tried on 3 other machines and its 50% good and bad. I have 3.5 SP1 installed on all the machines.

CPU use on the systems never goes above 10%. I can see that I am not doing any software rendering. The Video card on my desktop is a nVidia Geforce 7xxx series, and one of the choppy machines was using a nVidia Geforce 88xx card. All are using the same driver release and the most currrent. Screen res usually is 1920x1080, with the exception of my Dev machine which is much larger ( 2560x1600)

HOWEVER - if I use Perforator to DISABLE dirty region support - it is smooth on all machines but CPU is now at 30%

I am lost. The choppiness is almost like clockwork. There is nothing else going on on the machines having the issues, all machines tested were Core 2 Duos, plenty of ram, latest drivers, latest Service Packs, I just dont know what else to do. I would expect simply higher CPU use, not lag.

Answers


If you are using the AllowsTransparency property you will have performance and compatibility problems.

The technical explanation is here:

http://blogs.msdn.com/dwayneneed/archive/2008/09/08/transparent-windows-in-wpf.aspx

from my personal (and painful) experience some display drivers will crush your program and others will make Windows work erratically when you have a WPF transparent window on screen for a long time, I recommend you try to re-write your GUI to not use transparency.


Need Your Help

How to “execute” onCreate method when activity in tabLayout is selected?

java android eclipse android-listview oncreate

I have two activities in tab layout. In first activity I'm adding elements to listview and in second activity, the listview is displayed. So the problem is that after I'm done adding elements to li...

ContextMenu in Material Design

android design material-design material

I want to make my app in Material Design, but one thing I noticed was that the ContextMenus are themed in Holo, as seen here: .

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.