Home » U++ Library support » U++ Widgets - General questions or Mixed problems » [SOLVED] MouseMove events in Windows and Linux
Re: MouseMove events in Windows and Linux [message #54516 is a reply to message #54514] |
Thu, 06 August 2020 15:45 |
pvictor
Messages: 67 Registered: December 2015
|
Member |
|
|
mirek wrote on Thu, 06 August 2020 14:18Short answer: Do not put too much processing into event handling routines...
Longer: ...especially MoiseMove, because that will stall the event queue...
There might be some differences between event queue in gtk and Win32 that make Linux work better here, but the fundamental reason is the same and the code simply should not do what it is doing. You might get better results by adding Sync after SetImage, but still this should be coded differently.
Thank you, in my case Sync() really helps.
BTW, I believe that OS is smart enough to not place the bunch of MouseMove events into the queue. It should replace an old unprocessed MouseMove event with the new one. In this case a few dozens ms of event processing should be OK.
Best regards,
Victor
|
|
|
Goto Forum:
Current Time: Tue Jun 04 01:23:45 CEST 2024
Total time taken to generate the page: 0.01186 seconds
|