Any good, fast canvas, cocoonjs alternative out there?

Discussion and feedback on Construct 2

Post » Tue Nov 25, 2014 4:06 pm

I've been working with CocoonJS a lot in the past few months, and while the main idea is awesome (and worked pretty well for a while), I've found lots of glitches and issues I can't ignore when relasing a game, forcing me to move from canvas+ to webview+, which dramatically hurt my game (sound issues, have to compile in an old compiler version for iOS etc...). That being said, canvas+ has worse issues than that...

Is there any good fast canvas alternative to wrap cocoonjs games with? for android, I know there's crosswalk (although I haven't tested it yet), but that's based on chromium. Is it good enough for fast movement animations / particles / webgl effects?

And about iOS, what's the alternative?

Thanks! :)
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Tue Nov 25, 2014 5:23 pm

Intel XDK (Crosswalk) is supposed to export games to IOS too, but I haven´t tested it.

XDK Works nicely for android.
B
12
S
2
Posts: 70
Reputation: 1,074

Post » Tue Nov 25, 2014 8:05 pm

@clockworkmonster , Yes, I know, but as far as I know, it follows the same approach as cordova - use the webview. Since 40% uses the old stock safari webview, this does not provide fast canvas rendering...
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Wed Nov 26, 2014 3:09 pm

iOS 8 is updating pretty fast, adding several percent market share every month. I'd just go for PhoneGap or Intel XDK and target iOS 8+ and Android 4+ with Crosswalk. The modern web views are really fast.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Wed Nov 26, 2014 4:44 pm

Thanks @Ashley, thing is, until iOS takes the share to make iOS7 negligible, what will be for iOS7 users?
iOS8 is at 56% right now, and I can't really release any game for iOS 8 users only...
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Wed Nov 26, 2014 8:27 pm

Why not release it for iOS 8+? It's only a matter of time before it reaches the vast majority of users. It's already up to 60% on latest figures. If you choose to support iOS 7 you will have to deal with wrappers which have some pretty difficult compatibility issues.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Wed Nov 26, 2014 9:44 pm

Ashley wrote:Why not release it for iOS 8+? It's only a matter of time before it reaches the vast majority of users. It's already up to 60% on latest figures. If you choose to support iOS 7 you will have to deal with wrappers which have some pretty difficult compatibility issues.

Hello Ashley, if i choose iOS 8 export, what can you say about new webview+ from ludei? As i understand, it's a wkwebview, even phonegap will use it (later), is it good? Maybe this can resolve troubles with cocoonjs? I mean, the wkwebview is the only export option for heavy games, the other option is canvas+ (buggy and deprecated) or phonegap with wkwebview, but nobody knows when phonegap will switch to wkwebview. So, what you can say about it?
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Wed Nov 26, 2014 11:50 pm

WKWebView is iOS 8+ only and should be coming to PhoneGap soon (I think it might be subject to Apple fixing bugs first). However even without it, right now, PhoneGap is no slower and has a lot more features than non-browser wrappers like Ejecta and CocoonJS canvas+. We wrote about this on our blog with benchmarks in September: https://www.scirra.com/blog/150/html5-game-performance-on-ios-8
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Thu Nov 27, 2014 10:06 am

Wow @Ashley, performance on iOS8 and safari looks simply amazing. Since it might take a while to get my game done anyways, I think I'll stick to your suggestion, Phonegap and WKWebView when its due..

Thanks!
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Thu Nov 27, 2014 10:58 am

Looking further, it seems Apple already fixed the bug preventing phonegap from implementing it, described at https://bugs.webkit.org/show_bug.cgi?id=137153. Also, there's a beta cordova plugin by Telerik which allows usage of WKWebView in phonegap WITH the file:// protocol: https://github.com/Telerik-Verified-Plugins/WKWebView#2-screenshot

Source: http://devgirl.org/2014/11/10/boost-your-ios-8-mobile-app-performance-with-wkwebview/
B
18
S
7
G
1
Posts: 157
Reputation: 1,928


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests