x


Precise timing of user responses

We are at the beginning of a research project that involves testing subjects on computer tasks and measuring their performance (for example, reaction times). We are considering Unity along with a small number of other development environments (even though this is not a game, it has game-like elements).

Since timing is of crucial importance to us, I am wondering if anyone could comment on the ability to do precise and accurate timing of user responses in Unity. The mere existence of a command that returns the time to a certain precision is not so much what I am asking after... it must actually be that accurate in real use, and reliably so. Might Unity be an appropriate choice for us?

We would need, at the very least, reliable accuracy to 10 ms. This is minimal, however... the more precise and accurate the timing, the better.

more ▼

asked Aug 29 '11 at 08:38 PM

allanfrandall gravatar image

allanfrandall
1 3 3 4

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I've never thought to question the accuracy of the Time.Time() function, but I'm sure it must be at least as reliable as 10ms. We can see frame rates over 100 fps, so it's gotta be that good at least.

more ▼

answered Aug 29 '11 at 09:08 PM

DaveA gravatar image

DaveA
26.5k 151 171 256

(comments are locked)
10|3000 characters needed characters left

The timing accuracy of input depends on the framerate, so the higher the framerate, the more accurate the timing. For true accuracy you'd have to write a plugin that handles input. (Unity functions are not thread-safe, so it's not possible to just have a separate thread that handles input.)

more ▼

answered Aug 29 '11 at 09:29 PM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x28
x27
x27
x1

asked: Aug 29 '11 at 08:38 PM

Seen: 768 times

Last Updated: Aug 29 '11 at 09:29 PM