Continuous animation when changing scenes - cannot avoid freezing

Hi guys,

I am implementing a loading screen with simple rotation animation of an image, and when I attempt to move to the next scene animation freezes for a second before actually changing the scene (I am testing on the device)

I assume this happens because I have a lot of heavy spritesheets and UI objects in my scenes, and when scene is being put onscreen every other activity just freezes.

For testing purposes I have tried to run this animation in a global runtime enterframe listener on a global image (not inserted into any display group), and it freezes for a sec too.

Is there a way to make scene transition not block every other activity in the app during the time scene is put onscreen?

Thanks in advance

Hm, I know that there is a workaround for this because someone had a similar problem a few months ago… I will try to find the thread :slight_smile:

I have found a link where you may find a solution:

http://forums.coronalabs.com/topic/29716-how-to-show-progress-when-loading-scene/

It is not the link I meant in the previous post but I will search for it tomorrow.

Thank you for your effort CineTek!

I think I am going to stick with a non-animated loading screen, it is simple and looks decent. I doubt there is a reasonable way to avoid this freeze, so I would just make it “invisible” for the user.

Hm, I know that there is a workaround for this because someone had a similar problem a few months ago… I will try to find the thread :slight_smile:

I have found a link where you may find a solution:

http://forums.coronalabs.com/topic/29716-how-to-show-progress-when-loading-scene/

It is not the link I meant in the previous post but I will search for it tomorrow.

Thank you for your effort CineTek!

I think I am going to stick with a non-animated loading screen, it is simple and looks decent. I doubt there is a reasonable way to avoid this freeze, so I would just make it “invisible” for the user.