Drawing bitmaps faster on Android or OpenGL canvas

I currently have a game written using an Android canvas. It is completely 2D, and I draw bitmaps as sprites on a canvas, and it technically works, but I have a few functions that I need to add that will require drawing more bitmaps on the screen and there will be a lot more movement.

An application needs more energy.

What is the best way to move from this method of drawing raster images to canvas to use OpenGL so that I can draw them faster?

+6
android opengl-es
source share
2 answers

There are two platforms for creating 2d open gl games: http://www.rokonandroid.com/

http://www.andengine.org/

Unfortunately, none of them are as well developed as its iPhone equivalents (cocos2d-iphone), but they will help you get off the ground faster than trying to interact directly with openGL from the very beginning.

+2
source share

I think you can get good performance from the canvas .. but it takes a lot of work.

if you start with a good graphics performance library, then even if you get a lot of things wrong, you probably still get good performance :) lol

there is competition for the fastest drawing library ... libgdx is currently winning ...

https://github.com/libgdx/libgdx/wiki/A-simple-game

+1
source share

All Articles