Polling the mouse

xbury.cs at clearstream.com xbury.cs at clearstream.com
Wed Dec 1 04:02:35 EST 2004


Hi Lince,

While this routine may eat a few more CPU cycles than usual, it poses
absolutely no problems. 

Since RunRev doesn't thread anyway, there no impact on would be
rev-background running applications. 

CPU hogging is only 20% more than resizing or moving any window
 in windows (out of runrev). Moving or resizing a stack in rev will 
equally eat as much if not more CPU!

It's also much easier to implement, edit and debug IMOHO.

The mousedown event is usually pretty short anyway (depending
on the application naturally.)

My 2 cents
Xavier

On 01.12.2004 09:40:37 use-revolution-bounces wrote:
>Hi Lince,
>
>> What will be the consequence of polling the mouse in Revolution.
>
>Eternal damnation and a special x-talk purgatory! :-D
>
>> repeat until the mouse is up
>>   set the loc of btn "dragBtn" to the mouseLoc
>> end repeat
>>
>> Certain people discourage use of this in MetaCard and Revolution?
>
>Jan (or his current clone on duty ;-) is right.
>It will eat CPU time unecessarily.
>
>And this is a very good read indeed:
>http://www.hyperactivesw.com/polling.html
>
>> Thanking you,
>>
>> Lince M Lawrence
>> FOCAL IMAGE (INDIA) PVT. LTD.
>> [ mailto:lince at river-valley.com ]
>
>Regards
>
>Klaus Major
>klaus at major-k.de
>http://www.major-k.de
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution

-----------------------------------------
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE    Internet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.    The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.    END OF DISCLAIMER



More information about the use-livecode mailing list