# if I lock iPhone fps to 24fps, can I get more accurate touch timings than that?

 0 at 24fps it's 41.66 milliseconds between frames. Can I get more accurate information about the timings of the players tap/touches of the screen than that, or the reports on touch time locked to the fps? I want to know the EXACT moment in time between touches. Or as exact as the iPhone clock enables whilst running a game. Consider 24fps an arbitrary frame rate. It could be 30fps, 60fps or any other rate the iPhone funs at. The point of interest is exact measurement of tap times independent of frame rate. Possible how? more ▼ asked Mar 12 '11 at 09:26 AM dissidently 450 ● 50 ● 55 ● 60 add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users

 0 The iPhone screen doesn't do 24 fps, it's vsynced always, so you get 60 fps or 30 fps (or 15 I suppose). In any case, as the docs say, "You can retrieve the status of each finger touching the screen during the last frame by accessing the Input.touches property array." more ▼ answered Mar 12 '11 at 09:57 AM Eric5h5 80.1k ● 41 ● 132 ● 519 You forgot 20 fps. Also, the profiler tells me I can get ~40ms frame times, too, suggesting 25 is possible. ??? Mar 12 '11 at 03:45 PM Jessy I believe deltaTime measures in seconds as the rest of the framework does so. So a value of 0.1 delta time means 0.1 seconds since last change. Mar 16 '11 at 02:30 PM Statement ♦♦ add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users
 0 I want to know the EXACT moment in time between touches. The point of interest is exact measurement of tap times independent of frame rate. Possible how? From the input docs: The iPhone/iPad screen is able to distinguish quick finger taps by the user. This counter will let you know how many times the user has tapped the screen without moving a finger to the sides. Android devices do not count number of taps, this field is always 1 See Touch.tapCount. You can get Touches from Input.touches. I don't know if this solves your problem or not, it apparently it will count the taps for you. If this is frame rate independent or not, I can't tell. If it is frame rate independent it probably won't offer you information about how long it took between each tap as it is only a value describing the number of taps. There exist also a deltaTime variable, but I don't know if you get a touch sample for every little tap. If you do, you can measure the distance in time between taps with this. more ▼ answered Mar 16 '11 at 02:28 PM Statement ♦♦ 20.1k ● 35 ● 70 ● 175 add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users

By Email:

Topics:

x1953
x1171
x576
x28
x1

asked: Mar 12 '11 at 09:26 AM

Seen: 1683 times

Last Updated: Mar 16 '11 at 02:51 AM