开发者

Why are my accelerometer readings so slow?

开发者 https://www.devze.com 2023-02-20 19:47 出处:网络
开发者_StackOverflow社区Somewhere in the documentation they mentioned 400 Hz. Nice figure, but I end up getting something less than 100. Even on the latest, coolest, most awesome iPhone 4. And I\'m no

开发者_StackOverflow社区Somewhere in the documentation they mentioned 400 Hz. Nice figure, but I end up getting something less than 100. Even on the latest, coolest, most awesome iPhone 4. And I'm not doing anything except incrementing a counter (ivar) and assigning the value to a label. Can't imagine this is the bottleneck.

I set the frequency to the maximum possible (very small number, like 1.0/10000). It is supposed to be capped to the max whatever the hardware supports.


You can adjust that frequency - see my answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消