Zebbi's Forum Posts

    What if they move to a $99 per month (build box)/$49 per month (Adobe)/€160 per year (bitwig) model?

    Do you think they're all working hard to get this announcement ready through night or just sitting there waiting click Post whilst the hype builds here.

  • >

    > > Unless XDK improved very very much the performance on the latest updates, I would go with cocoon.

    > >

    > > XDK has the same performance if you're using webview+ on Cocoon. It's all cordova based.

    > >

    > > On iOS, you access WKWebView (which is faster than Canvas+!!) for high performance. On Android you use the Chromium based WebView which the recent versions are very fast. Or Crosswalk for Chromium performance with more compatibility.

    > >

    > Can you tell me if Crosswalk still has better performance than webview? I have a Nexus 7 with Android 6 and compiling without crosswalk is slow, I haven't tried it with crosswalk yet, but canvas+ is smooth as butter.

    >

    I can't tell you since your case is different to mine. For me, Crosswalk is great for Android since it has good performance and good compatibility with more devices. I have had regular WebView & Canvas fail on some devices but Crosswalk runs it like a champ.

    You just need to test it out for your own use case and see which is better.

    To be honest I'm not really that bothered about pre-5.0, by the time I finish anything, the world will be on android 10 or something, but actually running a basic scrolling platformer or racer at 60fps on a very capable device is important to me. I'm trying to get away from cocoon and their proprietary/incompatible engine and xdk is the most "open". Do you have any xdk specific performance tips? I've done all I can on c2's end, should I still block the gpu blacklist, for instance?

  • This is addressed in the manual. https://www.scirra.com/manual/42/layers-bar

    [quote:1yvm6ebu]A number to the right. This is a zero based index of the layer (the first layer is number 0, not 1). If you need to enter a layer number in the event system, this is the corresponding number. (You can also enter layer names in the event system which might be more convenient if you regularly reorder layers.)

    Some quick experimentation reveals that to refer to a layer by name, you would use quotation marks, while a variable or other expression with the same name can be referenced without quotation marks.

    Thanks, it wasn't immediately obvious, now I know.

    I wouldn't even mind being a paying beta tester.

    This had better be good.

  • Instead of referring to the layer number in your events, refer to the layer name.

    The number changes based on order, the name doesn't.

    So in the "layer" box in he create object dialog I just type the layer name? What if it conflicts with a variable or a system expression?

  • > no i havne't tried webview, it sounds like it sucks.. i have a pre android 5 phone so i know it will suck for my test device.. i'm ok with crosswalk and cocoon.io regardless of bloat.. i don't really care if a game is 30mb.. few people are going to not play my game because it's 22+ mb

    >

    Some clarification for those reading this thread regarding "webviews" and build systems:

    * All Cordova apps (PhoneGap, XDK, Cordova and other HTML5 hybrid apps packaged for distribution in a mobile store) run in a "webview" (aka, the HTML5 runtime engine).

    * The "webview" is built into the device OS/firmware, so performance varies as a function of the specific device hardware (CPU, RAM speed, Flash speed, etc.) and the version of the OS running on that device.

    * iOS 9+ devices allow you to select between the "standard" webview and the "wk" webview. The "wk" webview has better performance than the "standard" webview.

    * Android 5, 6, 7+ devices have a "replaceable" webview, which is equivalent in features and performance to the mobile Chrome browser runtime engine. That webview is automatically updated, from time-to-time, via the mobile app store.

    * Android 4.x devices have fixed webviews, with substantially lower performance and features compared to the mobile Chrome browser runtime engine.

    * Crosswalk is a replacement webview that can be installed on Android 4.x devices (as well as Android 5+ devices). It is based on the Chromium project, so generally has similar features and performance to the Android 5+ replaceable webview, but is usually several releases behind.

    * Only Android allows for replacement of the webview. Windows and iOS devices do not allow the webview to be replaced, they are fixed in the device (in the case of iOS you can select between the two stated above).

    * The Crosswalk webview is actually enabled via a Cordova plugin (as is the iOS "wk" webview). Checking the "Optimize with Crosswalk" option in the XDK simply enables including that plugin during the build phase.

    Cordova CLI and PhoneGap Build and the Intel XDK are all standard Cordova build systems. Those systems, and any other build systems that depend on Cordova CLI (under the hood), will always build to the "standard webview" that is built into the device, unless the Crosswalk plugin is added to the mix for Android orthe "wk" webview plugin is added for your iOS projects. Windows devices have no such options, you get what you get.

    Thus, the performance you get from your game will be the same whether you build with PhoneGap, Cordova or the XDK, assuming you build with the same set of plugins and the same HTML5 code. The reason you see performance that is usually worse with PhoneGap Build or Cordova CLI is because you have to take some extra steps to add the Crosswalk plugin to your project (which the XDK does automatically for you if you check that "optimize with Crosswalk" box). But if you include the Crosswalk plugin with PhoneGap or Cordova CLI you'll get similar performance to the XDK.

    Cocoon and Canvas+ are doing some other tricks that provide specific optimizations for specific types of operations, so performance comparisons with those systems against standard Cordova builds will vary depending on how your app works. I do not have insight into precisely what they are doing, so I cannot comment on where to expect those performance advantages, but you should understand that YMMV when using those tools.

    Thanks for the jargon and mechanics clarification, I think that's what I assumed, more or less, my main concern is that I can't get ACCEPTABLE performance out of anything other than canvas+, when all I'm doing for the main part is rudimentary scrolling and a couple of other performance-negligible techniques (attraction/rejection engine, basic raytrace, tilemaps, etc). I always have my resolution at 1920x1200 because my device is HD, and even though I'm using pixel art that's scaled up, if I made it any smaller, it would be blurry. All of this runs at a solid 60fps with canvas+, so what I really want to know is why the only exporter that runs acceptably isn't supported by C2, and the supported exports (phonegap and xdk) aren't actually running with acceptable performance?

    Maybe if I dig out my old game capx and my current game capx and send them along with an apk built with canvas+ and an apk built with xdk to someone, we could try and figure this thing out, but I can't see that happening.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    Midnight?

  • > Unless XDK improved very very much the performance on the latest updates, I would go with cocoon.

    >

    XDK has the same performance if you're using webview+ on Cocoon. It's all cordova based.

    On iOS, you access WKWebView (which is faster than Canvas+!!) for high performance. On Android you use the Chromium based WebView which the recent versions are very fast. Or Crosswalk for Chromium performance with more compatibility.

    Can you tell me if Crosswalk still has better performance than webview? I have a Nexus 7 with Android 6 and compiling without crosswalk is slow, I haven't tried it with crosswalk yet, but canvas+ is smooth as butter.

  • Just a little bump (don't wan't to start a new thread) has Crosswalk come any closer to Canvas+ speeds in the last 8 months?

  • You do not have permission to view this post

  • No, sanderstyler's right, it doesn't work, I'm working around by storing the game layer in a variable, and just referring to that every time, that way, no matter how many layers I add, I just can just update the variable.

    > compatible with github?

    > Our current project lives on Github, in .caproj form.

    Yeah, I know, I admitted my misjudgement.

    Speaking of multiplatform, I just got an email from Amazon describing a new income method that was "platform agnostic".

    "Subscribe with Amazon".

    Please don't do crap like that.

    That's amazon for ya.