Speed optimization

kee nethery kee at kagi.com
Wed Oct 5 10:59:28 EDT 2005

My favorite way to speed things up is to do something like

put 0 into x

function newTime oldTime,addedSec
       if x mod 100 = 0 then

          -- stuff from smart people in previous posts

       end if
       add 1 to x
end newTime

Do you really need to change that variable every millisecond or would  
once every so often be more than adequate? I adjust the factor (in  
the example 100) so that the display skips a second every so often.

Kee nethery

More information about the Use-livecode mailing list