Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing my first phone application on the windows 7 phone, using Silverlight. I want to make text scroll horizontally across the screen but when I try it the movement is very jerky. I have tried using storyboard, composition target rendering and using a dispatcher timer all with no difference. Does anyone know a good method that will guarantee smooth animation. Thanks.
Posted
Comments
Espen Harlinn 7-Jan-11 6:54am    
You are running on hardware emulation?
Neil Cross 7-Jan-11 6:58am    
im using the windows 7 phone emulator that came with the sdk if thats what you mean.
Espen Harlinn 7-Jan-11 7:38am    
Not that I've tried it, but running on an emulator is bound to have a wee bit overhead, and may be the reason things aren't running smoothly. If you can, try running the animation on standard SilverLight ... just a thought ...

Maybe you don't have GPU acceleration enabled.

Set App.Current.Host.Settings.EnableFrameRateCounter to true (and hiding the system tray if it is enabled)? If you see the framerate counters at the top of the screen, you have GPU acceleration enabled.

 
Share this answer
 
v2
Comments
fjdiewornncalwe 7-Jan-11 10:29am    
+5 for teaching me something new...
Try using Keyframe animation instead of DuobleAnimation. DoubleAnimations are much more jerkier than KeyFrames.
 
Share this answer
 
v3
Comments
fjdiewornncalwe 7-Jan-11 10:28am    
+5. Great point.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900