##Screen('Preference', 'Verbosity', 0); ##Screen('Preference', 'SkipSyncTests',1); ##Screen('Preference', 'VisualDebugLevel',0); try screen=0; [wPtr,rect]=Screen('OpenWindow',screen); HideCursor; black=BlackIndex(wPtr); white=WhiteIndex(wPtr); Screen('FillRect',wPtr,white); Screen(wPtr, 'Flip'); tic while toc<5 end disgustface = imread('040.tif'); textureIndex=Screen('MakeTexture', wPtr, disgustface); ret=Screen('PreloadTextures', wPtr, textureIndex); Screen('DrawTexture', wPtr, textureIndex ); Screen(wPtr, 'Flip'); tic while toc<6 end Screen('Close', wPtr); ShowCursor; catch Screen('CloseAll'); rethrow(lasterror) end