I am writing a steady state visual evoked potential (SSVEP) experiment that uses psychoPy to create flashing targets. My code includes three threads (the main thread runs the PsychoPy and two other threads run cython code). The problem is that the frames are dropped. But i cannot understand why? When i run the psychoPy code with a thread that runs only python code, the frames are not dropped. Thus, there is no GPU problem. Also, the cython code does not allocate too much memory to cause frames drop.
Does anyone have ideas why the frames drop and how can i fix it?