Coalesce touchmove
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: smaug, Assigned: smaug)
References
(Blocks 2 open bugs)
Details
(Keywords: perf:responsiveness)
Attachments
(1 file)
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Looks like on Windows things are a bit different. http://mozilla.pettay.fi/moztests/pointermove.html should work on Edge too.
We don't seem to dispatch so many events.
(but coalescing is needed on mobile at least.)
Comment 2•6 years ago
|
||
Reproduced on Lenovo Yoga C630-13Q50 with Windows 10 Home (v1803) on latest Nightly aarch64 build.
Updated•6 years ago
|
Comment 3•5 years ago
|
||
It seems like we would also need to implement getCoalescedEvents for touch events. At the moment this seems to be implemented only for pointer events from mouse move events. Do we send pointer events for touch events on Android?
Furthermore, Android has its own touch move event batching, but lets you access the "historical" events of a MotionEvent.
Assignee | ||
Comment 4•5 years ago
|
||
Yes, pointer events are supported on multiprocess GeckoView.
(Fennec doesn't have pointere events)
Assignee | ||
Comment 5•5 years ago
|
||
One simple way to get at least the IPC level compression would be to add a new IPC message
RealTouchMoveEvent2 or some such. It would behave exactly like RealTouchMoveEvent.
Whenever sender changes the touch stream id of the touches it is sending, it would switch to the other RealTouchMoveEvent* message.
Then both the the messages could use compress in ipdl.
(That wouldn't affect to getCoalescedEvents, but that is a bit separate issue anyhow)
Assignee | ||
Comment 6•5 years ago
•
|
||
A variant of the original testcase showing that if JS listeners are slow, we end up queuing more touchmoves
http://mozilla.pettay.fi/moztests/touchmoveslow.html
http://mozilla.pettay.fi/moztests/touchmove2slow.html
Assignee | ||
Comment 7•5 years ago
•
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 years ago
•
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 10•5 years ago
|
||
Hmm, looks like I've lost link to the latest tryserver push.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=11557adef33d4850b9554c0e9e1e7fb6504cdebe
Assignee | ||
Comment 11•5 years ago
|
||
Aha, had to open the test in a new window. silly me.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3cca640d3da15797e1cdd24c37b788031e65125f
Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•