U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
pvictor is currently offline  pvictor
Messages: 75
Registered: December 2015
Member
mirek wrote on Thu, 06 August 2020 14:18
Short 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
 
Read Message
Read Message
Read Message
Previous Topic: Include a '+' tab to add tab in TabBar
Next Topic: [GlCtrl] Integration and use of Glad loader instead of Glew
Goto Forum:
  


Current Time: Thu Sep 17 20:15:15 GMT+2 2026

Total time taken to generate the page: 0.00755 seconds