psychopy.org | Reference | Downloads | Github

Win.flip() and refresh rate

Does win.flip() reset the refresh rate?

I have a code that is temporally dependent, and each trial should begin when the refresh rate is reset. Does win.flip do this, or is there another aspect of the window class that refreshes the refresh rate to start a new trial?

win.flip() waits until the start of the next retrace, so if your monitor is running at 60 Hz, win.flip() will wait up to 16.666 msec, depending on when flip is called during the current retrace. So basically the time win.flip() returns can be used as the time the window graphics started to be updated on the screen.

This page has further information that maybe of interest.