What is the precision of the UITouch timestamp in iOS?

删除回忆录丶 提交于 2021-02-08 16:57:03

问题


How precise is the timestamp property of the UITouch class in iOS? Milliseconds? Tens of milliseconds? I'm comparing an iPad's internal measurements with a custom touch detection circuit taped on the screen, and there is quite a bit of variability between the two (standard deviation ~ 15ms).

I've seen it suggested that the timestamp is discretized according to the frame refresh interval, but the distribution I'm getting looks continuous.


回答1:


Prior to the iPad Air 2, the touch detection polling of the iDevices is 60 Hz. The iPad Air 2 is for the first time able to poll touches at 120 Hz.

So while the numbers of the timestamp seem to be very precise (many digits after the dot), they are not.

This is a WWDC video, it's the best WWDC video I've ever seen and it explains everything in detail: https://developer.apple.com/videos/wwdc/2015/?id=233

Just because I'm curious: What kind of custom touch detection circuit do you have?



来源:https://stackoverflow.com/questions/29355850/what-is-the-precision-of-the-uitouch-timestamp-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!