Revolution is very slow to refresh fields. How can I speed it up?
Eric Colvin
EricMColvin at telus.net
Thu Mar 30 06:03:20 CST 2006
I¹ve just started playing with Revolution. I was an enthusiast for Hypercard
in a previous life.
One thing I¹ve hit upon early on that frustrates me a little. Though
Revolution is far newer, and ought to be faster since it loads into memory
rather than writing to disk, I find it way slower at refreshing text fields
than Hypercard ever was.
I wrote the following counting routine (as a speed test to measure the
difference between writing to a variable and writing to a field). However,
what I learned was that on my computer, at any rate Revolution only
refreshes its text fields slightly more than once a second. When I run the
same script in Hypercard, the counting field whirs through changes faster
than a gas pump - with every new number displayed as it¹s put into the
field. Revolution only shows me about one figure in every twenty five or so
despite the fact that the routine tells the field to display every
consecutive number from 1 to 300.
Just add this script to a locked text field, and click on it, to see what
I¹m talking about:
on mouseup
-- COUNT TO 300
put the ticks into startTime
repeat with i = 1 to 300
put 1 + line 1 of me into line 1 of me
end repeat
put the ticks - starttime into stopTime1
put stopTime1 into word 1 of line 3 of me
put the ticks into startTime
put me into testVar
-- NOW JUST SHOW MULTIPLES OF TEN
repeat with i = 1 to 300
put 1 + line 2 of testVar into line 2 of testVar
if i mod 10 = 0 then put line 2 of testVar into line 2 of me
end repeat
put line 2 of testVar into line 2 of me
put the ticks - startTime into stopTime2
put stopTime1 & " : " & stopTime2 into line 3 of me
end mouseup
Surely there must be some way I can persuade the field to refresh more
frequently and and display everything put into the field?
Thanks for your suggestions,
Eric Colvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.runrev.com/pipermail/metacard/attachments/20060330/2e31a06d/attachment.html
More information about the metacard
mailing list