Very low performance with WKWebView

Bugs will be moved here once resolved.

Post » Tue Dec 27, 2016 3:28 pm

Problem Description
Intel XDK 3759, Cordova CLI any 6.2.0 or 5.4.1, export to iOs 9 with WKWebView
behaves like WKWebView is not present at all.

Attach a Capx
https://drive.google.com/open?id=0B14pU ... ERXdWtycG8

Description of Capx
One layout with 8 sprites and 8 text objects.
On layout start ->
project file "plank1.png" is loaded into the sprites
project file "text.txt" is loaded into the texts
Every 2 seconds layout restarted

Steps to Reproduce Bug
  • Export from Construct with enabled WKWebView option
  • Remove from the resulting folder files intelxdk.config.additions.xml and Newproject.xdk
  • Create new Intel XDK projects
  • Via Plugin Management add all the necessary plug-ins including WKWebView, File and Httpd
  • Export to iOs
  • Run in sandbox mode on iphone 6 or ipad 3 with ios 9

Observed Result
On every layout restart, noticeably slow loading project files

Expected Result
Invisibly fast loading of files like in android with standart Webview

Affected Browsers
  • Safari: problem occurs
  • Chrome: all ok

Operating System and Service Pack
Windows 8.1

Construct 2 Version ID
241 beta
B
16
S
6
G
1
Posts: 109
Reputation: 1,952

Post » Tue Jan 03, 2017 3:41 pm

Hi! HNY!

Behavior of my another project in various technologies:
iPad:
https://youtu.be/aDoUBmsMraA
iPhone:
https://youtu.be/FoyZgaCYgG0
Sony:
https://youtu.be/rKdxqCd5Pc8

It looks like wkwebview does not switch on. Any actions happens very slowly in all my projects. Has anyone experienced this?
I could use a stable release 239, but it can't load project files via url that is actively used in the project.

Hopefully this will be fixed in the upcoming stable release.
B
16
S
6
G
1
Posts: 109
Reputation: 1,952

Post » Sat Jan 07, 2017 4:17 pm

Another tests of my heavy project.

iPad3 ios9:
WKWebView, no WKWebView - terrible overall performance
preview via Wi-Fi - low performance

iPhone6 ios9:
WKWebView, no WKWebView - very slow loading of files, admissible performance of rest things
preview via Wi-Fi - admissible performance

Sony Z1 Compact
WebView - good performance
preview via Wi-Fi - very good performance

In general, performance in IOS (after the export ) is disgusting.
I would like to see the official comment about what is happening and is there hope.
B
16
S
6
G
1
Posts: 109
Reputation: 1,952

Post » Tue Jan 10, 2017 10:38 am

What should I do to get the answer here?

I'm writing year and a half in the Construct 2, and since the spring of 2016 i do attempts to release on iOS.
Unsuccessfully. One technical problem is replaced by another. It extremely disappoints.
And here don't answer.
B
16
S
6
G
1
Posts: 109
Reputation: 1,952

Post » Tue Jan 10, 2017 2:56 pm

SparklingAir wrote:What should I do to get the answer here?

I'm writing year and a half in the Construct 2, and since the spring of 2016 i do attempts to release on iOS.
Unsuccessfully. One technical problem is replaced by another. It extremely disappoints.
And here don't answer.


Same stuff with perfomance. More like battery overheating on ios. But im using Cordova CLI 4+, on export i switch off WKWebView in Construct and use cordova plugin cordova-plugin-wkwebview-engine on build instead. WkWebView works, but its not enough
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Thu Jan 19, 2017 6:12 pm

SparklingAir wrote: [*] Remove from the resulting folder files intelxdk.config.additions.xml and Newproject.xdk


In this step, you remove the files that specify to use WKWebView. So you are effectively disabling WKWebView yourself. So it should not be surprising the resulting app does not use WKWebView! If you try to add the settings yourself afterwards, it's possible you made a mistake. There's no reason to do that anyway, C2 exports all the necessary settings to use WKWebView.

Closing as not a bug.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Fri Jan 20, 2017 1:58 pm

@Ashley
For a moment it seemed to me ... but not, unfortunately, you're wrong.
Any variants of the builds have low performance on iOs. And ok on android.

1.
Ashley wrote:In this step, you remove the files that specify to use WKWebView. So you are effectively disabling WKWebView yourself.

For the specification of plug-ins is necessary and sufficient config.xml file. I did not delete it. I removed files relating solely to configure IntelXDK project, and created them again in IntelXDK self. Besides the convenience, what's the difference where to create them?

What about PhoneGap build which does not contain *.xdk in principle?
By your logic, it is impossible to enable WkWebView through PhoneGap.

2.
SparklingAir wrote: [*] Via Plugin Management add all the necessary plug-ins including WKWebView, File and Httpd

In this step i return all information about WkWebView that is contained in *.xdk file from Construct2. This a procedure of adding plug-ins officially recommended by IntelXDK. Could you explain in more detail why the addition of WkWebView such a way must not work?

3.
I tried through Construct2 *.xdk file - absolutly same result.
Opened as a bug: viewtopic.php?f=151&t=186575
B
16
S
6
G
1
Posts: 109
Reputation: 1,952

Post » Fri Jan 20, 2017 2:22 pm

The Intel XDK ignores config.xml. C2 puts the WKWebView configuration in to the Intel XDK files that you said you deleted. Why are you deleting them?

You can also upload it to PhoneGap Build, where it does use config.xml, which should also specify to use WKWebView.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Fri Jan 20, 2017 3:07 pm

There was a period when "Use new Intel XDK format" did not work and I have a habit to create a project from scratch and add plug-ins manually. Then there was a period when "Use new Intel XDK format" worked fine, but recently IntelXDK started to swear on some third-party plugins, and I came back to the manual method. Nevertheless, Intel, in theory, should properly configure WkWebView when manually adding it. And working with *.xdk come from the Construct2 also does not give a result. And PhoneGap build too.
B
16
S
6
G
1
Posts: 109
Reputation: 1,952


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests