Re: [sensors] Provide a way of tying sensor requests to animation frames

The [WebVR][1] spec attempts to solve the issue with:

>`getState()` Return a `VRPositionState` dictionary containing the 
state of this position sensor state for the current frame (if within a
 requestAnimationFrame context) or for the previous frame. This state 
may be predicted based on the implementation’s frame scheduling.

>The `VRPositionState` will contain the position, orientation, and 
velocity and acceleration of each of these properties. Use 
`hasPosition` and `hasOrientation` to check if the associated members 
are valid; If these are false, those members MUST be null.

[1]: 
http://mozvr.github.io/webvr-spec/webvr.html#dom-hmdvrdevice-getstate

-- 
GitHub Notif of comment by anssiko
See https://github.com/w3c/sensors/issues/4#issuecomment-111119954

Received on Thursday, 11 June 2015 12:43:11 UTC