Android开放GL真的比帆布慢?帆布、Android、GL

2023-09-07 13:44:36 作者:听弦断,断那三千痴缠

IM测试机器人SpriteMethodTest和默认设置画布越来越58fps,而Open GL的是50-55fps之间,缺口只是变得更加精灵较大。

im testing the android SpriteMethodTest and on default settings canvas is getting 58fps while open gl is between 50-55fps, and the gap just gets larger with more sprites.

我下的是IM pression使OpenGL比帆布快所以这是错的?或者是他们有毛病我的手机(HTC Desire的)?

I was under the impression that opengl is faster than canvas so is this wrong? or is their something wrong with my phone (htc desire)?

的http://$c$c.google.com/p/apps-for-android/source/browse/trunk/SpriteMethodTest/

推荐答案

有应注意的是SpriteMethodTest未使用OpenGL以最大效率。每个精灵正在呈现与它自己的一套GL电话,其中许多理想的精灵应分批到尽可能少的调用OpenGL作为可能的。

It should be noted that SpriteMethodTest is not using OpenGL at maximum efficiency. Each sprite is being rendered with its own set of GL calls, where ideally many sprites should be batched into as few calls to OpenGL as possible.

有一个精灵,渲染性能大战发生过在JavaGaming.org 现在,和 libGDX 是目前的领跑者。如果处理不当,OpenGL是画的东西以最快的方式。

THere's a sprite-rendering performance shootout happening over at JavaGaming.org right now, and libGDX is the current frontrunner. When handled correctly, OpenGL is the fastest way to draw stuff.