Image Processing Makes Livecode Appear to Crash

Alex Tweedly alex at tweedly.net
Mon Feb 17 19:31:13 EST 2014


Or make it time-based rather than number-of-times-through-a-loop

put the millisecs into t1
repeat ....
     if the millisecs-t1 > somenumberofmillisecs then
           set the cursor to busy
           put the millisecs into t1
     end if
     ..... do something useful
end repeat


-- Alex.

On 18/02/2014 00:27, Phil Davis wrote:
> You may have done this already, but experiment with other cursor 
> update intervals - like every 50th or 100th time. You may be shocked!
>
> Phil
>
>
> On 2/17/14, 4:21 PM, Ray wrote:
>> Ah Haa!! You've shaved another 3 and a half seconds off what started 
>> out as 40 seconds, got cut down to 5, and is now just 1.5 seconds. 
>> Very good!
>>
>> Phil - many thanks for your help on this.  I'll probably use these 
>> ideas on many handlers to come.
>>
>> Ray
>>
>> On 2/17/2014 7:06 PM, Phil Davis wrote:
>>> put 0 into x
>>> repeat
>>>     add 1 to x
>>>     if x mod 10 = 0 then set cursor to busy
>>>     ....
>>> end repeat 
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>





More information about the use-livecode mailing list