xxfxxf / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 0 forks source link

mouse events prevent a repaint #380

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Longish mouse move events (10-20ms) prevent a repaint.
This works differently from chrome which has a repaint after each mouse move 
which changes the view.

This problem can be reproduce with attached html file in the cefclient on 
windows (xp, vista and 7).

Get the html file from the attachment with extreemly long move mouse handling. 
Open this file in google chrome and move the mouse steadily around and a cross 
will follow the mouse pointer (a bit shockely). Now try opening the file in the 
cefclient, and move the mouse steadily around and the cross will not move until 
you stop moving the mouse. After which the cross will jump to the mouse.

Of course you should keep the work done in events a short a possible, but the 
tipping point between repaint and no repaints seems to be at 7 to 8 ms, not 
that much time.

Hope this helps,

Ronald Hordijk

Original issue reported on code.google.com by Ronald.H...@gmail.com on 17 Oct 2011 at 10:51

Attachments:

GoogleCodeExporter commented 9 years ago
This is because CEF1 is single-process and JS execution blocks the application 
UI thread. Use CEF3 for better behavior.

Original comment by magreenb...@gmail.com on 2 Oct 2012 at 10:36