A good game must run offering smooth animation and good-looking graphics on the screen. Let's assume you have some doubts about the performance offered by Silverlight 3. Therefore, you decide to make some changes to the application developed in the previous chapter in order to test hardware acceleration. Hence, you will be able to develop games exploiting some of the features offered by modern GPUs in Silverlight.
Now, we are going to show more ghosts moving on the screen, but this time doing some transformations and using some hardware acceleration:
Note
We need a computer with a GPU or accelerated graphics card compatible with DirectX 9.0c installed in order to achieve significant results for the next experience.
1. Stay in the
SilverlightMonster
project.2. Open the ASPX code for
SilverlightMonsterTestPage.aspx
(by double-clicking on it in the Solution Explorer, found under theSilverlightMonster.Web
project). This is the ASPX test page for the...