Speeding the transition between cards

Scott Rossi scott at tactilemedia.com
Tue Mar 8 18:55:42 EST 2011


Recently, Eric Peyron wrote:

> I am creating my first eComic Livecode App, and I have a little problem I
> can't seem to solve: the more objects/scripts on cards, the slower the
> transition between these cards. I know there are ways to speed things up by
> locking the screen, and I have tried to add "lock screen" in the "Next card"
> buttons' scripts, but it doesn't speed things up. Does anyone have an idea
> about how to accelerate the transition?

Can you provide any more information here?  There's not really much to go
on.  The number of objects on card could conceivably slow things down if
you're talking hundreds, but number of scripts really shouldn't affect
anything unless you're activating a bunch of scripts simultaneously.  If
you're initializing things when opening a card, that could cause a bottle
neck -- try initializing within a preOpenCard card handler instead of within
openCard.

It's hard to tell, but from what you describe, you *might* get better
results by doing this:
Lock screen -> go next card -> unlock screen [with visual effect ]

FWIW, I've found you can sometimes trim a few extra millisecs off processing
by explicitly calling "unlock screen" at the end of handler that locks the
screen, rather than waiting for the handler to exit on its own.  But if
you're using visual effects, you're already doing this.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design






More information about the use-livecode mailing list