Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.getActualFrameRate() crashes #12

Open
pellet opened this issue Oct 28, 2023 · 0 comments
Open

window.getActualFrameRate() crashes #12

pellet opened this issue Oct 28, 2023 · 0 comments
Assignees

Comments

@pellet
Copy link
Contributor

pellet commented Oct 28, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants