PsychoPy 编码器:text.stim 或不 text.stim

PsychoPy Coder : text.stim or not text.stim

我正在使用 PsychoPy 编码器在速度-精度权衡情况下创建随机点运动任务。如果他们处于 "speed" 状态或 "precision"(在每次试验中),我想要一封注视点的字母来通知受试者,所以我首先想到简单地画一个 text.stim(比如"S" 或 "P")。但我听说 text.stim 绘制起来很慢,而且由于 RDK 任务的动态特性,如果 text.stim 需要很多时间,我担心它会影响点的显示。

我说的对吗? 如果是这样,绘制 "fixation letters" 的最佳方法是什么?

好吧,我似乎在 TextStim reference manual 中找到了答案,所以我把它放在这里以备不时之需:

Performance OBS: in general, TextStim is slower than many other visual stimuli, i.e. it takes longer to change some attributes. In general, it’s the attributes that affect the shapes of the letters: text, height, font, bold etc. These make the next .draw() slower because that sets the text again. You can make the draw() quick by calling re-setting the text (myTextStim.text = myTextStim.text) when you’ve changed the parameters.

所以减速似乎与属性的变化有关,这不是我的情况。

如果您只绘制了一个字母,那么它应该不会对您的 RDK 产生主要影响,但只需检查是否丢帧。所有这些都取决于显卡和 CPU 速度,因此您需要针对每个 machine/experiment

单独测试