Export (0) Print
Expand All

EnableCacheVisualization (Silverlight Plug-in Object)


Gets or sets a value that indicates whether to use a non-production analysis visualization mode, which shows areas of a page that are not being GPU accelerated with a colored overlay. Do not use in production code.

object Element

<object ...>
  <param name="enableCacheVisualization" value="true"/>

By default, cache visualization is disabled. You set enableCacheVisualization to true if you want to enable cache visualization.


If used for initialization, you must use the createObjectEx method's JSON notation. You set the EnableCacheVisualization property in the Settings object.


value = silverlightObject.settings.enableCacheVisualization;


Not available.

Managed Code

Important note Important Note:

   Do not enable cache visualization in production code.

To visualize areas in your UI that are GPU accelerated, you must also enable GPU acceleration and set the cache mode for specific objects. To enable GPU acceleration, set EnableGPUAcceleration (Silverlight Plug-in Object) to true (in a param of the object tag). You can also set the OutOfBrowserSettings.EnableGPUAcceleration property for out-of-browser applications, but not through the property itself. For more information, see How to: Configure an Application for Out-of-Browser Support.

To set the cache mode, set the CacheMode property on specific objects that might invoke the GPU acceleration path for rendering.

Each texture being rendered in software (and thus not receiving benefit from hardware acceleration) is rendered with a colored overlay. Different texture layers might have different colors. The particular color of a given layer has no significance; this debug render mode simply chooses a different color for each new layer so that they can be separately visualized.

Community Additions

© 2015 Microsoft