Question

I can have a lot of controls in my layoutroot (a canvas). And as the tree gets bigger, performance naturally fades and eventually the application becomes unresponsive to most actions.. To give my creep a little push, I am trying to use the GPUAcceleration but I havenT seen any enhancement in the performance and more importantly I couldnT find a way to make sure if it is even trying.

Say I have this set on the Aspx host page of an SL app:

<asp:Silverlight ID="O2PSilverlightXaml" runat="server" Source="O2PSilverlight.xap"
EnableFrameRateCounter="true" MinimumVersion="3.0.40307.0" Width="100%" Height="100%"
EnableGPUAcceleration="true" />

How do i make sure if it worked? How do I know that my graphics card is supported or that it wasnT ignored due to the security settings of the browser ...etc?

This is for Silverlight 4.

Était-ce utile?

La solution

From the page you are linking to:

During profiling and performance tuning phases of application development, you can set EnableCacheVisualization (Silverlight Plug-in Object) to true to produce an overlay visualization of the areas in your UI that are being hardware accelerated.

This will give you a visual clue.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top