O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—detecting GPU-acceleration problems

You want to prepare the most exciting game using as much GPU acceleration as possible. However, is the game going to take advantage of GPU acceleration in Silverlight 3? As previously explained, that depends on the operations performed over the UI elements. If you have any doubts, it is possible to change a parameter and check whether Silverlight is sending the cache bitmap to the GPU for certain UI elements:

  1. Stay in the SilverlightMonster project.
  2. Open the ASPX code for SilverlightMonsterTestPage.aspx (double-click on it in the Solution Explorer, found under the SilverlightMonster.Web project).
  3. Move to the section beginning with the following line of code:
    <object data="data:application/x-silverlight-2," ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required