New Android Export Experiences

Discussion and feedback on Construct 2

Post » Sat Dec 21, 2013 11:13 am

I have compared CocoonJS Vs Crosswalk XDK in 3 games. None have physics, text objects or much collision checking.

Device: Sony Xperia S with GPU, Android 4.1.2,

1) Learn and Spell English Words
https://play.google.com/store/apps/details?id=com.wobblemonkey.learnandspellenglish

Loading Time: 25 secs CJS, 13 secs XDK
Size: 16MB CJS, 27MB XDK
Idle Menu: 53FPS CJS, 39FPS XDK
Swiping levels menu (constant swiping with a lot of transparencies): 46FPS CJS, 36FPS XDK
Gameplay (lots of transparencies): 50FPS CJS, 39FPS XDK

2) Verb War
Loading Time: 25 secs CJS, 10 secs XDK
Size: 9MB CJS, 21MB XDK
Idle Menu: 55FPS CJS, *58FPS XDK
Swiping levels menu (constant swiping): 52FPS CJS, *55FPS XDK
Gameplay (Lots of moving sprite fonts): 50FPS CJS, 46FPS XDK

3) Match-Up Learn English Words
https://play.google.com/store/apps/details?id=com.wobblemonkey.matchupenglishstarter
Loading Time: 29 secs CJS, 14 secs XDK
Size: 17MB CJS, 28MB XDK
Idle Menu: 30FPS CJS, *58FPS XDK
Swiping levels menu (constant swiping with some transparancies): 30FPS CJS, 31FPS XDK
Gameplay (scaling when turning cards): 31FPS CJS, *45FPS XDK

As already mentioned the audio is very quiet using the XDK, the orientation doesn't lock and the Android bar shows, which I'm sure will be resolved.

Upscaling is good and crisp using both CJS and the XDK. All 3 games were designed at 800px but have been scaled up to to 1280 in my Xperia. This compares well to the standard (Appmobi style) Android export which is blurry.

Overall the frame rates are higher using CocoonJS in 2 of our 3 games. My frame rates are all averages from several minutes of testing and observing rather than a system measured average, but I'm confident that they are fairly accurate.

Interestingly the XDK only seems to win where there are no transparencies or sprite fonts (which include transparencies in our games), which leads me to believe CJS handles transparencies better than the XDK, but I'd like to test further.

The CPU usage is always much higher using CJS.Nathan2013-12-21 11:38:58
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Sat Dec 21, 2013 12:12 pm

Crosswalk will get faster as it gets updated - Chrome for Android tends to get a bit faster with every release, and those improvements will reach Crosswalk after a while. I think Crosswalk is still on Chrome 29 and Chrome 31 is out now and can be faster in some cases.

@jayderyu - a possible option for large games is to load them off the web. If your app is just an empty Crosswalk container set to load a web URL, then it will be ~20mb in the Google Play store, and on first run sets about downloading the larger game (seriously though, 500mb is ambitious for a phone... not sure many native apps even go that far!). Then if the offline cache is still working in Crosswalk, it will still work offline after the first run.
Scirra Founder
B
397
S
236
G
88
Posts: 24,417
Reputation: 194,538

Post » Sat Dec 21, 2013 3:47 pm

@Slice: You don't have to install chrome to use crosswalk.

[QUOTE=Slice] I have a question for the crosswalk, need to have installed chrome for android or not, to run the application ?[/QUOTE]
Intel Corporation
B
15
S
3
Posts: 193
Reputation: 1,552

Post » Sat Dec 21, 2013 4:03 pm

When it is time to publish, you will get the most reach by publishing both the ARM and x86 versions. Customers will see only a single app in the store and google play will download the appropriate version. XDK will set the version codes so it should be straightforward. We are looking into single APK solutions, but it makes the APK size problem even worse. Intel makes x86 so we are hoping you will take the extra step to publish both.

You can read more by googling 'android multiple apk'

[QUOTE=R0J0hound] @AnD4D
ARM and x86 are the processor types. ARM is what almost all android devices use so I'd say pick that.[/QUOTE]
Intel Corporation
B
15
S
3
Posts: 193
Reputation: 1,552

Post » Sat Dec 21, 2013 4:11 pm

@IntelRobert

for now CocoonJS still wins because of
1) smaller APK (in general 10MB libs, or 2 x 5 MB if splitted)
2) MoPub banner support
B
18
S
7
G
1
Posts: 783
Reputation: 4,247

Post » Sat Dec 21, 2013 4:30 pm

will test in three mobiles, Nexus 5, Galaxy S4, and finaly in nexus one with one processor and custom Rom 4.4, to see how it goes in one processor mobile. whether I think will be very good...
B
55
S
14
G
9
Posts: 156
Reputation: 21,485

Post » Sat Dec 21, 2013 6:05 pm

@spy84 That did help and thanks. I haven't tinkered with the XDK in a while ha.

But now when I try the build process it builds then nothing happens afterward. When I tried it yesterday it gave me the option to download on send to email. It even sent an email automatically without me entering my email address. Today it's not doing anything after the build process says has "completed".

I've read others having this issue, what did you do to resolve it?
B
29
S
5
G
5
Posts: 39
Reputation: 5,991

Post » Sat Dec 21, 2013 6:10 pm

@Ashley that is an interesting way to go around it.

As for 500MB that's a super high estimate. I've been arguing for reduced animations from 24fps character down to 12fps animated characters; also reducing 256 frames sprites down to 64. But it's been a uphil argument. I've also been trying to insist using Spriter for animation to have a better flow of animation and certainly vastly reduced characters.

I will point out that there are numerous tablet games that blow the 50mb sky high.
Street Fighter 4 Volt. 800MB
Infinity Blade 600MB
X-Com. no idea what the size on IOS is, but I gartuntee it's about 1gig
Plants Vs Zombies 2 ?? larger than 50mb

Also we found that our audio(wav removed) used 2/3 of our size. However has originally posted we haven't gone through to the mobile size reduction yet and we can cut that in half by removing ogg or m4a depending on the platform.

But 500mb is a high estimation. I suspect the entire game should probably closer to 200. but I would rather give a larger sample than a smaller one.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Sat Dec 21, 2013 8:10 pm

The .m4a files are not necessary for Crosswalk, btw - it will always use the ogg files. The next build will skip exporting them automatically, but deleting them yourself for now might get you extra filesize freedom.
Scirra Founder
B
397
S
236
G
88
Posts: 24,417
Reputation: 194,538

Post » Sat Dec 21, 2013 8:20 pm

Hey guys, Can you try phonegap with this plugin https://github.com/Wizcorp/phonegap-plugin-wizCanvas ?

I see Crosswalk doesn't help a lot for games.Joannesalfa2013-12-21 20:21:02
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests