如何在Windows Phone中启用硬件加速?

时间:2013-09-15 07:30:39

标签: c# silverlight xaml windows-phone-7

我创建的应用程序是一个简单的游戏,比如你在Android设备上找到的Flow Connect,但是在绘制线条时似乎有点慢,所以我想启用GPU或启用硬件加速,以便应用程序在Windows中快速执行手机,硬件加速应该在哪里,在XAML文件或其他地方。

1 个答案:

答案 0 :(得分:0)

这是代码

尝试一下

    1. Enable composition caching at the plug-in level by setting the EnableGPUAcceleration parameter to “true”.

<param name="EnableGPUAcceleration" value="true" />

2. You can now enable GPU acceleration on the element(s) you wish to cache by specifying a CacheMode value of BitmapCache on the object or container of objects.

<StackPanel   CacheMode="BitmapCache" … />

关于windows phone和silverlight中的gpu加速的博客

hardware acceleration windows phone and silverlight