OS: Mac mini
PsychoPy version: v2022.2.5
Standard Standalone? (y/n) : yes
**Graphics Card: Apple M2
**Monitor Specs: LG ULTRAGEAR 27GN800
What are you trying to achieve?:: I am trying to play .mp4 files with a border that flickers by creating a black rectangle on every 8th frame that surrounds the .mp4 videos.
What did you try to make it work?:
I have set the monitor settings to 60Hz (confirmed by System Report: UI Looks like: 2560 x 1440 @ 60.00Hz), have set “FreeSync” setting to off, have allowed PychoPy to have access to the “Input Monitoring” setting, went into the ‘monitor center’ and created the size of the LGULTRAGEAR monitor resolution settings. The code to create the black rectangles are as follows under the ‘Each Frame’ tab
if frameN % 8 == 0:
Top_rectangle.autoDraw = True
Bottom_rectangle.autoDraw = True
Right_rectangle.autoDraw = True
Left_rectangle.autoDraw = True
else:
Top_rectangle.autoDraw = False
Bottom_rectangle.autoDraw = False
Right_rectangle.autoDraw = False
Left_rectangle.autoDraw = False
What specifically went wrong when you tried that?:
Several things went wrong. Sometimes the border does not display at all around the video. When it does display it seemed like it is ‘flickering’ way too fast. Doing a timeByFrames.py demo it shows that the mean FPS is 8.4ms which is around 120hz (if my math is correct). Finally, I am getting the following warnings from psychopy:
3.1250 WARNING Couldn’t measure a consistent frame rate!
-Is your graphics card set to sync with vertical blank
-Are you running other processes on your computer?
Any help would be great