Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Some noobish Android questions...  (Read 4767 times)
0 Members and 1 Guest are viewing this topic.
Offline relminator
« Posted 2013-04-17 09:16:21 »

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!
Offline moogie

JGO Knight


Medals: 13
Projects: 6
Exp: 10 years


Java games rock!


« Reply #1 - Posted 2013-04-17 13:20:08 »

I have a samsung gt-I8150T: FPS ~55 and and ~900+-50 sprites
Offline relminator
« Reply #2 - Posted 2013-04-17 14:58:28 »

I have a samsung gt-I8150T: FPS ~55 and and ~900+-50 sprites

Thanks!

Anyone care to answer some of my questions?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #3 - Posted 2013-04-17 15:02:01 »

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?

@2 That is expected behavior imo... every android cellphone vsyncs and they have different fps. from 20 to 80 everything in tha hood.
@4 I doubt many people can help you here, everyone and their mom is using libgdx. Including me; we developed 3 Android games, also PC of course and never touched the android sdk directly.
@5 aah sure, S3 here, give me a moment
edit: stable 60. As expected from the S3

tl;dr: use libgdx

Offline Bogdan

Senior Newbie


Projects: 1



« Reply #4 - Posted 2013-04-17 15:04:55 »

1) I'm updating entities from inside the onDraw() method.  Is there a better way to update logic?
see answer 2

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.
Because of frame limit to 60 fps (this is good thing) You don't want to take full system resources and draw everything as fast as it can. However you could update Your logic faster if you want. However 60 fps limit is really good for newcomers.

3) What is a good way to support multiple screen sizes?
http://blog.gemserk.com/ everything you need about screen sizes

4) Is there a good Android specific forum I could ask questions aside from here?
don't know

5) Can you guys test the apk included in the DL and report your phone model as well as the FPS?
sorry, my android device is dead at the moment
Offline relminator
« Reply #5 - Posted 2013-04-17 15:20:05 »

Thanks guys! So it's safe to assume that onDraw() is the way to go?


Will use libGDX on my second game (I like to do things on my own the first try ;*) )

Offline Bogdan

Senior Newbie


Projects: 1



« Reply #6 - Posted 2013-04-17 15:32:32 »

Yes it is the way to go.
Offline relminator
« Reply #7 - Posted 2013-04-17 15:47:18 »

Thanks buddy!!! Now for sound and input....
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (62 views)
2014-11-13 12:34:49

digdugdiggy (41 views)
2014-11-12 21:11:50

digdugdiggy (34 views)
2014-11-12 21:10:15

digdugdiggy (30 views)
2014-11-12 21:09:33

kovacsa (52 views)
2014-11-07 19:57:14

TehJavaDev (56 views)
2014-11-03 22:04:50

BurntPizza (55 views)
2014-11-03 18:54:52

moogie (70 views)
2014-11-03 06:22:04

CopyableCougar4 (70 views)
2014-11-01 23:36:41

DarkCart (156 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!