0 Favourites

Best ways for measuring reaction time

  • 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.

    Thanks in advance

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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 ?

  • 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)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
234 61,230
DARKSETH's avatar
DARKSETH
Unread hot topic
0 Favourites
Time to move forward?
110 9,561
GG-Works's avatar
GG-Works
Unread hot topic
0 Favourites
[PLUGIN] Time manager
76 33,823
SondeepH's avatar
SondeepH