DropShadowEffect causes performance degradation in Silverlight

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

When working with Silverlight you might notice sometimes performance degradation which you cannot explain. To ilustrate this take a look on following XAML example.

image

The picture above shows one page in XAML which contains two commented blocks. When these blocks are included in rendering process you will notice
very bad rendering performance. When these to effects are excluded from code you will reach much higher rendering performance.

Silverlight shader effects in general are rendered in software mode. Any object that applies an effect will also be rendered in software mode. Performance is degraded the most when using effects on large visuals or animating properties of an effect. This is not to say that you should not use shader effects in this way at all, but you should use caution and test thoroughly to ensure that your users are getting the experience you expect.

When you work with designers please be sure that people are aware of this.


Posted Aug 07 2009, 01:50 PM by Damir Dobric

Comments

Martin Kirk wrote re: DropShadowEffect causes performance degradation in Silverlight
on 08-21-2009 12:32

you can use the ShadowBox to up the performance: blogs.msdn.com/.../innerglow-effect-for-silverlight-2-beta-1.aspx

its 2-3x more FPS then Effect.DropShadow !!!

developers.de is a .Net Community Blog powered by daenet GmbH.