Halfgeek's Recent Forum Activity

  • the new (soon to be released) Intel XDK build system also supports use of the new cordova-plugin-wkwebview-engine for iOS 9 devices which allows the use of the WKWebView (using it on iOS 8 devices automatically falls back to the default UIWebView) -- this will provide substantially improved performance on iOS 9 devices.

    Is this related to the current XDK errors when I try to add the WKWebView plugin?

    Error: Plugin "CordovaWebServer" failed to install.

    Error: Plugin "" failed to install.

    Error: Could not retrieve plugin dependencies for WKWebView Poly '.

    Error: Plugin WKWebView Poly failed to install.

    It can't install the CordovaWebServer, so it can't install Telerik's WKWebView plugin.

    I was guessing it's becaused you need a WebServer to send our game data to the WKWebView, because in iOS8, it would not allow loading from the local files but in iOS9 it does.

    Something along those lines?

  • xmnboy so the wkwebview will only work on iOS 9 and above? I know there are plugins such as https://github.com/Telerik-Verified-Plugins/WKWebView but idk if it works cause I'm using cocoon.io which allows for a great performance for iOS 7+. The only thing I don't like about cocoon is the file size limit of 50mb

    That plugin no longer works for XDK build, it gives an error that it can't install it.

    I think it's due to major changes in WKWebView from iOS8 or iOS9 (where its more stable and properly supports loading the game from local rather than web, which relies on a fake webserver to send our games to it... a hack workaround!).

    xmnboy

    Any news when this new XDK system will be released?

  • Arrays stored in LocalStorage keys as a JSON?

    I do that too, it works fine for Safari on iPad Mini 2. But I did notice on iPhone 6 plus, it would reset. No idea why.

  • I got this error when I built the IPA trough XDK:

    Error: Plugin "CordovaWebServer" failed to install.

    Error: Plugin "" failed to install.

    Error: Could not retrieve plugin dependencies for WKWebView Poly '.

    Error: Plugin WKWebView Poly failed to install.

    I've to remove it from the plugin management. First I thought it was a XDK problem (despite not having any XDK update recently) ), but when I've exported the files from C2 again, this plugin wasn't inserted in the plugin management as happened before. So I thought that it's something related of C2.

    I have the exactly same error message.

    Without that WKWebView plugin, performance falls back to standard UIWebView, and it's horribly slow.

    I'm using r217, so I don't think it's a 223 issue.

    ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I thought this was linked to the ID (ie. com.blah.game) in the project settings as well the Project Name?

    I've had instances in the past, where I change those, and the LocalStorage is no longer accessible. But if I rename it back, it works and retrieves data ok.

  • Did some research, App Preview doesn't allow plugins, so there's no WKWebView acceleration, just default UIWebView, hence, the terrible performance.

    Tried to do the build, got all the certificates and icons done.

    Won't build, failed to install the WKWebView plugin that XDK recommends: https://github.com/Telerik-Verified-Plugins/WKWebView

    Also failed to install the Cordova dependency, WebView Server.

    Le-sigh.

  • Actually, I prefer to build ipas rather than apks in the XDK. The iOS versions of my games run smoothly on my iPhone 6 whereas my apks having a serious lack of performance in several devices. I think you should give it a try.

    I haven't used XDK for iOS so I didn't know about it.

    Do you use the webview+ plugin for XDK to activate the new Safari iOS8+ performance enhancements?

    I just did a test build on XDK, using the Intel App Preview, over Wi-Fi, getting much worse performance than straight C2 preview over Wi-Fi with Safari.

  • I have tested Webview on Android 5+ with two games and it was still much slower than Crosswalk. Iwrote that in different topic. The comparison of Webview, Crosswalk and Canvas+.

    Then something is broken with XDK.

    Because on Android 5+ devices, the inbuilt browser runs preview over wi-fi very fast.

    Also, you should make a video of your gameplay, so us devs can better judge the performance in context.

    Importantly, this should always be measured: cpuutilisation. It gives a ratio from 0 to 1, 1 = 100% loading of the CPU thread and that's bad.

    So if you get 60 fps and 50% (0.5) cpu usage, that's a great result.

  • I think all this slagging off of C2 and in the process promoting a competing product on Scirra's own homepage is pretty tasteless frankly.

    Not at all, these are serious concerns.

    People should better understand the limitations of C2, despite it being a great engine for intuitive coding.

    Disappointment comes when their expectations are too far above the capabilities of C2.

    I know it's limitations, and sometimes I am upset over the bugs that 3rd party wrappers introduce, but I'm not disappointed with C2 at all. I'm very grateful for it.

  • You should test the Webview only build, Android 5+ system webview has Chromium that boost performance by 20% compared to previous versions. I suspect the gains you are seeing is due to the recent Crosswalk build moving to more recent Chromiums.

    So if you target Android 5+, no Crosswalk, no need for +20MB to the APK.

  • Well, they went with DX9 for CC and it runs really good on PC.

    Why not look into Vulkan for C3? Probably too late for that though, as C3 is just a UI overhaul.

  • The problem with native export is you need multiple codebases & renderers to go cross-platform, like CC with DX9, it's windows only and requires a lot of effort to port.

    But guess what?

    Vulkan is the answer.

    It's cross-platform, Windows, Linux, Android.

    MAC OSX has Metal, which is a derivative of Vulkan.

Halfgeek's avatar

Halfgeek

Member since 24 May, 2013

Twitter
Halfgeek has 4 followers

Connect with Halfgeek

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies