Hi Colin, Yes, I tried send in time instead of a repeat loop. I have tried wait 0 with messages too.
The best I get is a little solid purple, then a little too red and then a little too blue etc. I even tried a scrollbar to give me the flexibility to set a range of times. It just isn’t consistent purple like it should be. Any other ideas? Rick > On Mar 23, 2019, at 1:44 PM, Colin Holgate via use-livecode > <use-livecode@lists.runrev.com> wrote: > > I think you would need to wait 0 with messages to get a fair test. > > In my case I didn’t do it that way. I have one handler that moves everything, > and a shorter handler that checks the mouse position (if you’re not on > mobile) and calls the longer handler. Like this: > > on moveworld > if the environment is not mobile then > put (512-the mouseh)/100 into difx > end if > movethings difx > send moveworld to me in 16 milliseconds > end moveworld > > The send in 16 milliseconds means I’m trying to do 60 fps. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode