Executing livecode program in different os.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
samjith
Posts: 85
Joined: Tue Mar 31, 2015 10:09 am

Executing livecode program in different os.

Post by samjith » Wed Jun 17, 2015 11:57 am

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.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Executing livecode program in different os.

Post by Klaus » Wed Jun 17, 2015 12:02 pm

Hi Samjith,

1. welcome to the forum! :D

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! 8)


Best

Klaus

samjith
Posts: 85
Joined: Tue Mar 31, 2015 10:09 am

Re: Executing livecode program in different os.

Post by samjith » Wed Jun 17, 2015 12:44 pm

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.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Executing livecode program in different os.

Post by Klaus » Wed Jun 17, 2015 12:47 pm

Aha!

But since this not very enlightening, my number #2 still applies :D
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.

samjith
Posts: 85
Joined: Tue Mar 31, 2015 10:09 am

Re: Executing livecode program in different os.

Post by samjith » Wed Jun 17, 2015 1:14 pm

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.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Executing livecode program in different os.

Post by Klaus » Wed Jun 17, 2015 1:30 pm

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...

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Executing livecode program in different os.

Post by jacque » Wed Jun 17, 2015 4:51 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply