Unexpected Keyboard Response Delay
Hi all,
I am experiencing a consistent delay in my experiment that I can't account for. I first noticed this with a keyboard response item. I set the response screen duration to 0 and the response timeout duration to 2000 ms. Although I respond in time (~500 ms), the response screen is displayed for ~3000 ms. But it is not even limited to the keyboard response item. Even the welcome screen is being displayed long after the keypress.
I tried reinstalling opensesame which didn't help much. I tried running the experiment on another computer running under Windows 11 (same as my system), but the issue remained. I checked and it seems everything that is supposed to run in the prep phase are indeed running in the prep phase, so should not cause any delay. I am suspecting that this might have something to do with the custom helper functions in my script.
I have attached a simplified version of my experiment file and the output file to help troubleshoot. Any advice would be greatly appreciated!
Thanks in advance,
Bugay
OpenSesame version
4.1.9
Operating system
Windows 11
Backend
PsychoPy

Comments
Hi @bugay
It indeed seems like the issue is the 'prep' inline script, where you generate multiple gabors and noise patches at each trial (from what I see, it's really the noise patches that are quite heavy to generate). As they are part of a sequence, I believe they were still being 'prepared' at the start of each trial, everytime.
What I would suggest is to first create/generate everything you need during the experiment, store them in a variable, and later simply retrieve them, if that makes sense.
I have attached modified version of your experiment with an example of what I meant by that; it seems to run without any delay now.
Hope this helps!
Claire
Check out SigmundAI.eu for our OpenSesame AI assistant! 🤖
Hi Claire,
This works perfectly. Thank you so much!
Best,
Bugay