Issues with transition.to

Hi all,

I’m developing a shooting game in which the enemies go from one side to
another side of the screen. There are sounds effects for shooting,
hitting, explosions, background music, etc. There are effects for the
explosions too. I’m using transition.to in order to achieve the
transition from one side to another side. It’s working fine in the
simulator. My issues:

  1. In a 1GH Samsung mobile (1 core) I’ve noticed that there’s a kind of
        performance problem when using transitions. As soon as they start
        the sound effects stop working correctly, kind of slow motion, delays,
        overlapping, delay in the taps and so on… well, maybe that’s just
        a limitation of the hardware? Or is transition.to too heavy? I mean,
        is there a better way to achieve that? Maybe using enterframe event
        and set the coordinates manually? Some suggestions? Notice that if
        I remove the transitions, there are no problems.

  2. Suppose that I continue using transition.to. How can I make a transition.to
        through a curved path? For instance, over a Bezier curve? Again, in this
        case should I use transition or enterframe and set the coordinates manually?

Any suggestions, comments, etc, will be very appreciated!

Thanks!

The best way to keep an eye your performance would be to set up a running monitor for your memory usage and framerate. I use Lerg’s original module he posted waaaaay back in 2012, and I just stuck it back up on my github and posted it to the Corona code exchange. The link is here

Regarding your specific question about transition performance, I don’t think it’s all that heavy-weight. The question is, what does your transition code look like, what values are being transitioned and what kinds of display objects are being transitioned. If you could post some of your code, that would help out immensely.

    Recommended reading:

        - http://developer.coronalabs.com/content/performance-and-optimization

        - http://coronalabs.com/blog/2013/03/12/performance-optimizations/

Thank Panc Software, I thought that the transitions where really computational heavy stuff. Well, my transitions are quite simple, just moving some small sprites around (from 1 to 10 simultaneously). After reading the links you’ve suggested,  I did some optimization using Lerg’s module and I could improve a lot the performance!

The best way to keep an eye your performance would be to set up a running monitor for your memory usage and framerate. I use Lerg’s original module he posted waaaaay back in 2012, and I just stuck it back up on my github and posted it to the Corona code exchange. The link is here

Regarding your specific question about transition performance, I don’t think it’s all that heavy-weight. The question is, what does your transition code look like, what values are being transitioned and what kinds of display objects are being transitioned. If you could post some of your code, that would help out immensely.

    Recommended reading:

        - http://developer.coronalabs.com/content/performance-and-optimization

        - http://coronalabs.com/blog/2013/03/12/performance-optimizations/

Thank Panc Software, I thought that the transitions where really computational heavy stuff. Well, my transitions are quite simple, just moving some small sprites around (from 1 to 10 simultaneously). After reading the links you’ve suggested,  I did some optimization using Lerg’s module and I could improve a lot the performance!