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.01k stars 106 forks source link

capped at 30 fps in oculus browser #327

Closed Gianluca-C90 closed 6 months ago

Gianluca-C90 commented 7 months ago

Describe the bug a minimal scene in URP runs at 30 fps on the oculus browser with some sporadic spikes above that, but its objectively locked to 30 frame rate

To Reproduce Steps to reproduce the behavior:

  1. Build a simple scene in URP with webxr exporter
  2. host it on a server
  3. reach the link from the oculus browser
  4. look at developer hub performances

Expected behavior we are using framevr as benchmark and they can totally nail a 60fps stable

Screenshots

Unity info (please complete the following information):

Desktop (please complete the following information):

Headset (please complete the following information):

Smartphone (please complete the following information):

Additional context we are using also VRTK

De-Panther commented 7 months ago

On other reports you mentioned the use of URP. I guess you tried to build the desert sample. Is it the same with the built-in render pipeline?

Unity is not built from ground up for web, so there's a need for lots of optimizations for it to work well. Better check profiler and other performance tools, to see if it's CPU bound or GPU bound, and see what can be optimized.

Gianluca-C90 commented 7 months ago

thanks sir, i will run some tests with your suggestions, and then i'll come back here reporting what i've discovered.