update frequency set for deviceMotionUpdateInterval it's the actual frequency?

后端 未结 1 987
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 23:31

analyzing the deviceMotion.timestamp i saw that the the update frequency set in DeviceMotion is not the actual frequency of update.

I implemented an app in order to

相关标签:
1条回答
  • 2021-01-06 00:02

    Some people are reporting the same phenomenon, for example Actual frequency of device motion updates lower than expected, but scales up with setting but there is still no answer. Surprisingly you are the first on to report higher actual frequencies. I did several tests on this and it makes no real difference which way you go.

    • Push or pull i.e. handler callback or own timer loop
    • iOS 4.2x, iOS 4.3x ([Update:]tested with pull only)
    • Raw sensor data or Device Motion
    • Gyroscope or accelerometer
    • Running it in a separate thread

    I assume it is a little bug in the Core Motion framework.

    0 讨论(0)
提交回复
热议问题