# Best ways for measuring reaction time

0 favourites
• 9 posts
From the Asset Store
Change the size and position of everything without calculating anything!
• Hi all,

I have a game concept in mind where the player is scored based on their reaction time to the appearance of a certain sprite. I understand though, that some HTML5 games will run at a higher frame on better systems (and slower on older systems).

My question I guess is: what do you think is the best way to measure reaction time that is fair to all players?

Should I have a time that normalizes the score output dependent on the average fps?

Would wall clock work? since this is frame-rate independent...? I ask because I'm not sure about the mechanics. would the sprite be visible quicker on a faster system and be delayed on a slower system?

I'll experiment some more but I don't know how to test this very well.

• Count the ticks between the two events and multiply it with the System-Variable dt

• wow thanks for the speedy reply.

would this method start counting from the moment the sprite becomes visible to the player?

if so - then you've helped me out completely! Thanks

i'm a beginner at all of this :)

• After spawning the sprite, take a global variable and set it to tickcount.

Then, at keypress, take the tickcount again. After that use the following to calculate the reaction time:

Reactiontime = abs(t1 - t2) * dt
• If you use time instead of tickcount you can calculate it as follows:

Reactiontime = t2 - t1

which is more accurate because each tick doesn't necessarily have the same dt.

• thanks R0J0hound. I have been experimenting with the dt thing, but the computers I'm using are about equal in performance.

I have seen that the dt does vary when the frame-rate drops (I used the particle effect to bring down the frame rate).

Will try out the time and post the results :D

• Spirantula: something that interest me is how do you define reaction time ?

From what point do you start counting ? Display of something ? Time between two touches ?

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• Pode, for my purposes the reaction time is measured from the display of a sprite until the player reacts (does some kind of input - maybe clicks the mouse).

I raised the question because I was not sure whether C2 would start counting from the moment the sprite displays (becomes visible to the player) or before that - for example if it has an extremely low frame-rate and the sprite display is delayed somewhat (maybe 5 ticks go by without any sprite visible - but it starts counting from there anyway)

not really sure if this makes any sense.

• Spirantula: something that interest me is how do you define reaction time ?

From what point do you start counting ? Display of something ? Time between two touches ?

For me, i measure the reaction time as the time my object is created and the time the player clicks on it. Assign the time on creation to an object's variable and i'm good.

And by the way, i use it to compound the points for clicking the object, within the speed and distance of origin... (on ClickDaMeme, for the memes puked/clicked)

• 9 posts