AIR renderMode GPU VS renderMode直接 [英] AIR renderMode GPU vs renderMode direct

查看:281
本文介绍了AIR renderMode GPU VS renderMode直接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发移动应用程序的AIR应用程序可以有人向我解释的差异使用的 renderMode = GPU VS renderMODE =直接,当你将使用要么?

When developing an AIR app for mobile application can someone explain to me the differences between using renderMode = GPU vs renderMODE = direct and when you would use either?

推荐答案

请随时纠正我,但是这​​是我的理解。 有2个组件的显示管线

Please feel free to correct me but this is my understanding. There are 2 components in the display pipeline

  1. 渲染
  2. 合成

有3 renderModes可以使用Flash / AIR

There are 3 renderModes possible with Flash/AIR

  1. CPU
  2. GPU
  3. 直接

使用CPU,无论是合成和渲染都是由CPU /软件处理。 随着GPU,合成由GPU /硬件处理和渲染,CPU /软件还是处理

With CPU, BOTH Compositing and Rendering are handled by the CPU/software. With GPU, Compositing is handled by the GPU/hardware and Rendering is still handled by CPU/software

DIRECT是GPU模式在合成由CPU /软件处理,而且呈现由GPU /硬件处理相反。

DIRECT is the opposite of GPU mode in that Compositing is handled by the CPU/software and Rendering is handled by the GPU/hardware.

GPU模式有利于充分利用局部的blitting,CPU模式从舞台块传输和直接模式的好处来了只有通过像八哥或Away3D中的框架目标的Stage3D,无论是直接还是间接的。

GPU mode benefits most from partial blitting, CPU mode from stage blitting and benefits from DIRECT mode come only if targeting Stage3D, either directly or indirectly via a framework like Starling or Away3D.

相反,如果定位的Stage3D,你必须使用renderMode = DIRECT

Conversely if targeting Stage3D, you must use renderMode=DIRECT

这篇关于AIR renderMode GPU VS renderMode直接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆