Previewing game from public folder vs Cocoon

0 favourites
  • 12 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • When i preview a game on my ipad, I always get MUCH better performance than when I do it using Cocoon. Wouldnt you think this is backwards though, since Cocoon is as close as you can get to running the app natively?

  • Even though it seems native, it's not. Two things are holding back performance currently in cocoonjs v 1.3 on iOS - 1, the new version isn't out yet, which has webgl which should be faster than its current rendering method. 2, cocoonjs's JavaScript execution speed isn't as fast as safari's - I seem to recall one of my tests running at something like half the speed safari was. I don't know yet if the soon to be released 1.4 improves on this or not.

  • ah ok, thanks!   So is there any true way to run apps natively? or is cocoon the best option as of now to get C2 apps on mobile devices?

  • I guess it depends on the definition of native. Games in cocoonjs on the surface run same as an app coded in other languages, but it's interpreting JavaScript behind the scenes which isn't as fast as something like c++ or whatever is used for iOS apps. Cocoonjs is sort of like a specialized browser made for games and has specialized features for games that browsers don't have, and is made to appear like it's not really a browser at all. It is also currently the best option, though some have tried game closure and like it, even if it's harder to use.

  • i guess im screwed then because im not getting good performance on anything for mobile :( the only time i get good performance is running through a dropbox public link

  • A new version of cocoon js is coming out soon. Try again on that.

    Also, there many be ways to optimize your rendering/code.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yea were hoping for that cocoon update! Thanks for your knowledge!

  • Hi Arima,

    but when you tell "optimize your rendering/code" what you mean?

    Optimize the code (loops, other) inside the game itself or you mean to optimize something in the code for example after the compilation of the game (so on the javascript files) or what?

    Thanks and see later ..

  • I'm talking about optimizing the events in C2. Finding things like deactivating collisions for offscreen objects, cycling through instances for intensive events instead of trying to process them all at once, etc.

  • Is there any other way to test these than just knowing what to look for?

  • Just try deactivating stuff or making stuff invisible, repreview, and watch what it does to the framerate.

  • Ok thanks for the explanation

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