I'm trying to get some performance out of my emulator on Android, and found that a very large performance drain is drawing the final backbuffer to the screen.
If I don't draw the (fully rendered) image, I'm getting about 65fps, but when I draw the image (224x256), it drops to 40-45 fps. Just by drawing 1 image!
Currently, I do it like this:
canvas.drawBitmap(pixels, 0, w, x, 8, w, h, false, paint);
pixels is an int with the 224x256 emulated image. Like I said, commenting this out gives me ~50% increase in framerate.
Any ideas to improve this?
I'm testing on an HTC Legend (I read that using Canvas is faster than OpenGL for this, although I haven't verified this myself)