animation plugin produces a delay before showing first stimulus #782
-
Hi all, The animation plugin seems to produce a delay before the first image is shown. I created a little demo here: https://xukotxedw5.cognition.run/ I think this has to do with the fact that the code that manipulates the display is inside of a setInterval function, so when the trial starts, the first stim isn't shown until after the interval duration (frame_time + frame_isi) has passed. I think this could be easily fixed by changing the plugin so that the first image is shown immediately, and then setInterval could be used to control the rest of the display changes. Just wanted to get some input here before suggesting changes to the plugin file. Maybe I'm doing something wrong when setting up the trial, or maybe this is a feature rather than a bug? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Atleast from reading the documentation, this seems like a bug to me, and I think your fix is good! |
Beta Was this translation helpful? Give feedback.
-
Hey There, Thanks for this! I was having trouble with this as well. Any update to the code yet? Thanks! |
Beta Was this translation helpful? Give feedback.
-
In case anyone is finding this after the fact, this issue has been fixed as of the 1.0.0 release of the plugin-animation package. |
Beta Was this translation helpful? Give feedback.
Atleast from reading the documentation, this seems like a bug to me, and I think your fix is good!