[interfacekit] Re: :) B_MOUSE_MOVED
- From: "Adi Oanca" <e2joseph@xxxxxxxxxx>
- To: <interfacekit@xxxxxxxxxxxxx>
- Date: Wed, 9 Apr 2003 20:30:16 +0300
> > If you think 4 bytes will slow the system down... then, so be it!
>
> It won't slow down the system, but it'll be slower, that's a fact. Even
> if it wouldn't be noticeable :)
Isn't that the point?
> > I don't think 4 bytes would make a difference, especially that
> > only one B_MOUSE_MOVED is in the system !
>
> It's not only slower than without it, IMHO it's just not necessary to
> add it, because of the modifiers() function. Mouse movements are
> generally handled ASAP, so the return value from modifiers() should
> really be enough if someone is interested in that value (and even be
> faster to call if it doesn't require to call the app_server).
How do you know that mouse movements are handled ASAP ? I see no
indication of that in disassembly code!
In BWindow's current implementation, messages are dispatched in the
order they arrive! That is why I've suggested adding those 4 bytes, so that
the state of modifies won't be different when handling B_MOUSE_MOVED
message!
I will do it as you guys say!, but I still remain convinced that adding
those 4 bytes will have no effect on performance!
Adi.
- Follow-Ups:
- [interfacekit] Re: :) B_MOUSE_MOVED
- From: Marcus Overhagen
- [interfacekit] Re: :) B_MOUSE_MOVED
- From: Axel =?iso-8859-1?q?D=F6rfler
- References:
- [interfacekit] Re: :) B_MOUSE_MOVED
- From: Axel =?iso-8859-1?q?D=F6rfler
Other related posts:
- » [interfacekit] :-) B_MOUSE_MOVED
- » [interfacekit] :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- » [interfacekit] Re: :) B_MOUSE_MOVED
- [interfacekit] Re: :) B_MOUSE_MOVED
- From: Marcus Overhagen
- [interfacekit] Re: :) B_MOUSE_MOVED
- From: Axel =?iso-8859-1?q?D=F6rfler
- [interfacekit] Re: :) B_MOUSE_MOVED
- From: Axel =?iso-8859-1?q?D=F6rfler