开发者

WPF Animation Optimization

I've seen a lot of these questions around, but most focus on Windows XP, and none of the solutions work for me.

I'm running a really simple application with really simple animations (sliding, zoom in / zoom out, fade in / fade out, grow / shrink, etc), and most anima开发者_JAVA百科tions are choppy (specially the ones that slide the whole screen). At first I thought it was because the ListViews in the screens had data, so I removed the data just to test and no improvement. Also the computer I'm trying it on is not that bad, it's an i5 processor with a GeForce GT 330M so I would think it would run smoothly there.

I've tried it in a really high-end gaming computer, and in there it works fine, but I don't think the application I'm doing should really need a high end computer to be rendered ok, I repeat, it's really simple.

Are there any general optimizations I can do? I looked online here and in other places, and I've already done most of the optimization.

Anyway, any suggestion will be greatly appreciated, we want of course the application to run in a regular user computer (maybe dual core with win 7 and low end graphics card at the very least).

Thank you.


How are you animating? If you are using Storyboards and built-in WPF animations, then you should be fine- I'd suggest checking the rendering tier that your machine scores- see here: http://msdn.microsoft.com/en-us/library/ms742196.aspx. If you are using timers or manual animations of some sort, I'd suggest moving to the built-in animations available in WPF.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜