W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2017

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

From: Mikhail Pozdnyakov via GitHub <sysbot+gh@w3.org>
Date: Tue, 14 Feb 2017 10:59:16 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-279676392-1487069955-sysbot+gh@w3.org>
Think we must distinguish between _polling frequency_  (one which is 
used by the actual device sensor to poll data) and _update frequency_
  (how often a JS Sensor object notifies its updates).
The user provides frequency hint only for update frequency, this hint 
also defines minimal desired interval between two updates.
The polling frequency will be chosen internally by UA. However, 
polling frequency affects the latency of the returned sensor data. So,
 it would be advisable to introduce also  _latency_  sensor 
construction parameter, so that UA will consider it when selecting the
 actual polling frequency. @tobie, wdyt?

GitHub Notification of comment by pozdnyakov
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/152#issuecomment-279676392 using
 your GitHub account
Received on Tuesday, 14 February 2017 10:59:24 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC