Jump to content

[CocoonJS] Launcher, question about frames per second performance


BdR
 Share

Recommended Posts

Hi all,

 

in the CocoonJS launcher I get 30 frames per second, but I read on the forum here that CocoonJS should give 60fps (see here or here). I launch my test app in the CocoonJS launcher with a URL and Canvas+. Am I doing something wrong here or is a difference between the launcher and the cloud compiler? I've been looking at CocoonJS lately and I made a test app. It's a bare minimum test just to check out how the CocoonJS launcher works and what the performance is.

 

See my test script here, you can tap the bottom bar to add/remove sprites:


 

3450djq.png

 

My frames per second testing, for 1-200-500 balls (mobile device is HTC Desire X, Android 4.1.1)

  • desktop chrome: (1)60fps - (200)60fps - (500)60fps
  • mobile chrome: (1)39fps - (200)31fps - (500)19fps
  • mobile default browser: (1)40fps - (200)19fps - (500)11fps
  • Cocoonjs launcher: (1)30fps - (200)28fps - (500)25fps
Link to comment
Share on other sites

I tried compiling my test app in the CocoonJS cloud service and then it runs slightly better than from the launcher app.

 

CocoonJS cloud compiler: 1ball=39fps - 200balls=35fps - 500balls=30fps

Link to comment
Share on other sites

If you want to test this more, have you tired not using textures on your balls? in this issue i posted here http://www.html5gamedevs.com/topic/7123-cocoonjs-images-and-screen-resolution/

I lost almost 25 FPS due to a single static image. I fixed the issue by lowering the game res but still this is very strange. 

Link to comment
Share on other sites

Thanks all for testing :) Confirms what I suspected, like korgoth said; CocoonJS needs a relatively new Android phone to run at 60fps, so phones manufactured in about last 1-2 years.

 

If you want to test this more, have you tired not using textures on your balls? in this issue i posted here http://www.html5gamedevs.com/topic/7123-cocoonjs-images-and-screen-resolution/

I lost almost 25 FPS due to a single static image. I fixed the issue by lowering the game res but still this is very strange. 

 

Actually the balls are not 3D models with textures, it's just 64x64 pixel sprites taken from a 64x512 spritesheet, see spritesheet below.

 

spritesheet.png

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...