using "do" forces the compiler to run
Dar Scott
dsc at swcp.com
Mon Aug 23 22:55:17 EDT 2004
On Aug 23, 2004, at 4:45 PM, Erik Hansen wrote:
> any more (is compiling) tips re:
> send, move, wait, waiting lock etc?
> i am trying to get precise movements
> to set intervals
> with a +- 1 millisecond tolerance.
>
> send is working well,
> move varies 10-20 milliseconds.
> maybe the compiler is a factor?
I think 'send', 'do', 'call', 'value()', 'merge()' and setting 'the
script' will compile.
For improved timing with a send cycle, do the send for the next one at
the start of the handler. This is more precise but can be a problem if
pendingMessages gets bogged down, so use only when needed.
If you need better than that, try getting there early and waiting
around for the right time.
Dar
****************************************
Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services
****************************************
More information about the use-livecode
mailing list