Long delay between scene changes

Hiya,

I’ve found that on my galaxy tab, going from one scene to the next using the storyboard.newScene command seems to take a lot longer than it does in the simulator.
Im guessing thats due to the power of my PC versus the Tablet.

However, Im also left wondering if I’m not doing something efficiently or not.
In particular, I use the above command to go from menu to menu etc. Is this the wrong thing to do or is there a way of doing it more seemlessly?

[import]uid: 131942 topic_id: 25659 reply_id: 325659[/import]

I am having the exact same problem as you. As a test, I have an iPad 2 and a Motorola Xoom side by side. In my app, I press and release the same button in my app, one on my iPad, the other on my Xoom, and it’s supposed to go to the next scene. The iPad goes to the next scene much quicker than on the Xoom. I would assume that both devices would go to the next scene at exactly the same moment. But on my Xoom, it’s slower (by a half second or so, which to me is a big deal because for that extra half second, people might think the app is “stuck” or something). Anyway, I’m glad someone else has brought up this issue, as I’ve been having it for a while now, and hope that the bug will soon be resolved. [import]uid: 82194 topic_id: 25659 reply_id: 103718[/import]

@danni_jaye
Have you load big images or soundfiles in the next scene?

[import]uid: 86417 topic_id: 25659 reply_id: 103732[/import]

Currently I dont have any sound or music in the app.
I use only. ?png image files and these are set to their exact pixel size rather than scaled down. At last check the full size of my app was about 6mb uncompressed.

So am not sure what else I can do to speed it up.
I also make sure I load any “require” files at the start rather than for each scene so they should stay in memory.

Interesting to hear about the xoom to ipad comparison, tho it doesnt surprise me that the ipad is a fair bit quicker. [import]uid: 131942 topic_id: 25659 reply_id: 103755[/import]

Have you guys tried using load scene first? If you want to put together a simple test case which demonstrates the issue and post it here : bugs.anscamobile.com. And put my name in the description I would be happy to take a look [import]uid: 84637 topic_id: 25659 reply_id: 103759[/import]

Can yuo point me towards the Manual section for the loadScene command? (In the resources, I mean)
I’m looking on the site, but can’t find it so far.

Ah wait - found it.
:slight_smile:

http://developer.anscamobile.com/content/storyboard

I’ll see if it makes a difference for me. [import]uid: 131942 topic_id: 25659 reply_id: 103771[/import]

I’m guessing it’s not working on my Simulator, because I need to update my Corona to the latest build?
I’m currently on the last stable build (704)

How do I update Corona? I don’t recognise the file types on the build list page.

(I have a full pro membership) [import]uid: 131942 topic_id: 25659 reply_id: 103772[/import]

I’m not using loadScene and as I’m starting to build my app for the Kindle Fire, I can tell you that the storyboard performance there is worse than it was on iOS before you fixed the transition problems (using 797).

You can see the laggy performance here. It’s nice and fast on my iOS devices.

http://www.youtube.com/watch?v=Uvd-DftEmSc [import]uid: 19626 topic_id: 25659 reply_id: 103779[/import]

@danni_jaye a .msi file is a “Microsoft Installer” File. If you’re on windows it will know what to do with it automagically. A .dmg file is a Mac OS-X “Disk Image” file. You download it to your mac, double click on it from your browser, and it will mount a “disk” on your desktop. Double click on the icon for it and it will bring up a window and you can drag the Corona SDK icon to the application folder icon.

[import]uid: 19626 topic_id: 25659 reply_id: 103780[/import]

Ah great. Thanks rob. Will let you know how I get on with it. [import]uid: 131942 topic_id: 25659 reply_id: 103847[/import]

Ok, I’ve installed the latest build of Corona, (and fixed some bugs that arose since we don’t seem to need to list widget objects with .view on the end.

However, I have now come across a new problem - the scene switches are now much faster which is good, but the physics system and timers seem to have slowed down immensely.

In all the parts where there are physics, I seem to be getting a really slow framerate now?

Has the physics been altered for the newer builds at all?
Again, it works perfect in the simulator. [import]uid: 131942 topic_id: 25659 reply_id: 103911[/import]