Another examples of the screen refresh problem on the Mac?

Ken Ray kray at sonsothunder.com
Mon Oct 10 21:42:08 EDT 2011


On Oct 10, 2011, at 6:04 PM, James Hurley wrote:

> Ken,
> 
> Thanks for your careful test. This is driving me nuts and I can't find a work-around.
> 
> I think the problem is RR not doing a screen refresh after each of the MULTIPLE steps. (I have always, in OS 10) had to do a refresh after EACH step.
> 
> Would you please try this for me:

I get the same jerky effect that you get. Now that I see the code, I think the issue is that you're doing a single pixel move for both objects; when I spread that out to do that every 8 pixels, it was smooth:

on mouseUp
     put 200 into x
     put 200 into y
     put 2 into dx
     put 1 into dy
   
     repeat 25 times
           put x,y & cr after tPoints
           add (4*dx) to x
     end repeat
   
     put 200 into x
     put 200 into y
     repeat 25 
           put x,y & cr after tNewPoints
           add (8*dy) to y
     end repeat
   
     lock moves
     move button "one" to tNewPoints without waiting
     move button "two" to tPoints without waiting
     unlock moves
   
end mouseUp

Will that work for you? Or do you really need to move the objects in 1 pixel increments?

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/	




More information about the use-livecode mailing list