I wonder if it is possible to find the refresh rate for the iPhone's accelerator. Both for iPhone2G (with ios 3.1) and iPhone 4s.
Asked
Active
Viewed 406 times
2 Answers
0
you can set the refresh rate using the updateInterval
method on UIAccelerometer
This property is measured in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. To ensure that it can deliver device orientation events in a timely fashion, the system determines the appropriate minimum value based on its needs.

John Corbett
- 1,595
- 10
- 19
-
i wanna know what's the "maximum frequency supported by the hardware" for iphone 2g and also iphone 4s. – Michel Gokan Khan Jul 30 '12 at 17:27
-
you never said maximum :P it depends on a lot of things. The short answer is it will be as high as the iPhone can afford it to be. If you want an exact number, you can set the interval to a low number and log how often it updates. I would do this myself, but I have an iPhone 4 (not 4s) and it depends a lot on your environment. – John Corbett Jul 30 '12 at 17:40
0
I found my answer in this answer:
https://stackoverflow.com/a/11803180/169545
Minimum refresh rate is 10hz and maximum is 100hz.

Community
- 1
- 1

Michel Gokan Khan
- 2,525
- 3
- 30
- 54