Is Android open gl really slower than canvas?

im testing android SpriteMethodTest and by default the canvas settings get 58 frames per second and open gl between 50-55 frames per second and the gap just widens with a lot of sprites.

I got the impression that opengl is faster than canvas, so what's wrong? or is something wrong with my phone (desire htc)?

http://code.google.com/p/apps-for-android/source/browse/trunk/SpriteMethodTest/

+3
source share
6 answers

It should be noted that SpriteMethodTest does not use OpenGL with maximum efficiency. Each sprite is handled by its own set of GL calls, where ideally many sprites should be collected with as few OpenGL calls as possible.

libGDX . OpenGL - .

+7

, . ? FPS, , < 10, , OpenGL Canvas.

. .

+1

, , , , .

+1

... ... ...

, , OpenGL . GL , , .

0

GPU

0

SpriteMethodTest HTC Tattoo (1.6, , ), OpenGL Canvas. 100 30 , 3 OpenGL 5 . Canvas , OpenGL, , .

Now I'm confused if I cannot get performance on low-level devices with OpenGL, why should I use it? Is this not true on most devices? Or maybe the method used in SpriteMethodTest is not the best (I haven't looked at the code yet), as some people say?

0
source

All Articles