[Webkit-unassigned] [Bug 226954] New: Only processes single key event per frame

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 12 08:52:33 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=226954

            Bug ID: 226954
           Summary: Only processes single key event per frame
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: UI Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msfeldstein at gmail.com

Created attachment 431260

  --> https://bugs.webkit.org/attachment.cgi?id=431260&action=review

Example Video

It appears WebKit only handles one input event, for example keypress, per animation frame.  This is ok if your app is super fast, or if you type slower than the fps, but if there's any performance issues it quickly causes multiple frame slowdowns.

Here is an example repro. It has a long-running animation frame to slow the fps down a bit. https://codepen.io/jlfwong/pen/GRWXzBM

If you type very quickly (just bash keys) in chrome it keeps up with your typing but if you do it in WebKit/Safari you'll quickly see the keys come in one at a time over many many frames.  This happens on Mac and iOS

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210612/73e78c37/attachment.htm>


More information about the webkit-unassigned mailing list