[英]how to enable hardware acceleration in windows phone?
我已经创建了一个简单的应用程序游戏,例如您在android设备上找到的Flow Connect,但是在绘制线条时似乎有点慢,所以我想启用GPU或启用硬件加速,以便该应用程序可以在Windows Phone中快速执行。应该在XAML文件还是其他地方完成硬件加速。
Here's the code 这是代码
try it out 试试看
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" … />
Heres a blog for gpu acceleration in windows phone and silverlight 这是Windows Phone和Silverlight中GPU加速的博客
hardware acceleration windows phone and silverlight 硬件加速Windows Phone和Silverlight
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.