De-Panther / unity-webxr-export

Develop and export WebXR experiences using Unity WebGL
https://de-panther.github.io/unity-webxr-export/
Apache License 2.0
1.05k stars 110 forks source link

Low FPS on Quest 2 browser and unclear usage of webXR camera #392

Closed blavVR closed 1 week ago

blavVR commented 1 week ago

Describe the bug Hello,

I'm currently experiencing low fps on Quest 2 browser (about 45fps) even in a nearly empty scene. I'm Using the URP webXR pipeline. I came across this issue: 357 which sounds similar to my problem. So I reverted to Built-in render pipeline and tried to disable XR display Subsystems. This is where things get vague. The tooltip mentions to add the webXRcamera component, but to what? To the existing camera? If so, do I manually create and offset the left and right eye cameras? I tried to do that, but now the screen is entirely black. I may be missing an example prefab for this, and can't find any documentation for the webXRCamera class.

So 1 of 2 possible solutions would help me:

  1. Dig deeper into why the fps is so low
  2. Clearer instructions on how to use the webXRcamera so I can revert to BiRP

Thanks in advance for your help. And btw, thanks a lot for your work so far, aside from the FPS, your webXR export works really well!

To Reproduce Steps to reproduce the behavior: Make a build, upload it, run it through Quest browser, activate VR mode.

Expected behavior I expect the scene to run with +/- 90fps since it's completely empty aside from the XR rig, and a teleport groundplane

Unity info (please complete the following information):

Desktop (please complete the following information):

Headset (please complete the following information):

De-Panther commented 1 week ago

There are 2 Samples for URP and identical samples for BiRP. Use one of the BiRP samples.

blavVR commented 1 week ago

Thank you! Had to download the latest release from github instead of through the asset browser to get these samples.

De-Panther commented 1 week ago

They are there in the package manager window, in the WebXR Interactions samples.

blavVR commented 1 week ago

Thanks a lot for the help!