Making a flickering Gabor Patch

If this template helps then use it. If not then just delete and start from scratch.

OS: Linux Mint 20.1 Cinnamon
PsychoPy version): 2021.1.3
**Standard Standalone? Yes
What are you trying to achieve?: I am trying to create two Gabor patches that flicker at different frequencies, one on the left side of the screen and the other one on the right side. However, everytime the patches seem to slow down or going out of their flickering frequency. I have seen other posts about similar issues but nothing solved my problem.

What did you try to make it work?: My monitor refresh rate is 60Hz, and the two frequencies I want to use are 10Hz and 15Hz which sould be fine. I set the stimuli opacity as

  • 1 if((frameN % 12) >= 6) else 0 #for 10Hz
  • 1 if((frameN % 8) >= 4) else 0 #for 15HZ

In both cases i set as “every repeat”

I have also tried to hard-code from the coder setting up as the following images


I am not sure what is going wrong and how solve this.

Thank you in advance,

Daniele