Hello good psychopy users, I seem to have either a fundamental misunderstanding of what frameN actually is or some terrible set up of my monitor or something even less known to me. I’d like to understand what has happened.
OS (e.g. Win10): 10.14.60
PsychoPy version (e.g. 1.84.x): 3.10
Standard Standalone? (y/n) Y
What are you trying to achieve?:
Understand why frameN is far lower than it should be based on clock timing and refresh rate
What did you try to make it work?:
In an attempt to make my code timed by frames rather than milliseconds, I recorded how many frames passed during each routine by creating a global_frame_counter that would add all frameN that occurred in each routine. I then realized that it was way too low relative to the using several core.Clock comparisons that tracked beginning times and durations based on the beginning of the routine where the global_frame_counter was first declared.
To understand why it was so low, I printed frameN to the console with the code below in the “each frame tab”.
print('frameN: ’ + str(frameN) + ‘\n’)
The number of frames was 206 for a routine that lasted for just about 10 seconds. Given that there should be a frame every 16 and 2/3 milliseconds it should have been 600 frames.
There is no error message, but timing is very wrong. What is going on here? Why is my frame rate so low? The monitor is set to “testMonitor” but my computer is a MacBookPro with a 60Hz rate. Am I misunderstanding what FrameN is? I thought it was the number of frames in a routine. Some please enlighten!