Precise timing of stimuli presentation and accurate recording of RTs #816
-
Hi, I'm worried about timing of stimuli presentation and accurate recording of RTs (e.g., a browser has its own internal priorities, other things are running in the background in addition to the browser). Is there any solution for that? If not a solution, perhaps some information about the overhead? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi, I'll try to answer your specific question first, then add more info about general timing issues and information/resources. jsPsych currently uses a function called If you want to be very sure that you have accurate stimulus display times, instead of As far as I'm aware, there's no way to know whether the participant's computer is overloaded. However, modern computers are higher-spec than they used to be, and modern browsers are now pretty good at prioritizing the page that is open/active over any others in the background, so that helps. As part of our testing, we're also planning to look at how different timing methods perform under different loads. |
Beta Was this translation helpful? Give feedback.
-
And more about stimulus and response timing: Since your question may not be about jsPsych specifically, but about stimulus presentations and RTs in online experiments more generally, it might also be worth asking this question in the online experiments google group forum as well: https://groups.google.com/forum/#!forum/online-experiments Another thing to do is to look at the papers listed here: https://www.jspsych.org/about/about/#response-times Although the papers listed are now a bit out of date, so here are some additional ones: Most of these papers test on the most common browsers, which is helpful for understanding how much variability there can be across browsers, and some of these also address the issue of hardware specs and CPU load. For instance, Reimers & Stewart (2016) tested on different systems and conclude that "within-system variability is generally small, even in low-powered machines under high load". At the moment I don't think it's clear whether certain browsers are always better or worse than others, which is partly because different studies report different/conflicting results, and partly because browsers perform differently across different operating systems. Also, at this point the up-to-date versions of the most common browsers now support the necessary features, e.g. Finally, there have been timing-related threads in the old jsPsych forum, so I'll post the links here in case you haven't seen them: I hope this helps, and that others will chime in with anything I've missed. |
Beta Was this translation helpful? Give feedback.
-
Can I get jspsych to log the timestamp when the video finishes playing? |
Beta Was this translation helpful? Give feedback.
Hi,
I'll try to answer your specific question first, then add more info about general timing issues and information/resources.
jsPsych currently uses a function called
setTimeout
to control stimulus timings, and a high-accuracy/precision timestamp calledperformance.now
to get response times. The accuracy and precision with these methods are reported here:de Leeuw 2015: https://doi-org.ezp.lib.cam.ac.uk/10.3758/s13428-014-0458-y
de Leeuw & Motz 2016: https://doi-org.ezp.lib.cam.ac.uk/10.3758/s13428-015-0567-2
(And in some other papers that I'll link to below)
If you want to be very sure that you have accurate stimulus display times, instead of
setTimeout
you can use a function calledreq…