mwaskom / visigoth

Psychophysics experiment control
https://www.cns.nyu.edu/~mwaskom/software/visigoth
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Accounting for dropped frames in frame_range fails in some contexts #20

Closed mwaskom closed 5 years ago

mwaskom commented 6 years ago

Has a problem where each flip consistently took slightly longer than one frametime. frame_range was skipping a frame each time, but the full loop execution time nonetheless took twice as long as it should. Need to work out what the problem was here.

mwaskom commented 5 years ago

OK the issue here is that I didn't understand what the psychopy nDroppedFrames` variable represents. It increments every time the interval between frames is longer than the refresh threshold. But ... it only ever increments; it doesn't keep track of how many multiples of the refresh threshold are missed.