Maarten de Vries <[EMAIL PROTECTED]> wrote:

> Hi, I tested your loop, and it worked fine for me. The image
> (a photo) turned nicely blue in about half a second. Then I tried to add a
> progressbar, and suddenly it took about 8 seconds. So, are you doing
> anything else (like updating a progressbar) inside the loop?

for a progress bar, do some math.

like

p=100*y/height
if p<>progressbar.value then // change only 100 times
   progressbar.value=p
   updatenow // refresh window
end if

PS: Most developers go in the outer loop about y and in the inner loop
about x to use the improved caching of newer processors.

Gruß
Christian

-- 
Around eleven thousand functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v6.2.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to