Is the update frequency set for the MotionUpdateInterval device the actual frequency?

Analysis of deviceMotion.timestamp showed that the refresh rate set in DeviceMotion is not the actual refresh rate.

I implemented a testing application below what I saw!

    update frequency     actual frequency       average time between two calls
       1/10.000000          10.232265              0.097730
       1/20.000000          19.533729              0.051194
       1/30.000000          30.696613              0.032577
       1/40.000000          42.975122              0.023269
       1/50.000000          53.711000              0.018618
       1/60.000000          53.719106              0.018615
       1/70.000000          71.627016              0.013961
       1/80.000000          71.627263              0.013961
       1/90.000000          53.719365              0.018615
       1/100.000000        107.442667              0.009307
       1/110.000000        107.437022              0.009308

did someone notice the same thing? this is mistake?

+5
source share
1 answer

, , , - . , . , , .

  • , .. .
  • iOS 4.2x, iOS 4.3x ([:] pull)
  • Motion

, Core Motion.

+1

All Articles