Closed Bug 1043271 Opened 10 years ago Closed 10 years ago

Enable Orangutan to send touch events at consistent intervals

Categories

(Testing Graveyard :: Orangutan, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mchang, Assigned: wlach)

Details

(Keywords: perf, Whiteboard: [c=uniformity p= s= u=])

Attachments

(1 file)

For example, if i want to send a touch event every 10ms to match touch screen sample rates, it is not consistently sending a touch event every 10ms. I'd like to enable this feature so that orangutan sends touch events at the same rate that touch screens work.
Assignee: nobody → wlachance
Status: NEW → ASSIGNED
Summary: Orangutan is not sending touch events in consistent timing → Enable Orangutan to send touch events at consistent intervals
After chatting about this with Jeff and Mason, we figured that the problem is that we're not watching the actual elapsed time during the drag to make sure that the events are occurring on the expected schedule, we're just assuming that things will happen instantaneously:

https://github.com/mozilla-b2g/orangutan/blob/master/orng.c#L219

Instead, every time we do a touch move event we should see where we are relative to the expected time of the drag and input touch events accordingly.
This seems to do the right thing in my testing, though you probably need debug output to verify it. :)
Attachment #8461533 - Flags: review?(mchang)
Comment on attachment 8461533 [details] [diff] [review]
Ensure drag event occurs over correct interval

Review of attachment 8461533 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me! Thanks for getting it so fast!
Comment on attachment 8461533 [details] [diff] [review]
Ensure drag event occurs over correct interval

Review of attachment 8461533 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me! Thanks for getting it so fast!
Attachment #8461533 - Flags: review?(mchang) → review+
Hi Will, did this already land? If so, can you please resolve.
Flags: needinfo?(wlachance)
Oops forgot to push. Done now: https://github.com/mozilla-b2g/orangutan/commit/e9e38f526fd29eda06543ab5c3645eeca5e7e754
Flags: needinfo?(wlachance)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: