Digit Span, increasing time delay in routine start as digit sequences get longer

URL of experiment: https://gitlab.pavlovia.org/Francesco_Cabiddu/digitspandemo

Description of the problem: Hi, I have modified this Digit Span task https://gitlab.pavlovia.org/demos/digit-span-task because it would not go beyond the first couple of block iterations on Pavlovia.
I managed to create a version of the digit span that works, but I have one last problem. As the sequences get longer (e.g., 234, 4566, 56322), the time taken by Pavlovia to start a new digitsTrial routine increases. I tried to debug this in many ways but unsuccessfully.
Thanks in advance for any assistance.

Hey Francenso,

My hunch is that it’s because you’re constructing new TextStim’s inside of the loop. If there is way to construct them in advance (and also create a little new Stimuli as possible), I think that could solve it.

Best, Thomas