Cocoonjs V C2 HTML5 Export

Discussion and feedback on Construct 2

Post » Fri Jun 15, 2012 9:55 pm

After exporting the same project using-

1, HTML5 website (standard C2 export)

2,Cocoonjs (experimental)

I get the following FPS when i run the exported games in BROWSER window-



My question is..Why is the C2 HTML5 export lagging behind so much?

B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Fri Jun 15, 2012 10:39 pm

Are you using Android?

I guess HTML5 export doesn't come hardware accelerattion on mobile devices.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Fri Jun 15, 2012 10:44 pm

No Android...Both examples running in Browser window.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Fri Jun 15, 2012 10:54 pm

you used emulator or something like that??how did you opened cocoonjs on browser?
anyway,i think the game will work 60fps on chrome...


also as we know cocoonjs is the best way to do games we will see the future of it soon ^^
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Fri Jun 15, 2012 10:58 pm

How did you export CocoonJS? it doesn't come HTML file, i tought it's required to use CocoonJS Launcher and is for mobiles.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Fri Jun 15, 2012 11:02 pm

I ran them both on Opera emulator, Why is C2 HTML5 export 23 FPS slower, when its the same js file?

(It might run faster on a better system)chrisbrobs2012-06-15 23:03:54
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Fri Jun 15, 2012 11:13 pm

Well, Opera emulator is a mobile.

I tought you exported CocoonJS on desktop version.

Well, most browsers on mobiles aren't powerful enough because they use weak hardwares and no special API support on hardware acceleration, there special frameworks like appMobi, CocoonJS, etc. are solutions to allow special API and convert into native apps.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Fri Jun 15, 2012 11:26 pm

[QUOTE=Joannesalfa] Well, Opera emulator is a mobile.

I tought you exported CocoonJS on desktop version.

Well, most browsers on mobiles aren't powerful enough because they use weak hardwares and no special API support on hardware acceleration, there special frameworks like appMobi, CocoonJS, etc. are solutions to allow special API and convert into native apps.[/QUOTE]


Yeh, I understand what your saying, but the opera is running on my desktop?

I just added an html file to get it running, the only thing stopping it running in browser is the event listener(i think)

I run the Cocoon export and it clocks 52 fps...close it..then run the C2 export(same constructjs file) and it clocks 29 fps.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Fri Jun 15, 2012 11:57 pm

hmm i don't know this way of running but try it in chrome and see if there is a different or no
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat Jun 16, 2012 12:13 am

Opera doesn't support WebGL/hardware acceleration so it's going to be slower. Well Opera 12 was released yesterday which has experimenatal hardware acceleration but you have to manually enable it.
http://my.opera.com/desktopteam/blog/2012/04/20/update-on-hardware-acceleration-in-opera-12
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Gianmichele, WhosWho and 5 guests