I have a Stack with several cards and moving between them (on iOS) can sometimes take several seconds. In some cases I know why (there's a lot of work being done on a card, for example), but I am stumped by one aspect I am seeing and wondered if anyone could help.
Using a "put" of the long seconds, I am trapping the start and end of various scripts. The one that is causing me to scratch my head is that from one card back to the "home" card, I have about 2.2 seconds (on an iPad 3) between the end of CloseCard for the card I'm leaving and the start of PreOpenCard on then"home" card. I would have thought that one would follow directly on from the other. (the CloseCard script just deletes a few scrollers). I don't really see the problem in the iOS simulator, by the way.
Can anyone suggest things I can look into to track down what's happening in my missing seconds?
Thanks for your help.
What happens between CloseCard and PreOpenCard?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: What happens between CloseCard and PreOpenCard?
Hi,
On iOS, between closeCard and preOpenCard is rendering. This is different on desktop machines, where the rendering happens after the preOpenCard message. Sometimes, this causes a problem. Do you have a big image or a very large number of controls or anything else that might take some time to be drawn? Perhaps setting the acceleratedRendering to true helps or maybe you can use the alwaysBuffer. There's also a property layerMode, which you might want to change.
Kind regards,
Mark
On iOS, between closeCard and preOpenCard is rendering. This is different on desktop machines, where the rendering happens after the preOpenCard message. Sometimes, this causes a problem. Do you have a big image or a very large number of controls or anything else that might take some time to be drawn? Perhaps setting the acceleratedRendering to true helps or maybe you can use the alwaysBuffer. There's also a property layerMode, which you might want to change.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: What happens between CloseCard and PreOpenCard?
Thanks for that Mark. There are quite a few images and controls; I'll have a look into what may be causing the problem. I've already experimented with AcceleratedRendering and I'm fairly sure that isn't involved on this occasion, but I'll check out the other suggestions, too.
Thanks for your help.
Adrian
Thanks for your help.
Adrian
Re: What happens between CloseCard and PreOpenCard?
Hi Adrian,
In addition to me previous suggestions: if you have large images as files next to your standalone, the images might take some time to load into memory before they can be rendered.
Kind regards,
Mark
In addition to me previous suggestions: if you have large images as files next to your standalone, the images might take some time to load into memory before they can be rendered.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: What happens between CloseCard and PreOpenCard?
Thanks. The images are all imported.