First I’d like to thank you guys for such a wonderful software. Amazing.
I just noticed that the code generated from the builder calls win.flip() on every frame. Response times (RTs) are thus sampled at the refresh rate right? (so at 60Hz, there’s one check of the keyboard every 16.6ms). I am totally fine with it, but I wonder if we should not get rid of this constraint when using static stimuli (i.e., stimuli that remain constant until the response). It would actually improve RT resolution. Here is a coding example, feel free to criticize/comment:
> timer=core.Clock() > Routine = True > stimulus.draw() > event.clearEvents(eventType='keyboard') > win.flip() > timer.reset() > while Routine: > key_press = event.getKeys(keyList=["f", "j"]) > if len(key_press) > 0: > RT = timer.getTime() > win.flip() > Routine = False
Btw, is it better to call event.getKeys() or event.waitKeys() in this case? Using event.waitKeys() removes the need of the while loop:
> timer=core.Clock() > stimulus.draw() > win.flip() > timer.reset() > key_press = event.waitKeys(keyList=["f", "j"]) > RT = timer.getTime() > win.flip()