1

我已经创建了一个简单的游戏应用程序,例如您在 android 设备上找到的 Flow Connect,但在绘制线条时似乎有点慢,所以我想启用 GPU 或启用硬件加速,以便应用程序在 windows phone 中快速执行,在哪里是否应该在 XAML 文件或其他地方完成硬件加速。

4

1 回答 1

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 加速的博客

硬件加速 windows phone 和 silverlight

于 2013-09-15T10:51:42.080 回答