Running Windows 2000 and Matlab 5.3, a call to Screen's
WaitBlanking function can sometimes take two or more screen refreshes
to finish, when it is only supposed to take one. On the machines we
use at the Penn Visual Perception lab, we need to do three things to
get rid of this problem: Quit open applications and non-Matlab
windows (obviously), turn off the Local Area Network (LAN), and set
the priority of Matlab.exe to high (under "processes" in the Windows
Task Manager). This seems to eliminate the incidence of extra
refreshes when using WaitBlanking.
Setting Matlab's priority under Windows to "realtime" also gets rid
of the extra refreshes, but prevents getchar and kbCheck from
reliably detecting keypresses.
--Dan
dmatza@...
WaitBlanking function can sometimes take two or more screen refreshes
to finish, when it is only supposed to take one. On the machines we
use at the Penn Visual Perception lab, we need to do three things to
get rid of this problem: Quit open applications and non-Matlab
windows (obviously), turn off the Local Area Network (LAN), and set
the priority of Matlab.exe to high (under "processes" in the Windows
Task Manager). This seems to eliminate the incidence of extra
refreshes when using WaitBlanking.
Setting Matlab's priority under Windows to "realtime" also gets rid
of the extra refreshes, but prevents getchar and kbCheck from
reliably detecting keypresses.
--Dan
dmatza@...