Skip to content

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.

1 participant