Runs super slowly
Posted: Tue Aug 16, 2016 6:09 pm
I've tried my first html5 standalone, and I find it runs achingly slowly. All it does is toggle which images in a group are visible. I've pasted some of the code (of a button) below. The images switch very slowly and I get a spinning beachball between redraws (on an iMac)
I've only tested opening the file on my computer, not actually served over the web, but that should only make things worse?
The example scripts I've seen run quite smoothly. Am I missing something?
Thanks.
-Chuck
on mouseUp
send "resetmonster" to me
put "bottoms,eyes,horns,mouths,tops,wings,labels" into tinfo
repeat with x = 1 to 7
put item x of tinfo into tfeat
put random(2) into m1level
put tfeat&m1level into m1feat
set the visible of image m1feat of grp "monster1" to true
--the monsters are composed of features like bottoms1 eyes2, etc.
end repeat
end mouseUp
I've only tested opening the file on my computer, not actually served over the web, but that should only make things worse?
The example scripts I've seen run quite smoothly. Am I missing something?
Thanks.
-Chuck
on mouseUp
send "resetmonster" to me
put "bottoms,eyes,horns,mouths,tops,wings,labels" into tinfo
repeat with x = 1 to 7
put item x of tinfo into tfeat
put random(2) into m1level
put tfeat&m1level into m1feat
set the visible of image m1feat of grp "monster1" to true
--the monsters are composed of features like bottoms1 eyes2, etc.
end repeat
end mouseUp