Consider Cocoon if XDK is not working (updated)

Discussion and feedback on Construct 2

Post » Wed Jan 25, 2017 12:58 pm

awesome thanks for validating that! I remember trying that awhile back but yea it was HORRIBLE.. audio was f'd up and performance was terrible.. but that was way before android 5 was out
B
54
S
9
G
1
Posts: 915
Reputation: 6,362

Post » Wed Jan 25, 2017 1:09 pm

part12studios wrote:awesome thanks for validating that! I remember trying that awhile back but yea it was HORRIBLE.. audio was f'd up and performance was terrible.. but that was way before android 5 was out

It still is horrible, XDK is no better in my opinion.
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Wed Jan 25, 2017 4:20 pm

Ashley wrote:The fact canvas+ (and really all non-browser engines) lacks so many features far outweighs any performance difference. Web Audio, form controls, XML parsing, standard-compliant inputs, sometimes even letterbox fullscreen, the list goes on and on. Fast and broken is worse than slower and working. If you can delete features to make something faster, it's not particularly useful if you need the features that got deleted. Note that (at least in the past I saw) it has other problems that come in to play as you increase the scale of your game, such as lacking the memory management that browsers have, so games tend to crash due to running out of memory where they would work in a real browser engine.

We deprecated non-browser engines a long time ago and I firmly believe no C2 users should use them, even if they're faster in some cases.

Modern webviews don't have any file size overhead. For example on Android if you target 5.0+, the APK is small compared to the size including Crosswalk. By the end of the year Android 5.0+ should be on the vast majority of devices. It's already at about 2/3rds worldwide.

@ashley I complied for webview on XDK, and for a simple platformer, the performance was far from usable, whereas canvas+ was perfect, speedwise. It completely screwed up alignment of tiled backgrounds and simulate key didn't work, but it was a usable speed, a solid 60 fps, rather than XDK's attempt. Is phonegap better for performance in your opinion?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Thu Jan 26, 2017 11:53 am

There shouldn't be any performance difference between them, but I find PhoneGap Build more convenient to use.
Scirra Founder
B
381
S
222
G
84
Posts: 23,975
Reputation: 189,160

Post » Thu Jan 26, 2017 7:56 pm

I'd love to use xdk over cocoon, but I can't possibly see any reason to use xdk webview over canvas+ when the performance is awful, and this was with a bag-standard basic project. I used the .xdk file c2 made, is there anything else I should be doing to match canvas+'s out of the box performance?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Thu Jan 26, 2017 7:59 pm

yea just stick with what works and when it doesn't move on.. performance wise all i can say is design games that are not pushing cpu too hard.. consider ways of making games that don't need heavy gpu performance. I've made lots of games with cocoon and xdk (crosswalk) and they all run fine for everything I've done..
B
54
S
9
G
1
Posts: 915
Reputation: 6,362

Post » Thu Jan 26, 2017 8:18 pm

part12studios wrote:yea just stick with what works and when it doesn't move on.. performance wise all i can say is design games that are not pushing cpu too hard.. consider ways of making games that don't need heavy gpu performance. I've made lots of games with cocoon and xdk (crosswalk) and they all run fine for everything I've done..


Have you tried webview by un ticking Cordova? I like the idea of not bundling chrome up with the apk, but the performance is awful in compared to canvas+, what are your findings?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Thu Jan 26, 2017 8:29 pm

no i havne't tried webview, it sounds like it sucks.. i have a pre android 5 phone so i know it will suck for my test device.. i'm ok with crosswalk and cocoon.io regardless of bloat.. i don't really care if a game is 30mb.. few people are going to not play my game because it's 22+ mb

there are way bigger problems to face than file size with mobile gaming
B
54
S
9
G
1
Posts: 915
Reputation: 6,362

Post » Thu Jan 26, 2017 8:37 pm

part12studios wrote:no i havne't tried webview, it sounds like it sucks.. i have a pre android 5 phone so i know it will suck for my test device.. i'm ok with crosswalk and cocoon.io regardless of bloat.. i don't really care if a game is 30mb.. few people are going to not play my game because it's 22+ mb

there are way bigger problems to face than file size with mobile gaming


Is Crosswalk faster than webview?
Last edited by Zebbi on Thu Jan 26, 2017 8:41 pm, edited 1 time in total.
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Thu Jan 26, 2017 8:40 pm

It isn't for android for devices are older so as far as I'm concerned I don't care. By the way could you link the games that you have made in the past that have been giving you an acceptable performance? I know you have set a lot about having problems with performance but I don't know what games you're actually trying to make that would be so demanding on any wrapper
B
54
S
9
G
1
Posts: 915
Reputation: 6,362

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests