So I’m using a linux machine and scripts running on this PC usually have visual.window set with
waitBlanking=False to fix the double-the-time per frame issue that occurs on Ubuntu.
I recently needed to track the flip time in a particular script but in doing so, it produces a NaN/None value. Took me a while to locate the source of this problem. Only when setting
waitBlanking=True will then a value be generated. Any clue as to how to get this to work?
The following codes are enough to replicate this error:
from psychopy import visual, event, core, data window =visual.Window(size=(1152,864), screen = 0, allowGUI=False, bitsMode=None, units='pix', waitBlanking=False, winType='pyglet') gaze_dot =visual.GratingStim(window,tex=None, mask="gauss", pos=(0,0 ),size=(80,80),color='green', units='pix') for x in range(200): gaze_dot.draw() window.flip() fliptime = window.flip() print fliptime