millisec test timings and screen refresh rate
Richard Gaskin
ambassador at fourthworld.com
Fri Apr 20 00:45:19 EDT 2007
Phil Davis wrote:
> Thanks everyone. But... Let me put my question another way:
>
> on mouseUp
> # lock screen -- aka "lock #1"
> wait 1 second
> show img 1
> # unlock screen -- also part of lock #1
>
> put the milliseconds into tStart
> wait 5 milliseconds
>
> # lock screen -- aka "lock #2"
> hide img 1
> #unlock screen -- also part of lock #2
>
> put the milliseconds - tStart & cr after fld 1
> set the vScroll of fld 1 to the formattedHeight of fld 1
> put (the number of lines in fld 1) into fld 2
> end mouseUp
>
>
> I ran the above script x times and got these results on my Apple 20"
> cinema display & intel mini:
>
> - 50x with no locks/unlocks = 24% of times I saw the img
> - 50x with lock #1 = 20% of times I saw the img
> - 50x with lock #1 & #2 = 36% of times I saw the img
>
> Ideally I would see the image 100% of the time - that's my goal. I'll
> experiment with the other methods of displaying the image and see if I
> can improve my results.
I wonder if it would make a difference to change the wait command to
"wait...with messages". I believe the "with messages" option frees up
cycles to the OS, which helps it refresh.
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list