Version downloads

Download the game

Android app on Google Play

tisdag 1 maj 2012

Moving stuff to openGl

The game has 2 layers that build up the drawing on the screen. First an openGL in the background that shows the game and then a Canvas layer infront that shows menus and status.

After some testing on older devices I noticed that by disabling the Canvas layer the Fps got much higher and smoother. By watching "method profiling" in Eclipse I had suspected this, using a Handler and Canvas takes alot of cpu. 

So after the result from the tests Ive decided to move all the gameplay elements that was in Canvas to openGL. 
Menus will still be in the canvas layer, but they will not be called every frame. 

Things will be running smoother from now on :)

Inga kommentarer:

Skicka en kommentar