I need advise on slow start standalone

2011-03-07 Thread stgoldb...@aol.com
On several of my projects, where the opening standalone screen is not 
immediately responsive (particular on Windows) for say a half minute or more, I 
have found it useful to place a card titled Loading at the top of the stack.  
The card has a simple black background with the words Loading... at the 
center.  The script for the card is:


on openStack

  if the short name of this card is Loading then go next
end openStack


Then, the user has more patience waiting for the program to fully load.  Hope 
this helps.
Stephen Goldberg
www.medmaster.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


I need advise on slow start standalone

2011-03-05 Thread William de Smet
Hi there all,

I have a educational standalone which start very slow on OSX and Win 7 (20 sec 
or longer).The stack has 180 cards and its size is 80 MB. The standalone 
however is only 8 MB but uses 150 MB of RAM. I know all cards are put into 
memory on startup.

Is there a way to speed things up? I already set the 'DontUseQT' to true.
I could put all cards as seperate stacks in a folder and call them when needed. 
So only then they are put in memory, right?
But this is a lot of work :-( 

In addition to this: If I use seperate stacks how do I make sure the individual 
stacks are not opened in the IDE and used? I know I can password protect them 
but I don't want them to open at all. 

All your advise is welcome!!

greetings,

William


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: I need advise on slow start standalone

2011-03-05 Thread Geoff Canyon Rev
curious how you're going from an 80mb stack to an 8mb standalone. In any
case, likely you should change it so you only load content when you need it.

If you have any openstack, preopenstack, opencard, preopencard handlers,
throw some diagnostics in them to keep track of time as they execute, to
figure out where the time is going, something like:

put ticks()  step one  cr after displayThisWhenStartupIsComplete

gc
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: I need advise on slow start standalone

2011-03-05 Thread Rick Harrison
Hi William,

Use variables instead of fields when at all possible.
You will find that your executable code will pick up
in speed.

If you are just afraid users will think the stack has
crashed, use a progress bar to tell them when everything
has finished loading.  For some weird reason progress bars
make some people a little more patient.

Other than that, try displays and timers in your code to
see which sections are taking the longest to load.  Then
look at the code to see if there is a more efficient way
of accomplishing the same tasks.

Good luck!

Rick

On Mar 5, 2011, at 9:40 AM, William de Smet wrote:

 Hi there all,
 
 I have a educational standalone which start very slow on OSX and Win 7 (20 
 sec or longer).The stack has 180 cards and its size is 80 MB. The standalone 
 however is only 8 MB but uses 150 MB of RAM. I know all cards are put into 
 memory on startup.
 
 Is there a way to speed things up? I already set the 'DontUseQT' to true.
 I could put all cards as seperate stacks in a folder and call them when 
 needed. 
 So only then they are put in memory, right?
 But this is a lot of work :-( 
 
 In addition to this: If I use seperate stacks how do I make sure the 
 individual stacks are not opened in the IDE and used? I know I can password 
 protect them but I don't want them to open at all. 
 
 All your advise is welcome!!
 
 greetings,
 
 William
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

__
Rick Harrison

You can buy my $10 music album Funny Time Machine digital CD on the iTunes 
Store Now!

To visit the iTunes Store now to listen to samples of my CD please click on the
following link.  (Please note you must have iTunes installed on your computer 
for this link to work.)  

http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playListId=213668290



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode