Author Topic: Some noobish Android questions...  (Read 2421 times)

0 Members and 1 Guest are viewing this topic.

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Some noobish Android questions...
« on: April 17, 2013 »
Hello, I've been learning droid game development this past week and I have some questions I cannot find answers using google. ;*(

First, I've developed my own OpenGL ES 1.x rendering layer by porting some of my old C++(also converted to LWJGL) spritebatching code after reading how to set up openGL from this site: obviam.net



DL(with source):
http://rel.phatcode.net/junk.php?id=141

The framework was slow at first (Samsung galaxy S 2.1) but  after reading this:

http://www.badlogicgames.com/wiki/index.php/Direct_Bulk_FloatBuffer.put_is_slow

I achieved full speed with 1000 bullets on screen.

I also wasted time to convert my non-interleaved Spritebatcher to an Interleaved one because when the conversion was done, I only get a 1-2 FPS increase on ~1000 entities on screen. ;*(
 
So my questions...

1) I'm updating entities from inside the onDraw() method.  Is there a better way to update logic?
2) Why does the engine cap at 55 FPS on my 1 ghz samsung and 60 FPS on my 800 mhz LG Optimus E400?  It would still report 55 FPS if even if I only draw 1 entity.
3) What is a good way to support multiple screen sizes?
4) Is there a good Android specific forum I could ask questions aside from here?
5) Can you guys test the apk included in the DL and report your phone model as well as the FPS?


Thanks a bunch!
Challenge Trophies Won:

Offline Canopy

  • Atari ST
  • ***
  • Posts: 208
  • Karma: 20
    • View Profile
Re: Some noobish Android questions...
« Reply #1 on: April 17, 2013 »
2 i would assume to be related to swapbuffers and vbl behaviour for that device