Slow down

Scott Rossi scott at tactilemedia.com
Mon Dec 8 00:17:32 EST 2003


On 12/7/03 11:48 PM, "Thomas McCarthy" <tominjapan at excite.com> wrote:

> I'm experiencing a very slow execution on Windows NT 2000 (japanese)
> 
> On my English Mac Powerbook 333 sytem 8.6 (ancient, i know!) this works well.
> 
> the aim of this script is to move a field of words across the screen so that
> students can click on the words as they scroll past. I tried it with the
> "move" command, but the mouseclicks weren't caught on Win NT and the movement
> was pretty jerky.
> 
> on movescroll
> --check for location (i.e. has the field moved all the way?)
> put the right of fld "scroll" - 2 into x
> set the right of fld "scroll" to x
> if x > the righ of image 1 then send movescroll to this cd in .003 seconds
> --(image 1 sets the boundary for the field)
> end movescroll
> 
> It works all right (still a little jerky) but on the NT machine it's
> sloooooow. It seems to move fast and then slow way down as the field becomes
> completely visible on the screen.
> 
> any ideas/comments would be most welcome!

1) If you have a slow video card or minimal video RAM, there's not much you
can do.

2) If you're moving the field on top of an image, you might get better
performance if you change the image to a solid color graphic, or lose the
image (or whatever is behind the field) altogether and give the card a bkgnd
color.

3) You might get better performance if you calculated the distance to move
in advance and tested the calculated position of the field against the
destination value, instead of repeatedly polling the field's position.
Technically this shouldn't make that big a difference but you never know...

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the metacard mailing list