[interfacekit] Re: :) B_MOUSE_MOVED

Adi Oanca wrote:

>     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=5FMOUSE=5FMOVED
> 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!

Well, adding 4 bytes does not affect performance at all.

But please have a look at the modifiers() function.
The disassembly clearly shows that is constructs a BMessage,
askes the input server using <=5Fcontrol=5Finput=5Fserver=5F=5F=5FFP8BMessageT0>
where a BMessenger is constructed, etc.
This is huge overhead when moving the mouse.

Marcus





Other related posts: