Progress Bar

Geoff Canyon gcanyon at gmail.com
Sat Mar 31 02:43:38 EDT 2012


I'll throw my 2 cents in here as well -- I've found that it doesn't impact performance significantly to check ticks() each time through the loop. So instead of a fixed number of iterations, which can lead to a jumpy progress bar or excessive updates if what you're doing in the loop varies much, I do this:

if ticks() > T then
  --update the progress bar
  put ticks() + 10 into T -- your choice how smooth you want it
end if

Sent from my iPad

On Mar 29, 2012, at 6:20 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> Use a counter to increment progress
> every 2nd, 5th, 10th loop (whatever makes sense), so updating progress has a
> lower impact on the repeat loop.




More information about the use-livecode mailing list