File: kPsychSkipSecondaryVsyncForFlip.m

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (23 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function rval = kPsychSkipSecondaryVsyncForFlip
% rval = kPsychSkipSecondaryVsyncForFlip
%
% This flag can be passed to the optional 'specialFlags' parameter of
% Screen('OpenWindow', ...) or PsychImaging('OpenWindow', ...).
%
% This flag will disable synchronization of OpenGL bufferswaps of a potential
% secondary / slave window to vertical blank ("VBLANK" / "VSYNC"). Such windows
% are used for the right-eye view in stereomode 10 (dual window stereo), special
% dual-window display modes, and for display mirroring/cloning with the PsychImaging
% task 'MirrorDisplayTo2ndOutputHead', which provides a copy of the visual stimulus
% image presented to the subject also to a secondary window / display for the
% experimenter.
%
% Especially for this latter use case of display mirroring to an experimenter
% control monitor, one usually wants to skip vsync and accept degraded image
% quality / tearing, because tearing doesn't matter much for a simple control
% display, but disabling vsync prevents throttling of the main subject stimulus
% display to the potentially lower video refresh rate of a cheaper/lower-end
% experimenter display.

rval = 2^35;
return