Open
Description
Even when doing realtime processing (eg. say at 60 Hz), there is a benefit to having more than one new value every time you process (eg. Oculus polls a gyroscope at 1000 Hz for head tracking). In this case, every time you process, you'll have [1000/60] ~= 16 new sensor data.
This seems like a desirable feature. How would you handle this though?
Is this (yet) an extra option you set? How does that work with sensors with multiple values, etc.?
/cc @borismus
Proposed resolutions: Some use cases have high data frequency requirements which might cause performance and/or memory constraints. Further research is needed to assess and determine how to satisfy those requirements.
Further actions:
- List use cases with high data frequency requirements.
- Research the performance costs of crossing the JS context to justify batching requirements (talk with implementors).
- Decide on a solution to expose the batching in the Sensor API.
- Devise a strategy to handle huge backlog of historical data.
- Decide whether performance and/or memory constraints justify making the batch mode opt-in or whether it can just be the normal operational mode.