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

frameRate, frameCount and calculate documentation #241

Open
TiborUdvari opened this issue Sep 20, 2024 · 0 comments
Open

frameRate, frameCount and calculate documentation #241

TiborUdvari opened this issue Sep 20, 2024 · 0 comments

Comments

@TiborUdvari
Copy link
Collaborator

There are some differences that are not immediately clear to people that want to convert a "standard" sketch to an xr sketch.

  • draw function gets called once per eye
  • the standard frameRate for headsets is usually 90 fps instead of 60 fps for screen based devices
  • availability of the calculate function

The obvious effect is that sketches will run faster than expected. Converting from a 60 fps sketch would make the draw call get called 180 times ( 90 fps * 2 eyes ) on a headset device for instance.

I'll document this and also think about adding examples that uses the frame between times, similar to time.deltaTime in Unity. This would allow for a quicker transition of a sketch than using a separate calculate function, because it would mean less refactoring.

I haven't completely though all this through just yet, but some things that I think need to be addressed.

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

1 participant