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

Support WebXR in a self-contained way #46

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zachernuk
Copy link

Because of WebXR's history as targeting a separate display device (in the case of a desktop computer connected to an HMD), it requires a separate requestAnimationFrame handler to manage the frame rate - even in modern, standalone webXR devices. This update localizes the changes required to webgl.js by dynamically patching the containing Benchmark instance, and adding only the additional parameters required to do the current webGL tests within webXR.

Update the main harness to pass through a frame object where extant,
Update the main harness to use an internally-stored `requestAnimationFrame` to be rerouted in the case of webXR tests,
Add the webXR capabilities to the base webGL test
Use the test itself to change the containing Benchmark's functionality to use the XRSession's requestAnimationFrame and to shuttle through the frame information.
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

Successfully merging this pull request may close these issues.

None yet

1 participant