0

I am running a psychophysics task on psychtoolbox that need to show each image for 16, 30, 60, and 120 milliseconds. Although my system monitor refresh rate is 16.66 ms (60 Hz) but the lowest time I get is almost 33 ms (I check this time by recording video from the screen while showing these images).

I've searched a lot and now I use flip with specifying the time with ifi and nextFrameInterval but still can't show my image for 16 milliseconds. Why is this happening and how can I fix this?

ifi = Screen('GetFlipInterval',window);

Screen('DrawTexture',window,fixation,[],fixRect);
[~,lastVisualInterval] = Screen('Flip', window);

nextStimFrameDelta= (p.pre_mask_time/ifi);
Screen('DrawTexture',window,stimulus(rec(TrialNum, 3)),[],rectStim);
[~,lastVisualInterval] = Screen('Flip', window,lastVisualInterval +((nextStimFrameDelta-0.5)*ifi));

nextStimFrameDelta= ((rec(TrialNum,2)/1000)/ifi)  % rec(TrialNum,2) is the duration of peresenting images (16,30,... ms)
Screen('DrawTexture',window,mask(TrialNum),[],rectStim);
[~,lastVisualInterval] = Screen('Flip', window,lastVisualInterval +((nextStimFrameDelta-0.5)*ifi));
% And here the facial expression must be replaced by a mask after 16 or 30,... ms 

0 Answers0