Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3 ... 5
  ignore  |  Print  
  Crabs!  (Read 13259 times)
0 Members and 1 Guest are viewing this topic.
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Posted 2011-10-02 22:12:44 »

Please give your Android phone a healthy dose of crabs, and then after as much finger tapping as you can muster, report your phone and framerate back here Smiley If you are too cool to own an Android phone but instead have one of them fancy Apple things, well... meh. I'd do something for my iPad too except I a) have to learn a new and inferior language b) have to ask Apple nicely c) have to learn a new IDE d) have to rewrite all my libraries it's taken me 8 years to make e) have to use a crappy Mac.



Cas Smiley

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2011-10-03 07:59:51 »

I filled the screen with crabs, every time I saw a gap I added more, no idea how many, it sometimes dipped to 27fps, but always settled to 30. HTC Sensation.

Endolf

Offline steveyO
« Reply #2 - Posted 2011-10-03 13:31:57 »

Cute little crabs. Revenge of the Crabs? Started with 30 but dipped down to ~5fps after a full screen/shed-loads of the little sods. HTC Desire.

https://play.google.com/store/apps/details?id=com.bullsquared.alggame Annoying Little Gits (Android)
www.bullsquared.com   Play java (applet) games! www.chessclockpro.com Free Online Chess Clock
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2011-10-03 13:42:58 »

Yup got a few reports here that the Desire leaves a little to be, er, desired. Seems it can't cope with the circles (which aren't sprites - they're arbitrary geometry inserted into the sprite engine pipeline, and drawn transparent). I suspect it's transparent fill rate that's screwing the Desire. I'll have to go easy on effects :S

Cas Smiley

Offline Captain Awesome

Junior Member


Medals: 2


Hi


« Reply #4 - Posted 2011-10-03 14:06:21 »

Filled the entire screen with craps... err crabs, fps stable at about 27.

Galaxy s i9000
Offline sproingie

JGO Kernel


Medals: 202



« Reply #5 - Posted 2011-10-03 15:19:41 »

Ran at 30FPS with well over a hundred crabs on my Samsung Galaxy S i5500 w/ CyanogenMod 7.  You need a crab counter, because I lost count.

For the lazy, here's a QR code for the download URL:


Offline tberthel
« Reply #6 - Posted 2011-10-03 16:05:50 »

Install Failed Older SDK

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2011-10-03 18:21:08 »

Android 2.2+

Cas Smiley

Offline pitbuller
« Reply #8 - Posted 2011-10-04 07:50:40 »

I found a bug. I tested it with huawei ideos x5 and could get about 30crabs but those circles slowed frame rate to 15fps. Then I closed the demo and forget it. After many hours I turned my keylock off and demo was still running on screen even if I have allready closed it and done other things beetween it.
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2011-10-04 07:54:50 »

It does actually pause and unpause but it won't get killed unless Android decides to kill it to make way for something else. I'll try to add a bit more lifecycle control into it.
I'm wondering whether I should run it at 60fps - it seems any phone capable of 60fps can cope with the circles anyway, and phones that can't cope with the circles are a bit shafted whatever.

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #10 - Posted 2011-10-04 08:02:17 »

Update the test to have it optional to do 30/60 fps and have it display number of crabs.

You could always to a benchmark app that starts at 60fps, adds crabs automagically for a while, till it runs out of fps, then drop back to 30 for a bit, then upload the results of number of crabs/circles and phone make/model to a google app engine service, so it's all done for you Smiley

Endolf

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #11 - Posted 2011-10-04 08:10:32 »

The crabs test isn't really a good performance metric though - in reality we'll be using 5 or 6 textures per frame, with maybe 30-40 state changes, and there's likely to be a large number of opaque sprites in the background as well instead of them all being translucent... I'm deliberately limiting the fps to 30 so I can tune the games to work on more phones. We're going to be a bit less about action I think with the phone games, so 60fps isn't quite so important.

Cas Smiley

Online Cero
« Reply #12 - Posted 2011-10-04 09:54:10 »

tested actually some other, not as powerful phones with it, and some get slow very quickly, like 1 crab equals 1 fps

but those phones cannot play all android market games fluently anyway, especially those RPGs and whatnot

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #13 - Posted 2011-10-04 10:02:29 »

Yeah, that's just it, isn't it - no point in aiming so low that everybody gets a shitty experience. I'm thinking of maybe specifying minimum SDK of 2.3 which should filter out nearly everything crappy. And 90% of our potential customers. But with millions of new customers appearing every year, and the 2 year upgrade cycle that contract phones have, I suppose that's not a big deal. I think I'll be happy if we make £10k out of Titan Attacks for Android.

Cas Smiley

Online Cero
« Reply #14 - Posted 2011-10-04 10:21:57 »

Well, Godspeed ! =D

Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #15 - Posted 2011-10-05 00:19:29 »

Samsung Galaxy S. Fps: 27 - 30, no matter how many crabs were on screen.
Look forward to Titan on Android  Smiley

Offline steveyO
« Reply #16 - Posted 2011-10-05 12:00:29 »

Advent Vega (Tablet). After about 100 crabs drops to 16-17FPS.  Still!! Better than my HTC Desire.

https://play.google.com/store/apps/details?id=com.bullsquared.alggame Annoying Little Gits (Android)
www.bullsquared.com   Play java (applet) games! www.chessclockpro.com Free Online Chess Clock
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #17 - Posted 2011-10-06 23:57:04 »

More crabs! This one's optimised for dual-core CPUs, and should be a bit faster generally all round even on a single core. I get to about 400 crabs at 60fps before I can't actually make any more crabs appear because I can't tap fast enough (must enable multi-touch input! hehe)

http://dl.dropbox.com/u/1199028/MinimalAndroid.apk

Does anyone know of a little CPU monitor graph I can go and look at after running it?

<edit>Quick tweak to get it to generate 10 crabs per tap sees me get the Galaxy up to 2500 crabs and still @ 60fps. *boggle* Each of these sprites is animated, rotated, scaled, tinted, and alpha-blended. This phone is like a supercomputer! Not so long ago we were aiming at 1500 sprites max on the desktop! (The Alien Flux days)

Cas Smiley

Offline sproingie

JGO Kernel


Medals: 202



« Reply #18 - Posted 2011-10-07 00:37:17 »

The circles really kill the FPS for me around 2000 crabs.  I get about 5 fps when they're being drawn, and it scoots back up when the circles go away.  I'm only getting around 40FPS with 2000 crabs tho, but I'm running on a power-saving governor that might be slowing it down just as CPU goes.
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #19 - Posted 2011-10-07 00:41:41 »

I'm still surprised the circles are so abysmally slow - they're only, like, 128 triangles each. How many crabs can you get whilst still @ 60fps?

Cas Smiley

Offline sproingie

JGO Kernel


Medals: 202



« Reply #20 - Posted 2011-10-07 00:52:06 »

I start dipping below 60 FPS after 1300-1600 crabs, seems to depend on my phone's mood.  I really hit a wall after 2300 crabs, drops down to 5fps and stays there til they start dying off.





Offline theagentd
« Reply #21 - Posted 2011-10-07 02:35:16 »

I'm still surprised the circles are so abysmally slow - they're only, like, 128 triangles each. How many crabs can you get whilst still @ 60fps?

Cas Smiley
Yeah, I wonder why drawing 128x2000 = 256000 triangles is slow on a phone. I mean, you're just drawing a quarter of a million triangles.  Cranky Try to run that on low end desktop graphics card, and it'll be about that slow too I bet.

Myomyomyo.
Offline sproingie

JGO Kernel


Medals: 202



« Reply #22 - Posted 2011-10-07 03:49:23 »

Yeah, I wonder why drawing 128x2000 = 256000 triangles is slow on a phone. I mean, you're just drawing a quarter of a million triangles.  Cranky Try to run that on low end desktop graphics card, and it'll be about that slow too I bet.

The circles don't stay on the screen.  There's maybe five of them on the screen at a time tops.
Offline theagentd
« Reply #23 - Posted 2011-10-07 05:19:06 »

You'd still have to do a quarter of a 0.75 million vertex transforms to find out if they are on the screen or not.

Myomyomyo.
Offline zammbi

JGO Coder


Medals: 4



« Reply #24 - Posted 2011-10-07 07:15:56 »

At the 600 mark, I just left it and it goes from 16fps to 60fps and cycles. Some heavy garbage collection going on?
I'm using a custom rom on my Milestone 1 on Android 2.3.5.

Current project - Rename and Sort
Offline zammbi

JGO Coder


Medals: 4



« Reply #25 - Posted 2011-10-07 07:23:54 »

Also I just got it to crash:


Quote
10-07 20:21:36.233: ERROR/AndroidRuntime(1025): FATAL EXCEPTION: Main Loop
10-07 20:21:36.233: ERROR/AndroidRuntime(1025): java.lang.NullPointerException
10-07 20:21:36.233: ERROR/AndroidRuntime(1025):     at com.shavenpuppy.jglib.sprites.GeometryStyle.render(GeometryStyle.java:420)
10-07 20:21:36.233: ERROR/AndroidRuntime(1025):     at com.shavenpuppy.jglib.sprites.SpriteEngine$RenderQueue.add(SpriteEngine.java:322)
10-07 20:21:36.233: ERROR/AndroidRuntime(1025):     at com.shavenpuppy.jglib.sprites.SpriteEngine.build(SpriteEngine.java:797)
10-07 20:21:36.233: ERROR/AndroidRuntime(1025):     at com.shavenpuppy.jglib.sprites.SpriteEngine.update(SpriteEngine.java:701)
10-07 20:21:36.233: ERROR/AndroidRuntime(1025):     at net.puppygames.minandroid.MinimalAndroidActivity.update(MinimalAndroidActivity.java:707)
10-07 20:21:36.233: ERROR/AndroidRuntime(1025):     at net.puppygames.minandroid.MinimalAndroidActivity$MainLoop.run(MinimalAndroidActivity.java:103)

Current project - Rename and Sort
Online Cero
« Reply #26 - Posted 2011-10-07 08:06:09 »

new crabs, LG E720.

Well I 'm not sure, when I was at 200 crabs, 60fps, crabs were deleted when I added more, I hope this is on purpose and not garbage collection

if thats the case then around 200. phone should be single core, not as powerful

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #27 - Posted 2011-10-07 12:32:48 »

Crabs only last 60 seconds so you do need to do some furious tapping to get the numbers up. The NPE is more of a worry though. Strange only one person has got it :/
<edit> Especially as an NPE is impossible on that line. Hm. Running the version which creates 10 crabs per tap, yes? Shows crab count and FPS?

Cas Smiley

Offline zammbi

JGO Coder


Medals: 4



« Reply #28 - Posted 2011-10-07 12:51:24 »

Quote
Especially as an NPE is impossible on that line. Hm. Running the version which creates 10 crabs per tap, yes? Shows crab count and FPS?
Yep and yep. I crashed by spamming.

Also I noticed that if you phone goes to sleep while its running, it will remove all the crabs but still have the old counter when you wake it back up.

Current project - Rename and Sort
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #29 - Posted 2011-10-07 13:20:28 »

I've managed to crash it twice, didn't get any message as to *why* it crashed, after the main screen went away my whole phone froze for a few seconds and then I ended up back at the home screen. I've got all afternoon to try again Wink

Endolf

Pages: [1] 2 3 ... 5
  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.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (60 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!