Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Continuous animation when changing scenes - cannot avoid freezing
Started by Jack227 Sep 26 2013 11:59 AM

3 replies to this topic
storyboard loading freeze animation
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Jack227

[GLOBAL: userInfoPane.html]
Jack227
  • Enthusiast

  • 81 posts
  • Corona SDK

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



[TOPIC: post.html]
#2

CineTek

[GLOBAL: userInfoPane.html]
CineTek
  • Contributor

  • 310 posts
  • Corona SDK

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 :)



[TOPIC: post.html]
#3

CineTek

[GLOBAL: userInfoPane.html]
CineTek
  • Contributor

  • 310 posts
  • Corona SDK

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.



[TOPIC: post.html]
#4

Jack227

[GLOBAL: userInfoPane.html]
Jack227
  • Enthusiast

  • 81 posts
  • Corona SDK

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.




[topic_controls]
[/topic_controls]