Cargando…

Implementation of stimuli with millisecond timing accuracy in online experiments

Online experiments are growing in popularity. This study aimed to determine the timing accuracy of web technologies and investigate whether they can be used to support high temporal precision psychology experiments. A dynamic sinusoidal grating and flashes were produced by setInterval, CSS3, and req...

Descripción completa

Detalles Bibliográficos
Autores principales: Gao, Zhengguo, Chen, Biao, Sun, Tianwen, Chen, Haoqiang, Wang, Kai, Xuan, Peipei, Liang, Zhen
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Public Library of Science 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7351209/
https://www.ncbi.nlm.nih.gov/pubmed/32649696
http://dx.doi.org/10.1371/journal.pone.0235249
_version_ 1783557407008358400
author Gao, Zhengguo
Chen, Biao
Sun, Tianwen
Chen, Haoqiang
Wang, Kai
Xuan, Peipei
Liang, Zhen
author_facet Gao, Zhengguo
Chen, Biao
Sun, Tianwen
Chen, Haoqiang
Wang, Kai
Xuan, Peipei
Liang, Zhen
author_sort Gao, Zhengguo
collection PubMed
description Online experiments are growing in popularity. This study aimed to determine the timing accuracy of web technologies and investigate whether they can be used to support high temporal precision psychology experiments. A dynamic sinusoidal grating and flashes were produced by setInterval, CSS3, and requestAnimationFrame (hereafter, rAF) technologies. They were run at normal or real-time priority processing in Chrome, Firefox, Edge, and Internet Explorer on Windows, macOS, and Linux. Timing accuracies were compared with that of Psychtoolbox which was chosen as gold standard. It was found that rAF with real-time priority had the best timing accuracy compared to the other web technologies and had a similar timing accuracy as Psychtoolbox in traditional experiments in most cases. However, rAF exhibited poor timing accuracy on Linux. Therefore, rAF can be used as technical basis for accuracy of millisecond timing sequences in online experiments, thereby benefiting the psychology field.
format Online
Article
Text
id pubmed-7351209
institution National Center for Biotechnology Information
language English
publishDate 2020
publisher Public Library of Science
record_format MEDLINE/PubMed
spelling pubmed-73512092020-07-22 Implementation of stimuli with millisecond timing accuracy in online experiments Gao, Zhengguo Chen, Biao Sun, Tianwen Chen, Haoqiang Wang, Kai Xuan, Peipei Liang, Zhen PLoS One Research Article Online experiments are growing in popularity. This study aimed to determine the timing accuracy of web technologies and investigate whether they can be used to support high temporal precision psychology experiments. A dynamic sinusoidal grating and flashes were produced by setInterval, CSS3, and requestAnimationFrame (hereafter, rAF) technologies. They were run at normal or real-time priority processing in Chrome, Firefox, Edge, and Internet Explorer on Windows, macOS, and Linux. Timing accuracies were compared with that of Psychtoolbox which was chosen as gold standard. It was found that rAF with real-time priority had the best timing accuracy compared to the other web technologies and had a similar timing accuracy as Psychtoolbox in traditional experiments in most cases. However, rAF exhibited poor timing accuracy on Linux. Therefore, rAF can be used as technical basis for accuracy of millisecond timing sequences in online experiments, thereby benefiting the psychology field. Public Library of Science 2020-07-10 /pmc/articles/PMC7351209/ /pubmed/32649696 http://dx.doi.org/10.1371/journal.pone.0235249 Text en © 2020 Gao et al http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
spellingShingle Research Article
Gao, Zhengguo
Chen, Biao
Sun, Tianwen
Chen, Haoqiang
Wang, Kai
Xuan, Peipei
Liang, Zhen
Implementation of stimuli with millisecond timing accuracy in online experiments
title Implementation of stimuli with millisecond timing accuracy in online experiments
title_full Implementation of stimuli with millisecond timing accuracy in online experiments
title_fullStr Implementation of stimuli with millisecond timing accuracy in online experiments
title_full_unstemmed Implementation of stimuli with millisecond timing accuracy in online experiments
title_short Implementation of stimuli with millisecond timing accuracy in online experiments
title_sort implementation of stimuli with millisecond timing accuracy in online experiments
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7351209/
https://www.ncbi.nlm.nih.gov/pubmed/32649696
http://dx.doi.org/10.1371/journal.pone.0235249
work_keys_str_mv AT gaozhengguo implementationofstimuliwithmillisecondtimingaccuracyinonlineexperiments
AT chenbiao implementationofstimuliwithmillisecondtimingaccuracyinonlineexperiments
AT suntianwen implementationofstimuliwithmillisecondtimingaccuracyinonlineexperiments
AT chenhaoqiang implementationofstimuliwithmillisecondtimingaccuracyinonlineexperiments
AT wangkai implementationofstimuliwithmillisecondtimingaccuracyinonlineexperiments
AT xuanpeipei implementationofstimuliwithmillisecondtimingaccuracyinonlineexperiments
AT liangzhen implementationofstimuliwithmillisecondtimingaccuracyinonlineexperiments