psychxr icon indicating copy to clipboard operation
psychxr copied to clipboard

window.getActualFrameRate() crashes

Open pellet opened this issue 1 year ago • 0 comments

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.

pellet avatar Oct 28 '23 10:10 pellet