function [window, misure_schermo, screenNum, CenterX, CenterY, ifi] = MoBi_Screen_Settings_Brescia(tinker) PsychDefaultSetup(2); PsychImaging('PrepareConfiguration'); PsychImaging('AddTask', 'General', 'FloatingPoint32Bit'); screenNum = max(Screen('Screens')); % Screen Number HideCursor if tinker == 0 [window, misure_schermo] = PsychImaging('OpenWindow', screenNum); else % for tinkering and allow the editor to be partially visible reduce the dimension of the screen [window, misure_schermo] = PsychImaging('OpenWindow', screenNum, [],[0 0 640 360]);% Screen('Preference', 'SkipSyncTests', 1) end ifi = Screen('GetFlipInterval', window); [CenterX, CenterY] = RectCenter(misure_schermo); % center of the screen coordinates disp(ifi) % Maximum priority level topPriorityLevel = MaxPriority(window); Priority(topPriorityLevel); end