Performance Tip: Integrate WKWebView into XDK for better FPS

Discussion and feedback on Construct 2

Post » Wed Aug 05, 2015 4:54 pm

Just wanted to give y'all a tip. If you integrate a wkwebview plugin into XDK, you'll get a decent increase in performance, on iOS at least. I've got from 20-25 fps to 25-30fps. It's not a *huge* increase, but every little bit counts!

Find steps here:
https://software.intel.com/en-us/xdk/docs/building-cordova-ios-app-with-wkwebview
B
21
S
10
G
4
Posts: 106
Reputation: 4,244

Post » Wed Aug 05, 2015 5:35 pm

Yeah that's cool, but Ashley said that wkwebview is still not officially supported by c2, he'll support it with cordova 4.0 and pluggable webviews.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Wed Aug 05, 2015 6:11 pm

@sisyphus is there a timeline for that?
B
21
S
10
G
4
Posts: 106
Reputation: 4,244

Post » Wed Aug 05, 2015 6:14 pm

adagar wrote:@sisyphus is there a timeline for that?

Here is apache's bugtracker, when all bugs get resolved, they release it, lol.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Thu Aug 06, 2015 10:46 am

I don't think I said C2 doesn't officially support it, only Cordova doesn't currently officially support it, although there is a plugin to enable it. C2 should work on any platform with a standards-compliant web view, and WKWebView is actually better than UIWebView in that regard AFAIK.

I think iOS 8 was missing features that Cordova needed to enable WKWebView by default, and AFAIK iOS 9 adds those features, so it should be able to use the new default there.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

Post » Thu Aug 06, 2015 12:53 pm

Ashley wrote:I don't think I said C2 doesn't officially support it, only Cordova doesn't currently officially support it, although there is a plugin to enable it. C2 should work on any platform with a standards-compliant web view, and WKWebView is actually better than UIWebView in that regard AFAIK.

I think iOS 8 was missing features that Cordova needed to enable WKWebView by default, and AFAIK iOS 9 adds those features, so it should be able to use the new default there.


Here you told me that it's not officially supported, i thought nothing changed since then. Cordova will officially support it with cordova-ios 4.0 as a pluggable webview.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sat Jan 02, 2016 9:41 pm

@adagar

Thanks for your tip! For me it was a huge fps improvement. Intel XDK UIWebView gave me 35-45 fps on my iPhone 6. I was able to show only 10 enemies at once for this reason. Thanks to Intel XDK WKWebView, now I can show over 40-50 enemies at the same time and get 55-60fps on my iPhone 6!

This is a big deal for me. Nice!
B
4
S
1
Posts: 49
Reputation: 452

Post » Sat Jan 02, 2016 10:38 pm

CORDOVA 4.0.0 is already out https://shazronatadobe.wordpress.com/20 ... w-support/
and support wkwebview as pluggable webviews
B
45
S
16
G
8
Posts: 792
Reputation: 8,306


Return to Construct 2 General

Who is online

Users browsing this forum: wmnjunior and 1 guest