I am trying to display random dot kinematograms with a large number of dots (around 100,000). I’m using ElementArrayStim for that, and usually the display duration is half a second to a second, or let’s say at max around 100 frames.
Right now I’m precomputing arrays with all dot positions, sizes, opacities, etc that contain all data for one trial (for positions the shape would be (100x100,000x2). Then, in the display loop I insert the current slice of preallocated values into the ElementArrayStim, which seems to be to slow not to drop frames sometimes at this dot number.
Can I tweak ElementArrayStim so it is faster? I noticed that the same configuration of dots is drawn super fast every time after the first, so I guess a texture with all the dots drawn on it is cached. But I don’t see how this could benefit me, as no dot configuration is ever drawn twice.
Thanks for your input, and let me know if I need to clarify something.