Synching drawing to vertical blanking interval?

I've written a small wxPython application for a psychologist colleage of mine that measures certain features of human vision. The applicaiton presents an image and the subject responds by tapping a key. Record data, lather, rinse, repeat.

The problem is that my colleague would now like to precisely time the interval between image presentation and key press. Based on a bit of quick research it looks like the major source of error in the measurement will be screen refresh --- at 75 Hz there's as much as 12.5ms of uncertainty as to when an image actually appears on the screen.

Is there any way to synchronize drawing to the vertical blanking interval from wxPython? Thanks,

Greg

Greg Phillips wrote:

I've written a small wxPython application for a psychologist colleage of mine that measures certain features of human vision. The applicaiton presents an image and the subject responds by tapping a key. Record data, lather, rinse, repeat.

The problem is that my colleague would now like to precisely time the interval between image presentation and key press. Based on a bit of quick research it looks like the major source of error in the measurement will be screen refresh --- at 75 Hz there's as much as 12.5ms of uncertainty as to when an image actually appears on the screen.

Is there any way to synchronize drawing to the vertical blanking interval from wxPython?

No, but perhaps there is an API exposed by one of the PyWin modules that would let you do that somehow.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!