W3C home > Mailing lists > Public > public-device-apis-log@w3.org > December 2016

Re: [sensors] Call 'onchange' only when data changes and considering frequency hint

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Fri, 16 Dec 2016 16:36:04 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-267635321-1481906163-sysbot+gh@w3.org>
@foolip wow. My understanding from raising this issue was that there 
was no way to sync the frame clocks with the sensor polling. That's 
pretty exciting.

There's an open issue on this topic here: #4.

Note the main reason to request polling frequencies that are great 
than framerate are:

1. to decrease latency (pick the very latest values), so this means 
that polling must happen as close to the frame as possible, and
2. combining multiple values together on each frame.

 It feels like this might need a different notation, e.g.: 

```js
new Gyroscope({ frequency: "2pf" });
// or
new Gyroscope({ readingsPerFrame: "2" });
```

Thoughts?


-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/152#issuecomment-267635321 using
 your GitHub account
Received on Friday, 16 December 2016 16:36:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC