Fastest Frame Rate?
Rick Harrison
harrison at all-auctions.com
Sat Mar 23 15:19:51 EDT 2019
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 at 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.
More information about the use-livecode
mailing list