MacInnes W J, Taylor T L
Department of Psychology, Dalhousie University, Halifax, NS B3H 4J1, Canada.
Behav Res Methods Instrum Comput. 2001 May;33(2):174-8. doi: 10.3758/bf03195363.
A real-time, object-oriented solution for displaying stimuli on Windows 95/98, MacOS and Linux platforms is presented. The program, written in C++, utilizes a special-purpose window class (GLWindow), OpenGL, and 32-bit graphics acceleration; it avoids display timing uncertainty by substituting the new window class for the default window code for each system. We report the outcome of tests for real-time capability across PC and Mac platforms running a variety of operating systems. The test program, which can be used as a shell for programming real-time experiments and testing specific processors, is available at http://www.cs.dal.ca/~macinnwj. We propose to provide researchers with a sense of the usefulness of our program, highlight the ability of many multitasking environments to achieve real time, as well as caution users about systems that may not achieve real time, even under optimal conditions.
本文介绍了一种用于在Windows 95/98、MacOS和Linux平台上显示刺激的实时、面向对象的解决方案。该程序用C++编写,利用了一个专用窗口类(GLWindow)、OpenGL和32位图形加速;它通过为每个系统用新的窗口类替换默认窗口代码来避免显示定时的不确定性。我们报告了在运行各种操作系统的PC和Mac平台上进行实时能力测试的结果。测试程序可在http://www.cs.dal.ca/~macinnwj获取,它可用作编写实时实验和测试特定处理器的外壳。我们旨在让研究人员了解我们程序的实用性,强调许多多任务环境实现实时的能力,并提醒用户注意即使在最佳条件下也可能无法实现实时的系统。