Friday, May 7, 2010

[android-developers] Re: Weird OpenGL performance in Nexus one

I was looking in to finally getting around to trying out
OpenGL to handle Sprites in a game I'm working on. I
figured before I start I'd run Chris Pruett's
SpriteMethodTest (http://tinyurl.com/2u5tbwj)
to get some numbers and motivation to move to OpenGL
from Canvas drawing.

But on an N1, I'm getting similarly strange numbers
to lixin's above. Moving up to 200 Sprites is an even
more pronounced win for Canvas drawing (at least in
this test). What gives??

100 sprites Animated

Canvas:
------
Frame: 18ms (55.555557 fps)
Min: 8ms Max: 68
Draw: 10ms
Min: 7ms Max: 43
Page Flip: 2ms
Min: 1ms Max 16
Sim: 0ms
Min: 0ms Max: 2

OpenGL ES (Use Basic Vert Quads):
--------------------------------
Frame: 23ms (43.47826 fps)
Min: 11ms Max: 428
Draw: 13ms
Min: 7ms Max: 252
Page Flip: 9ms
Min: 1ms Max 319
Sim: 0ms
Min: 0ms Max: 14

OpenGL ES (Use Draw Texture Extension):
--------------------------------------
Frame: 23ms (43.47826 fps)
Min: 16ms Max: 305
Draw: 12ms
Min: 5ms Max: 265
Page Flip: 10ms
Min: 2ms Max 36
Sim: 0ms
Min: 1ms Max: 3

OpenGL ES (Use VBO Extension):
--------------------------------------
Frame: 22ms (45.454544 fps)
Min: 14ms Max: 420
Draw: 12ms
Min: 4ms Max: 244
Page Flip: 10ms
Min: 1ms Max 35
Sim: 0ms
Min: 0ms Max: 3


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment