CocoonJS Webview+ on iOS8+ (It's FAST!)

0 favourites
From the Asset Store
It's here!
$4.95 USD
Creepy and nasty horror track. It's terrifying from the beginning till the end. Goosebumps guaranteed
  • In case anyone is wondering, here's some preliminary feedback for this new mobile option.

    I exported my big spacesim Star Nomad (PC version with high-res textures) from C2 using the HTML5 Web export option, zipped the entire folder, then compiled it with CocoonJS version 2.1 set for Webview+.

    Gameplay video:

    Subscribe to Construct videos now

    Some quick setting in Xcode6.1, set for universal and provision/profile set it.. ran it on my iPad Mini 2 and WOW.

    It loads much faster (~10s) and even has the progress bar. It also fully supports Fullscreen Scaling Letterbox (prior it would only do Inner/Outer).

    I noticed something crazy right away monitoring the device usage.

    10MB memory usage!

    ARE YOU KIDDING ME?! I've trimmed & optimized it so much to reduce memory use, but on Canvas+ it was using ~170MB memory. On Crosswalk for Android it was ~150MB (due to loading Chromium itself).

    I enter the game, fly around, flew to a system where a large fleet fight occurs and watch the usage..

    12MB memory. CPU 20% loaded, 60 FPS! Holy mother of gawd... it used to be >100% loaded (hammering 1 core completely with fps dropping to 45 during intense battles, similar to Crosswalk on Android). Now its smooth as silk everywhere (no movement jittery bug like on some PC Chrome versions).

    I don't believe it. It's behaving like its running on Chrome PC on my i5-3570K CPU but on a much weaker mobile SOC! <img src="{SMILIES_PATH}/icon_e_surprised.gif" alt=":o" title="Surprised">

    I know for certain the low CPU load is real because the iPad remains cold as I play, prior, it would heat up. The side effect is also much improved battery life!

    HTML5/C2 is finally shining on mobiles with such amazing performance on iOS. Hopefully with Android L and updates to Chromium for faster JS, we'll get some great performance gains on Android too!

    This gives me much more confidence as I make Star Nomad 2, to pile on all the features & effects I had wanted without being afraid it will run like crap on mobiles.

    ludei

    Ashley

    BUT.. there's one problem. Audio does not play (no music or sounds). Any other C2 devs had the same issue?

  • Hi

    I try also to compile my game Mr. DOT and run under CJS Webview+ and the game run fast! really smooth!

    In my game there aren't soundtrack but there are some sound fx (like jump sound, pickup sound ecc..) and all work fine.

    But I notice one issue....

    in some parts of the tiled background I see some transparent edges, like lines that break the continuity of the tiled backdround....

    I usually use the Linear sampling on the C2 setting and on Canvas+ all tiled backgraound are good, but in Webview+ there is that issue!

    I try also to use point sampling but the edge of the tiled background are always with that strange 1 px lines on some edges.

    You noticed this issue on webview+???+

    Or others noticed this?

  • Hi

    I try also to compile my game Mr. DOT and run under CJS Webview+ and the game run fast! really smooth!

    In my game there aren't soundtrack but there are some sound fx (like jump sound, pickup sound ecc..) and all work fine.

    But I notice one issue....

    in some parts of the tiled background I see some transparent edges, like lines that break the continuity of the tiled backdround....

    I usually use the Linear sampling on the C2 setting and on Canvas+ all tiled backgraound are good, but in Webview+ there is that issue!

    I try also to use point sampling but the edge of the tiled background are always with that strange 1 px lines on some edges.

    You noticed this issue on webview+???+

    Or others noticed this?

    So strange that your audio work. May I ask what format you use, Ogg or ?

    I used to have that same tile bg problem with crosswalk for android a long time ago on their older version, which they've fixed. But not on CJS Webview+ so far since I have not tested games with tile bgs yet.

  • Could the following post from Ashley explain the sound issues?

    https://www.scirra.com/forum/no-sound-on-ipad_p854247?#p854247

  • Could the following post from Ashley explain the sound issues?

    https://www.scirra.com/forum/no-sound-on-ipad_p854247?#p854247

    Thanks, I will try to recompile it with those changes. Fingers crossed!

    Edit: Tried it, no change, still no audio. Guess have to wait for a fix...

  • I had that audio troubles too, but that webview+ is AWESOME, my physics game has even better performance than with canvas+, why scirra still not officially support it? I heard that canvas+ is not good, but if i understand it right the webview+ is apple system's webview, phonegap using it too, but cocoonjs is even better (because cocoonjs using the WKWebView instead of UIWebView).

  • I had that audio troubles too, but that webview+ is AWESOME, my physics game has even better performance than with canvas+, why scirra still not officially support it? I heard that canvas+ is not good, but if i understand it right the webview+ is apple system's webview, phonegap using it too, but cocoonjs is even better (because cocoonjs using the WKWebView instead of UIWebView).

    You had audio troubles? That implies its fixed now, what happen and how was it fixed?

    It is indeed extremely awesome on iOS8+, feels like the JS engine on Apple is much faster than on PC for a low power mobile SOC to handle my game as well as my Intel i5 Ivy Bridge.

  • You had audio troubles? That implies its fixed now, what happen and how was it fixed?

    It is indeed extremely awesome on iOS8+, feels like the JS engine on Apple is much faster than on PC for a low power mobile SOC to handle my game as well as my Intel i5 Ivy Bridge.

    Nope, no fix for that, i just removed all sounds for now. And i don't think that this problems is caused by a bug above, because it's a safari bug. It looks like a bug in webview or cocoonjs, but there will be no fix for that i guess, because cocoonjs is not supported.

  • I had that audio troubles too, but that webview+ is AWESOME, my physics game has even better performance than with canvas+, why scirra still not officially support it? I heard that canvas+ is not good, but if i understand it right the webview+ is apple system's webview, phonegap using it too, but cocoonjs is even better (because cocoonjs using the WKWebView instead of UIWebView).

    Could I ask a question, I though that webview+, and canvas+ are actually working with the html5 export itself, is that so?

    If so, official support from scirra of webview+ itself is actually not adding anything, and that would also mean that it would still work long term wise, as webviews are real browser engines (which scirra supports).

  • yes probably fast (and phonegab is fast too) because of new api of ios8 but the problem is

    That 80% of people are using ios7.X and they dont want to update to ios8, so you will not have a lot of coverage

    its sure that webview+ and ios8 api are the future of html5 games on ios and android but for the next 1 year

  • yes probably fast (and phonegab is fast too) because of new api of ios8 but the problem is

    That 80% of people are using ios7.X and they dont want to update to ios8, so you will not have a lot of coverage

    its sure that webview+ and ios8 api are the future of html5 games on ios and android but for the next 1 year

    A few week ago I saw it was at 50% adoption already. Its slower than iOS7 but at this rate, in a few months it should be ~75% and that's good enough for me. Heck, I'd even take 50%. The performance (and hence, battery life) of games is just stunning.

    Aphrodite

    It compiles a normal HTML5 web export, so I think it may be a safari or CJS bug with audio and not on C2's end.

  • i think there ejecta version on github that use webview+

  • Could I ask a question, I though that webview+, and canvas+ are actually working with the html5 export itself, is that so?

    If so, official support from scirra of webview+ itself is actually not adding anything, and that would also mean that it would still work long term wise, as webviews are real browser engines (which scirra supports).

    True, but sometimes i have troubles with construct2+cocoonjs compatibility and nobody cares, because it's not supported. I just want to say that webview+ is not a buggy technology, it's a system wkwebview, even phonegap will use this stuff (one day, i hope), and for now this is the only export option that can handle heavy games for ios, and even if phonegap will switch to wkwebview, cocoonjs webview+ will still be better for all my games because it supports the cocoonjs native physics. It's not fair that good technology is not supported only because Ludei using in, ludei doesn't create it, apple created the wkwebview and cocoonjs can build our projects with wkwebview. It's working now and it will work with html5 export for sure, because its just a webview, i just want the cocoonjs support back in case of compatibility problems. If you want to say that i shouldnt have any compatibility troubles because webview supports html5 export, i say it's not true, phonegap is a clear webview, but it has different export option to improve compatibility.

  • yes probably fast (and phonegab is fast too) because of new api of ios8 but the problem is

    That 80% of people are using ios7.X and they dont want to update to ios8, so you will not have a lot of coverage

    its sure that webview+ and ios8 api are the future of html5 games on ios and android but for the next 1 year

    Actually, there are a lot more users using iOS8 now:

    https://developer.apple.com/support/appstore/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • iOS8 adoption is coming along great.. let's hope the audio issue is resolved soon!

    Since it was running so fast, I thought I'd up the ante a bit and add in more parallax layers, effects and proper trails:

    Subscribe to Construct videos now

    Still running crazy fast on iOS. It can take more! O_o

    Very exciting times for C2 mobile devs, we can essentially make a full blown PC quality game without fear of it running like a slideshow.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)