psychxr
psychxr copied to clipboard
window.getActualFrameRate() crashes
When calling getActualFrameRate on window, it throws an exception, an option might be to override the rift window with an equivalent frame rate test which is supported on the HMD.
frame_rate = np.round(self.window.getActualFrameRate()) # Frame rate, in Hz
File "C:\Users\beno\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\visual\window.py", line 3357, in getActualFrameRate
self.flip()
File "C:\Users\beno\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\visual\rift.py", line 1838, in flip
flipThisFrame = self._startOfFlip()
File "C:\Users\beno\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\visual\rift.py", line 1787, in _startOfFlip
raise LibOVRError(msg)
psychopy.visual.rift.LibOVRError: EndFrame called before BeginFrame.