在html-template/index.template.html中加入:
params.wmode = "direct"; // or gpu
可选值有:auto, cpu, gpu, or direct (auto = cpu)
如果是AIR程序,则把xxx-app.xml中被注释掉的以下配置打开:
<renderMode>gpu</renderMode>
可选值同上.
本文介绍如何在HTML模板中设置不同的渲染模式参数,包括auto、cpu、gpu及direct等选项,并指导如何为AIR应用程序配置渲染模式以提高性能。
在html-template/index.template.html中加入:
params.wmode = "direct"; // or gpu
可选值有:auto, cpu, gpu, or direct (auto = cpu)
如果是AIR程序,则把xxx-app.xml中被注释掉的以下配置打开:
<renderMode>gpu</renderMode>
可选值同上.
362
459

被折叠的 条评论
为什么被折叠?