Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8557037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:29:03+00:00 2026-06-11T15:29:03+00:00

I’m optimizing a silverlight application which uses a lot of images (GIS style, display

  • 0

I’m optimizing a silverlight application which uses a lot of images (GIS style, display tiled images, zoom/pan/etc.), and I was thinking of using the bitmapcaching functionality which should offload a bunch of things to the GPU.

However, I can’t seem to get it to work. My host page contains the correct params (I think?):

    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
        <param name="EnableCacheVisualization" value="true" />
        <param name="EnableGPUAcceleration" value="true" />
        <param name="EnableFramerateCounter" value="true" />
      <param name="source" value="ClientBin/BitmapCaching.xap"/>
      <param name="onError" value="onSilverlightError" />
      <param name="background" value="white" />
      <param name="minRuntimeVersion" value="5.0.61118.0" />
      <param name="autoUpgrade" value="true" />
      <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none">
          <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
      </a>
    </object>

And my xaml should enable caching as well:

<UserControl x:Class="BitmapCaching.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White" CacheMode="BitmapCache">
        <Rectangle x:Name="img" Width="200" Height="200" Stroke="Black">
            <Rectangle.Fill>
                <ImageBrush ImageSource="/BitmapCaching;component/download.jpg" />
            </Rectangle.Fill>
            <Rectangle.RenderTransform>
                <RotateTransform />
            </Rectangle.RenderTransform>
        </Rectangle>
        <Button Content="Scale" Height="40" Width="100" Click="Button_Click" />
    </Grid>
</UserControl>

(yes, I know it’s not smart to put the cachemode on the root element)

However, when I launch the application, The complete application shows up with a red tinted overlay. This should indicate that there’s nothing being cached.

I’ve read that you need a recent driver for your GFX card, but that should be fine. This machine has an ATI Radeon HD5450 videocard with recent drivers. I can’t imagine that’s not enough?

I’m stumped. If anyone knows how to solve this, please, save me from going insane!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:29:04+00:00Added an answer on June 11, 2026 at 3:29 pm

    I believe MS screwed up the documentation on this property.

    The docs states that a tint will show up if it is NOT accelerated, and untinted if it IS accelerated. This is true, but for a different property: enableRedrawRegions!

    This property is similiar to EnableCacheVisualization, but it changes the color for every redraw. So if you turn on enableRedrawRegions, you will see the redraws as they occur. I find this much easier to visualize the redrawing which is occuring.

    By turning on/off GPU Accleration, you will see that with GPU on, there are no redraws of animated by the cpu (it being done by the gpu instead)objects. With it off, you will see many redraws.

    Then turn off enableRedrawRegions and turn EnableCacheVisualization on. You will see that with GPU acceleration off, everything looks normal. Turn it on, and everything looks colored. Meaning that colored DOES mean accelerated, the opposite of what the docs state.

    A good project to test this on is from this blog: http://andybeaulieu.com/Home/tabid/67/EntryID/193/Default.aspx. It shows a spinning phone which benefits from CPU acceleration and by toggling the properties, you can see what is going on with the GPU.

    Greg

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have an autohotkey script which looks up a word in a bilingual dictionary
I have a text area in my form which accepts all possible characters from
I know there's a lot of other questions out there that deal with this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.