Ashley's Forum Posts

  • You do not have permission to view this post

  • I'm not sure this is anything to do with Construct 2, because we've got WebGL disabled on mobile for the time being. It's up to the phone how it handles hardware acceleration and it doesn't sound like our code could create that message.

  • Type in chrome://gpu. Does it say you get hardware acceleration for everything?

    My best guess is IE is hardware accelerated and Chrome is not. Chrome regularly beats IE in our benchmarks, but we have hardware acceleration enabled for everything.

  • Nathan

    There are two issues here: rendering performance (the time it takes to draw it) and logic performance (the time it takes to process events, collisions etc. for the object). Invisible objects, or objects on invisible layers, don't take any rendering time, but their logic performance is unaffected - events obviously keep running for invisible objects!

    Trying to change your events to make it faster is usually pointless: I doubt you can measure any improvement at all changing your events to improve logic performance. Game performance is usually 90% the rendering performance.

    As for size/position/angle: the short answer is no, it doesn't affect performance. The long answer is it can if the rendering is software rendered, but usually software rendered platforms are not particularly usable anyway (they're too slow overall). On hardware-accelerated systems it makes no difference at all.

  • Well I haven't put any logging in the reload poll, the browser does that itself. Maybe I can add a registry switch to turn it off or something.

  • You need to add 'Trigger once' to the event otherwise it is constantly true. Events are checked once a tick (about 60 times a second) and if you play a sound in an event which is constantly true you will play 60 sounds a second. Note the 'Wait' action does not block the event, you will still queue up waits 60 times a second.

    Browsers tend to have pretty bad audio support so if the browser/audio driver crashes that's the fault of the browser/audio driver, and we can't fix that for them! You just have to be more careful with how you play audio and not make events like this.

  • You do not have permission to view this post

  • Thanks, glad you enjoy using C2!

  • Events look OK, maybe you could share your .capx?

  • TPorter64, not sure but are you sure you're not just missing a "Trigger once" condition? See this tutorial.

  • You can already export to lots of mobile platforms with PhoneGap Build. We're working on some performance issues though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • FredQ, any reason you're not just using PhoneGap Build? It's literally 10x easier and was designed to avoid all this hassle.

  • It's based off how Classic did it. Since it's possible to write a shader that changed opacity 0 to something else (making the object visible), it should still be drawn so you can see the effect of the shader. However I'm not sure if there are any shaders which can actually do that. So it's kind of a philosophical point. If you mean "don't draw the object at all", make it invisible. Opacity 0 means "draw the object in such a way that (by default) it is not visible".

  • It sounds like a problem on PhoneGap's side. Maybe go talk to them about it. Also, check your config.xml file is properly formatted and doesn't have any weird characters in it.

  • Sound should work in PhoneGap projects exported from the latest beta (r87). However there have been some more problems reported with it so hopefully those can be sorted out in the next build.