Slowdown with effects on mobile

  • Hi guys,

    I'm using a radial warp effect on a layer on each one of my layouts. As I switch between the layouts on my mobile device (using cocoonjs) the layer effect gets slower and slower.

    Is there some form of memory management I am meant to do when leaving each layer? i.e. am I just queuing up layouts into memory?

  • effects [...] mobile

    There's your problem.

    On a more serious note, did you try isolating the problem? Make a minimal capx with as few things as possible, but with the problem still ocurring, and we might be able to help you better.

    I'm sorry I can't be of more help, my experience with mobile and with wrappers is pretty limited.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To elaborate some effects on Mobile are very costly. Also if it's getting slower and slower per layout change is it possible that you also might be stacking the effect too?

  • jayderyu How would one stack the effect? As far as I was aware when you go to a new layout everything associated with that layout is gone. Is this not the case?

    Yeah, I am aware that effects are costly on mobile devices. However, I have created a dynamic performance sheet based on FPS. So those who run modern devices can benefit from the sexier effects. Those who run older devices don't suffer. Well that's the theory anyway...

  • TheWyrm

    True. Everythign should be cleared and maybe it is. However if your progressivly getting slower then you have a leak. Turn off the effect and see if the game continues to get slower per layout change.

    Also Effects are shaders in the GPU try making sure the effect is disabled between on layout swaps.I'm not 100% saying this s the problem. I offering possibilities based on what little contextual information provided. Try them if that's not the problem then time to look elsewhere.

  • I've used webgl effects on layers and have not ran into this progressive loss of performance when switching layout, sounds like you have some code that is causing it.

    Most effects are unusable on mobiles due to the performance hit, even top of the line devices lose half their performance, its just not worth it currently.

  • Thanks guys. So I setup the game to turn off all effects and then turn them back on every time a new layout started, but the problem was still there.

    Yeah, I came to this conclusions as well. I was only using the effect for a cool looking underwater effect on the GUI. So I reasoned that it isn't worth including until its improved. The only issue I can foresee with my code is I check the FPS and then turn off effects if it gets low and vice versa when it is high. So perhaps I am turning the effect on extra layers. Still this wouldn't explain how it gets progressively worse.

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