priorityLevel=
MaxPriority([windowPtrOrScreenNumber],['
WaitBlanking'],['
PeekBlanking'],...
['
BlankingInterrupt'],['
SetClut'],['
ClutMovie'],...
['SND'],['sound'],['speak'],...
['
GetSecs'],['
WaitSecs'],['cputime'],...
['
KbCheck'],['
KbWait'],['
CharAvail'],['
GetChar'],...
['
EventAvail'],['
GetClicks'],['
GetMouse'],['
GetTicks'])
MaxPriority.m receives a list of one or more function names, in any
order, and returns the maximum priorityLevel that will allow all the
named functions to work normally on this computer. Use
MaxPriority
before calling RUSH, to select the highest priorityLevel that's
compatible with all the functions that you're rushing.
The name matching ignores case.
On OS X all priority levels are safe for all functions.
MaxPriority
always returns 9, the highest priority level.
To preserve compatability with other platforms we recommend using
MaxPriority in your script on OS X, insted of the constant 9.
Priority levels returned by
MaxPriority are 0, 1 and 2.
Although use of priority levels > 1 is possible and allowed by
MaxPriority
if you don't try to acquire input from keyboard or mouse, it is discouraged
to use levels > 1 as this can interfere with execution of a lot of
important system processes and severely reduce the stability of
Windows execution.
MaxPriority always returns 1, although levels of up to 99 are possible.
We recommend to sticking to the lowest level, unless some tweaking for a
specific setup or situation is neccessary.
See RUSH,
Priority,
MovieDemo,
ScreenTest, SCREEN
Preference MaxPriorityForBlankingInterrupt,
SCREEN
Preference SetClutPunchesBlankingClock.
Psychtoolbox/PsychPriority/MaxPriority.m