Millisecond accuracy video display using OpenGL under Linux
Related Experiment Video
Updated: Aug 7, 2026

Enabling High Grayscale Resolution Displays and Accurate Response Time Measurements on Conventional Computers
Published on: February 29, 2012
1Department of Psychology, University of Warwick, Coventry CV4 7AL, England. neil.stewart@warwick.ac.uk
Abstract:
To measure people's reaction times to the nearest millisecond, it is necessary to know exactly when a stimulus is displayed. This article describes how to display stimuli with millisecond accuracy on a normal CRT monitor, using a PC running Linux. A simple C program is presented to illustrate how this may be done within X Windows using the OpenGL rendering system. A test of this system is reported that demonstrates that stimuli may be consistently displayed with millisecond accuracy. An algorithm is presented that allows the exact time of stimulus presentation to be deduced, even if there are relatively large errors in measuring the display time.

