Page 1 of 1
Executing livecode program in different os.
Posted: Wed Jun 17, 2015 11:57 am
by samjith
Hi,
A livecode program (test.livecode) execute fine in linux os, but the execution of the same program takes too much time in mac os. How this occur?. How can we solve this problem?
Thanks,
Samjith.
Re: Executing livecode program in different os.
Posted: Wed Jun 17, 2015 12:02 pm
by Klaus
Hi Samjith,
1. welcome to the forum!
2. Unfortunately our crystal bowl is in the workshop, so we MAY need a liitle more info
about what exactly your stack does to be able to even guess what might be the problem!
Best
Klaus
Re: Executing livecode program in different os.
Posted: Wed Jun 17, 2015 12:44 pm
by samjith
I think it is due to the Progress Scrollbar. When i hide the code about the progress scrollbar, it works as like Linux os. But the code are same in linux and mac os.
Re: Executing livecode program in different os.
Posted: Wed Jun 17, 2015 12:47 pm
by Klaus
Aha!
But since this not very enlightening, my number #2 still applies
Please post the script(s) that will progress the progress bar, there must be the cause of the problem!
And please use the CODE tags above after pasting the script, so it remains readable, thanks.
Re: Executing livecode program in different os.
Posted: Wed Jun 17, 2015 1:14 pm
by samjith
Iam using the following code.
set the visible of scrollbar "Progress Scrollbar" to true
put 0 into Scrollbarcounter
repeat for each line theLine in myWordList
add 1 to Scrollbarcounter
set the thumbPosition of scrollbar "Progress Scrollbar" to Scrollbarcounter
end repeat
set the visible of scrollbar "Progress Scrollbar" to false
Thanks,
Samjith.
Re: Executing livecode program in different os.
Posted: Wed Jun 17, 2015 1:30 pm
by Klaus
Hmmmm, since you do not even process theLine in the repeat loop, this should be lightning fast on the Mac, too!?
Sorry, no brilliant idea in the moment...
Re: Executing livecode program in different os.
Posted: Wed Jun 17, 2015 4:51 pm
by jacque
On OS X, I think LiveCode calls out to the OS to draw the scrollbar which is a time consuming operation. To reduce the lag it is normal to only update the thumb position at intervals. Try starting with mod 10 and adjust it from there.