Hi Mario,
On Wed, Oct 8, 2014 at 11:58 PM, Mario Reutter <
mario....@gmail.com> wrote:
> make sure that the timing of the frames is as accurate as possible during
> stimulus presentation and not during a blank period since that is when the
> frame-rate might drop due to hardware limitations. I used a Clock object and
> printed the time after every win.flip() for the duration of one trial. I
> compared these timestamps with the expected times given the i-th frame under
> the set up frame rate Hz (i.e. i / Hz seconds).
nice idea! I think I will do that, too. Thanks for the code example.
> The difference between the
> expected and the actual times shows a systematic bias (for me between 2 and
> 3 ms) since there is code to be executed between the clock.reset() and the
> main loop resulting in the first win.flip().
Are you sure about this? You measure the 'actual' time immediately
after the flip().
Since the actually measured refresh times systematically differ by
about 2.8 ms from your expected ('nominal') times, and because this
difference is less than the expected duration of an additional frame
while PsychoPy blocks script execution when flip() is called until the
flip has actually been executed, I would suggest from the measurements
you provided that your display is not refreshing at 75 Hz, but instead
at approx. 62 Hz:
In [3]: 1.0 / (1.0/75 + 0.0028)
Out[3]: 61.98347107438017
What do you think?
All the best,
Richard